-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ml-apm-correlations-fix-load-balancing
- Loading branch information
Showing
208 changed files
with
2,511 additions
and
776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"Simple wrapper over the general pkg_npm rule from rules_nodejs so we can override some configs" | ||
|
||
load("@build_bazel_rules_nodejs//internal/pkg_npm:pkg_npm.bzl", _pkg_npm = "pkg_npm_macro") | ||
|
||
def pkg_npm(validate = False, **kwargs): | ||
"""A macro around the upstream pkg_npm rule. | ||
Args: | ||
validate: boolean; Whether to check that the attributes match the package.json. Defaults to false | ||
**kwargs: the rest | ||
""" | ||
|
||
_pkg_npm( | ||
validate = validate, | ||
**kwargs | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import Path from 'path'; | ||
|
||
import dedent from 'dedent'; | ||
import { run, REPO_ROOT, createFailError } from '@kbn/dev-utils'; | ||
|
||
const DEFAULT_DOC_REPO_PATH = Path.resolve(REPO_ROOT, '..', 'docs'); | ||
|
||
const rel = (path: string) => Path.relative(process.cwd(), path); | ||
|
||
export function runBuildDocsCli() { | ||
run( | ||
async ({ flags, procRunner }) => { | ||
const docRepoPath = | ||
typeof flags.docrepo === 'string' && flags.docrepo | ||
? Path.resolve(process.cwd(), flags.docrepo) | ||
: DEFAULT_DOC_REPO_PATH; | ||
|
||
try { | ||
await procRunner.run('build_docs', { | ||
cmd: rel(Path.resolve(docRepoPath, 'build_docs')), | ||
args: [ | ||
['--doc', rel(Path.resolve(REPO_ROOT, 'docs/index.asciidoc'))], | ||
['--chunk', '1'], | ||
flags.open ? ['--open'] : [], | ||
].flat(), | ||
cwd: REPO_ROOT, | ||
wait: true, | ||
}); | ||
} catch (error) { | ||
if (error.code === 'ENOENT') { | ||
throw createFailError(dedent` | ||
Unable to run "build_docs" script from docs repo. | ||
Does it exist at [${rel(docRepoPath)}]? | ||
Do you need to pass --docrepo to specify the correct path or clone it there? | ||
`); | ||
} | ||
|
||
throw error; | ||
} | ||
}, | ||
{ | ||
description: 'Build the docs and serve them from a docker container', | ||
flags: { | ||
string: ['docrepo'], | ||
boolean: ['open'], | ||
default: { | ||
docrepo: DEFAULT_DOC_REPO_PATH, | ||
}, | ||
help: ` | ||
--docrepo [path] Path to the doc repo, defaults to ${rel(DEFAULT_DOC_REPO_PATH)} | ||
--open Automatically open the built docs in your default browser after building | ||
`, | ||
}, | ||
} | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.