Skip to content

Commit 5459bca

Browse files
Merge branch 'master' into search/server-strategy-example
2 parents b54f734 + 11c74bc commit 5459bca

File tree

1,084 files changed

+8615
-3758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,084 files changed

+8615
-3758
lines changed

.ci/Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# NOTE: This Dockerfile is ONLY used to run certain tasks in CI. It is not used to run Kibana or as a distributable.
2+
# If you're looking for the Kibana Docker image distributable, please see: src/dev/build/tasks/os_packages/docker_generator/templates/dockerfile.template.ts
3+
4+
ARG NODE_VERSION=10.21.0
5+
6+
FROM node:${NODE_VERSION} AS base
7+
8+
RUN apt-get update && \
9+
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
10+
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
11+
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
12+
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
13+
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget openjdk-8-jre && \
14+
rm -rf /var/lib/apt/lists/*
15+
16+
RUN curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
17+
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
18+
&& apt-get update \
19+
&& apt-get install -y rsync jq bsdtar google-chrome-stable \
20+
--no-install-recommends \
21+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
22+
23+
RUN LATEST_VAULT_RELEASE=$(curl -s https://api.github.com/repos/hashicorp/vault/tags | jq --raw-output .[0].name[1:]) \
24+
&& curl -L https://releases.hashicorp.com/vault/${LATEST_VAULT_RELEASE}/vault_${LATEST_VAULT_RELEASE}_linux_amd64.zip -o vault.zip \
25+
&& unzip vault.zip \
26+
&& rm vault.zip \
27+
&& chmod +x vault \
28+
&& mv vault /usr/local/bin/vault
29+
30+
RUN groupadd -r kibana && useradd -r -g kibana kibana && mkdir /home/kibana && chown kibana:kibana /home/kibana
31+
32+
COPY ./bash_standard_lib.sh /usr/local/bin/bash_standard_lib.sh
33+
RUN chmod +x /usr/local/bin/bash_standard_lib.sh
34+
35+
COPY ./runbld /usr/local/bin/runbld
36+
RUN chmod +x /usr/local/bin/runbld
37+
38+
USER kibana

.ci/Jenkinsfile_baseline_capture

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@ kibanaPipeline(timeoutMinutes: 120) {
77
githubCommitStatus.trackBuild(params.commit, 'kibana-ci-baseline') {
88
ciStats.trackBuild {
99
catchError {
10-
parallel([
11-
'oss-visualRegression': {
12-
workers.ci(name: 'oss-visualRegression', size: 's-highmem', ramDisk: true) {
13-
kibanaPipeline.functionalTestProcess('oss-visualRegression', './test/scripts/jenkins_visual_regression.sh')(1)
14-
}
15-
},
16-
'xpack-visualRegression': {
17-
workers.ci(name: 'xpack-visualRegression', size: 's-highmem', ramDisk: true) {
18-
kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh')(1)
19-
}
20-
},
21-
])
10+
withEnv([
11+
'CI_PARALLEL_PROCESS_NUMBER=1'
12+
]) {
13+
parallel([
14+
'oss-visualRegression': {
15+
workers.ci(name: 'oss-visualRegression', size: 's-highmem', ramDisk: true) {
16+
kibanaPipeline.functionalTestProcess('oss-visualRegression', './test/scripts/jenkins_visual_regression.sh')()
17+
}
18+
},
19+
'xpack-visualRegression': {
20+
workers.ci(name: 'xpack-visualRegression', size: 's-highmem', ramDisk: true) {
21+
kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh')()
22+
}
23+
},
24+
])
25+
}
2226
}
2327

2428
kibanaPipeline.sendMail()

.ci/pipeline-library/src/test/prChanges.groovy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,17 @@ class PrChangesTest extends KibanaBasePipelineTest {
9797

9898
assertFalse(prChanges.areChangesSkippable())
9999
}
100+
101+
@Test
102+
void 'areChangesSkippable() with plugin readme changes'() {
103+
props([
104+
githubPrs: [
105+
getChanges: { [
106+
[filename: 'src/plugins/foo/README.asciidoc'],
107+
] },
108+
],
109+
])
110+
111+
assertFalse(prChanges.areChangesSkippable())
112+
}
100113
}

.ci/runbld_no_junit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
profiles:
44
- ".*": # Match any job
55
tests:
6-
junit-filename-pattern: "8d8bd494-d909-4e67-a052-7e8b5aaeb5e4" # A bogus path that should never exist
6+
junit-filename-pattern: false

.eslintrc.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,6 @@ module.exports = {
132132
'react-hooks/rules-of-hooks': 'off',
133133
},
134134
},
135-
{
136-
files: ['x-pack/plugins/lens/**/*.{js,mjs,ts,tsx}'],
137-
rules: {
138-
'react-hooks/exhaustive-deps': 'off',
139-
},
140-
},
141135
{
142136
files: ['x-pack/plugins/ml/**/*.{js,mjs,ts,tsx}'],
143137
rules: {

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
/x-pack/plugins/discover_enhanced/ @elastic/kibana-app
88
/x-pack/plugins/lens/ @elastic/kibana-app
99
/x-pack/plugins/graph/ @elastic/kibana-app
10-
/src/legacy/core_plugins/kibana/public/local_application_service/ @elastic/kibana-app
1110
/src/plugins/dashboard/ @elastic/kibana-app
1211
/src/plugins/discover/ @elastic/kibana-app
1312
/src/plugins/input_control_vis/ @elastic/kibana-app

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ npm-debug.log*
4949
.tern-project
5050
.nyc_output
5151
.ci/pipeline-library/build/
52+
.ci/runbld
53+
.ci/bash_standard_lib.sh
5254
.gradle
5355

5456
# apm plugin

Jenkinsfile

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,7 @@ kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true, setCommitStatus: true)
99
ciStats.trackBuild {
1010
catchError {
1111
retryable.enable()
12-
parallel([
13-
'kibana-intake-agent': workers.intake('kibana-intake', './test/scripts/jenkins_unit.sh'),
14-
'x-pack-intake-agent': workers.intake('x-pack-intake', './test/scripts/jenkins_xpack.sh'),
15-
'kibana-oss-agent': workers.functional('kibana-oss-tests', { kibanaPipeline.buildOss() }, [
16-
'oss-firefoxSmoke': kibanaPipeline.functionalTestProcess('kibana-firefoxSmoke', './test/scripts/jenkins_firefox_smoke.sh'),
17-
'oss-ciGroup1': kibanaPipeline.ossCiGroupProcess(1),
18-
'oss-ciGroup2': kibanaPipeline.ossCiGroupProcess(2),
19-
'oss-ciGroup3': kibanaPipeline.ossCiGroupProcess(3),
20-
'oss-ciGroup4': kibanaPipeline.ossCiGroupProcess(4),
21-
'oss-ciGroup5': kibanaPipeline.ossCiGroupProcess(5),
22-
'oss-ciGroup6': kibanaPipeline.ossCiGroupProcess(6),
23-
'oss-ciGroup7': kibanaPipeline.ossCiGroupProcess(7),
24-
'oss-ciGroup8': kibanaPipeline.ossCiGroupProcess(8),
25-
'oss-ciGroup9': kibanaPipeline.ossCiGroupProcess(9),
26-
'oss-ciGroup10': kibanaPipeline.ossCiGroupProcess(10),
27-
'oss-ciGroup11': kibanaPipeline.ossCiGroupProcess(11),
28-
'oss-ciGroup12': kibanaPipeline.ossCiGroupProcess(12),
29-
'oss-accessibility': kibanaPipeline.functionalTestProcess('kibana-accessibility', './test/scripts/jenkins_accessibility.sh'),
30-
// 'oss-visualRegression': kibanaPipeline.functionalTestProcess('visualRegression', './test/scripts/jenkins_visual_regression.sh'),
31-
]),
32-
'kibana-xpack-agent': workers.functional('kibana-xpack-tests', { kibanaPipeline.buildXpack() }, [
33-
'xpack-firefoxSmoke': kibanaPipeline.functionalTestProcess('xpack-firefoxSmoke', './test/scripts/jenkins_xpack_firefox_smoke.sh'),
34-
'xpack-ciGroup1': kibanaPipeline.xpackCiGroupProcess(1),
35-
'xpack-ciGroup2': kibanaPipeline.xpackCiGroupProcess(2),
36-
'xpack-ciGroup3': kibanaPipeline.xpackCiGroupProcess(3),
37-
'xpack-ciGroup4': kibanaPipeline.xpackCiGroupProcess(4),
38-
'xpack-ciGroup5': kibanaPipeline.xpackCiGroupProcess(5),
39-
'xpack-ciGroup6': kibanaPipeline.xpackCiGroupProcess(6),
40-
'xpack-ciGroup7': kibanaPipeline.xpackCiGroupProcess(7),
41-
'xpack-ciGroup8': kibanaPipeline.xpackCiGroupProcess(8),
42-
'xpack-ciGroup9': kibanaPipeline.xpackCiGroupProcess(9),
43-
'xpack-ciGroup10': kibanaPipeline.xpackCiGroupProcess(10),
44-
'xpack-accessibility': kibanaPipeline.functionalTestProcess('xpack-accessibility', './test/scripts/jenkins_xpack_accessibility.sh'),
45-
'xpack-savedObjectsFieldMetrics': kibanaPipeline.functionalTestProcess('xpack-savedObjectsFieldMetrics', './test/scripts/jenkins_xpack_saved_objects_field_metrics.sh'),
46-
'xpack-securitySolutionCypress': { processNumber ->
47-
whenChanged(['x-pack/plugins/security_solution/', 'x-pack/test/security_solution_cypress/', 'x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/', 'x-pack/plugins/triggers_actions_ui/public/application/context/actions_connectors_context.tsx']) {
48-
kibanaPipeline.functionalTestProcess('xpack-securitySolutionCypress', './test/scripts/jenkins_security_solution_cypress.sh')(processNumber)
49-
}
50-
},
51-
52-
// 'xpack-visualRegression': kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh'),
53-
]),
54-
])
12+
kibanaPipeline.allCiTasks()
5513
}
5614
}
5715
}

docs/developer/architecture/code-exploration.asciidoc

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ The Charts plugin is a way to create easier integration of shared colors, themes
5858
WARNING: Missing README.
5959
6060
61-
- {kib-repo}blob/{branch}/src/plugins/dashboard[dashboard]
61+
- {kib-repo}blob/{branch}/src/plugins/dashboard/README.md[dashboard]
6262
63-
WARNING: Missing README.
63+
Contains the dashboard application.
6464
6565
6666
- {kib-repo}blob/{branch}/src/plugins/data/README.md[data]
@@ -76,9 +76,9 @@ Routing will be handled by the id of the dev tool - your dev tool will be mounte
7676
This API doesn't support angular, for registering angular dev tools, bootstrap a local module on mount into the given HTML element.
7777
7878
79-
- {kib-repo}blob/{branch}/src/plugins/discover[discover]
79+
- {kib-repo}blob/{branch}/src/plugins/discover/README.md[discover]
8080
81-
WARNING: Missing README.
81+
Contains the Discover application and the saved search embeddable.
8282
8383
8484
- {kib-repo}blob/{branch}/src/plugins/embeddable/README.md[embeddable]
@@ -109,9 +109,9 @@ Moves the legacy ui/registry/feature_catalogue module for registering "features"
109109
WARNING: Missing README.
110110
111111
112-
- {kib-repo}blob/{branch}/src/plugins/input_control_vis[inputControlVis]
112+
- {kib-repo}blob/{branch}/src/plugins/input_control_vis/README.md[inputControlVis]
113113
114-
WARNING: Missing README.
114+
Contains the input control visualization allowing to place custom filter controls on a dashboard.
115115
116116
117117
- {kib-repo}blob/{branch}/src/plugins/inspector/README.md[inspector]
@@ -206,9 +206,10 @@ This plugin adds the Advanced Settings section for the Usage Data collection (ak
206206
WARNING: Missing README.
207207
208208
209-
- {kib-repo}blob/{branch}/src/plugins/timelion[timelion]
209+
- {kib-repo}blob/{branch}/src/plugins/timelion/README.md[timelion]
210210
211-
WARNING: Missing README.
211+
Contains the deprecated timelion application. For the timelion visualization,
212+
which also contains the timelion APIs and backend, look at the vis_type_timelion plugin.
212213
213214
214215
- {kib-repo}blob/{branch}/src/plugins/ui_actions/README.md[uiActions]
@@ -222,59 +223,63 @@ Usage Collection allows collecting usage data for other services to consume (tel
222223
To integrate with the telemetry services for usage collection of your feature, there are 2 steps:
223224
224225
225-
- {kib-repo}blob/{branch}/src/plugins/vis_type_markdown[visTypeMarkdown]
226+
- {kib-repo}blob/{branch}/src/plugins/vis_type_markdown/README.md[visTypeMarkdown]
226227
227-
WARNING: Missing README.
228+
The markdown visualization that can be used to place text panels on dashboards.
228229
229230
230-
- {kib-repo}blob/{branch}/src/plugins/vis_type_metric[visTypeMetric]
231+
- {kib-repo}blob/{branch}/src/plugins/vis_type_metric/README.md[visTypeMetric]
231232
232-
WARNING: Missing README.
233+
Contains the metric visualization.
233234
234235
235-
- {kib-repo}blob/{branch}/src/plugins/vis_type_table[visTypeTable]
236+
- {kib-repo}blob/{branch}/src/plugins/vis_type_table/README.md[visTypeTable]
236237
237-
WARNING: Missing README.
238+
Contains the data table visualization, that allows presenting data in a simple table format.
238239
239240
240-
- {kib-repo}blob/{branch}/src/plugins/vis_type_tagcloud[visTypeTagcloud]
241+
- {kib-repo}blob/{branch}/src/plugins/vis_type_tagcloud/README.md[visTypeTagcloud]
241242
242-
WARNING: Missing README.
243+
Contains the tagcloud visualization.
243244
244245
245246
- {kib-repo}blob/{branch}/src/plugins/vis_type_timelion/README.md[visTypeTimelion]
246247
247-
If your grammar was changed in public/chain.peg you need to re-generate the static parser. You could use a grunt task:
248+
Contains the timelion visualization and the timelion backend.
248249
249250
250-
- {kib-repo}blob/{branch}/src/plugins/vis_type_timeseries[visTypeTimeseries]
251+
- {kib-repo}blob/{branch}/src/plugins/vis_type_timeseries/README.md[visTypeTimeseries]
251252
252-
WARNING: Missing README.
253+
Contains everything around TSVB (the editor, visualizatin implementations and backends).
253254
254255
255-
- {kib-repo}blob/{branch}/src/plugins/vis_type_vega[visTypeVega]
256+
- {kib-repo}blob/{branch}/src/plugins/vis_type_vega/README.md[visTypeVega]
256257
257-
WARNING: Missing README.
258+
Contains the Vega visualization.
258259
259260
260-
- {kib-repo}blob/{branch}/src/plugins/vis_type_vislib[visTypeVislib]
261+
- {kib-repo}blob/{branch}/src/plugins/vis_type_vislib/README.md[visTypeVislib]
261262
262-
WARNING: Missing README.
263+
Contains the vislib visualizations. These are the classical area/line/bar, pie, gauge/goal and
264+
heatmap charts.
263265
264266
265-
- {kib-repo}blob/{branch}/src/plugins/vis_type_xy[visTypeXy]
267+
- {kib-repo}blob/{branch}/src/plugins/vis_type_xy/README.md[visTypeXy]
266268
267-
WARNING: Missing README.
269+
Contains the new xy-axis chart using the elastic-charts library, which will eventually
270+
replace the vislib xy-axis (bar, area, line) charts.
268271
269272
270-
- {kib-repo}blob/{branch}/src/plugins/visualizations[visualizations]
273+
- {kib-repo}blob/{branch}/src/plugins/visualizations/README.md[visualizations]
271274
272-
WARNING: Missing README.
275+
Contains most of the visualization infrastructure, e.g. the visualization type registry or the
276+
visualization embeddable.
273277
274278
275-
- {kib-repo}blob/{branch}/src/plugins/visualize[visualize]
279+
- {kib-repo}blob/{branch}/src/plugins/visualize/README.md[visualize]
276280
277-
WARNING: Missing README.
281+
Contains the visualize application which includes the listing page and the app frame,
282+
which will load the visualization's editor.
278283
279284
280285
[discrete]
@@ -345,19 +350,22 @@ You can run a local cluster and simulate a remote cluster within a single Kibana
345350
346351
- {kib-repo}blob/{branch}/x-pack/plugins/dashboard_enhanced/README.md[dashboardEnhanced]
347352
348-
- {kib-repo}blob/{branch}/x-pack/plugins/dashboard_mode[dashboardMode]
353+
Contains the enhancements to the OSS dashboard app.
349354
350-
WARNING: Missing README.
355+
356+
- {kib-repo}blob/{branch}/x-pack/plugins/dashboard_mode/README.md[dashboardMode]
357+
358+
The deprecated dashboard only mode.
351359
352360
353361
- {kib-repo}blob/{branch}/x-pack/plugins/data_enhanced[dataEnhanced]
354362
355363
WARNING: Missing README.
356364
357365
358-
- {kib-repo}blob/{branch}/x-pack/plugins/discover_enhanced[discoverEnhanced]
366+
- {kib-repo}blob/{branch}/x-pack/plugins/discover_enhanced/README.md[discoverEnhanced]
359367
360-
WARNING: Missing README.
368+
Contains the enhancements to the OSS discover app.
361369
362370
363371
- {kib-repo}blob/{branch}/x-pack/plugins/embeddable_enhanced[embeddableEnhanced]

docs/development/plugins/kibana_utils/public/state_sync/kibana-plugin-plugins-kibana_utils-public-state_sync.createkbnurlstatestorage.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ Creates [IKbnUrlStateStorage](./kibana-plugin-plugins-kibana_utils-public-state_
99
<b>Signature:</b>
1010

1111
```typescript
12-
createKbnUrlStateStorage: ({ useHash, history }?: {
12+
createKbnUrlStateStorage: ({ useHash, history, onGetError, onSetError, }?: {
1313
useHash: boolean;
1414
history?: History<any> | undefined;
15+
onGetError?: ((error: Error) => void) | undefined;
16+
onSetError?: ((error: Error) => void) | undefined;
1517
}) => IKbnUrlStateStorage
1618
```

0 commit comments

Comments
 (0)