-
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 '7.16' into backport/7.16/pr-117124
- Loading branch information
Showing
130 changed files
with
1,807 additions
and
962 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
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,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
16 changes: 16 additions & 0 deletions
16
src/plugins/vis_types/timeseries/public/application/components/timeseries_loading.tsx
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 @@ | ||
/* | ||
* 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 React from 'react'; | ||
import { EuiLoadingChart } from '@elastic/eui'; | ||
|
||
export const TimeseriesLoading = () => ( | ||
<div className="visChart__spinner"> | ||
<EuiLoadingChart mono size="l" /> | ||
</div> | ||
); |
Oops, something went wrong.