Skip to content

Commit c7dfd5b

Browse files
Merge branch 'master' into ml-lazy-node-improvements
2 parents 1d17882 + 7b5d62f commit c7dfd5b

File tree

386 files changed

+8792
-3564
lines changed

Some content is hidden

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

386 files changed

+8792
-3564
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import %workspace%/.bazelrc.common
1111

1212
# BuildBuddy
1313
## Metadata settings
14-
build --workspace_status_command=$(pwd)/src/dev/bazel_workspace_status.sh
14+
build --workspace_status_command="node ./src/dev/bazel_workspace_status.js"
1515
# Enable this in case you want to share your build info
1616
# build --build_metadata=VISIBILITY=PUBLIC
1717
build --build_metadata=TEST_GROUPS=//packages

.ci/end2end.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ pipeline {
121121
}
122122

123123
def notifyStatus(String description, String status) {
124-
withGithubNotify.notify('end2end-for-apm-ui', description, status, getBlueoceanTabURL('pipeline'))
124+
withGithubStatus.notify('end2end-for-apm-ui', description, status, getBlueoceanTabURL('pipeline'))
125125
}
126126

127127
def notifyTestStatus(String description, String status) {
128-
withGithubNotify.notify('end2end-for-apm-ui', description, status, getBlueoceanTabURL('tests'))
128+
withGithubStatus.notify('end2end-for-apm-ui', description, status, getBlueoceanTabURL('tests'))
129129
}

.ci/packer_cache_for_branch.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ source src/dev/ci_setup/setup.sh;
2626

2727
# download es snapshots
2828
node scripts/es snapshot --download-only;
29-
node scripts/es snapshot --license=oss --download-only;
3029

3130
# download reporting browsers
3231
(cd "x-pack" && node ../node_modules/.bin/gulp downloadChromium);

.github/CODEOWNERS

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
/src/plugins/dashboard/ @elastic/kibana-presentation
9292
/src/plugins/input_control_vis/ @elastic/kibana-presentation
9393
/src/plugins/vis_type_markdown/ @elastic/kibana-presentation
94+
/test/functional/apps/dashboard/ @elastic/kibana-presentation
9495
/x-pack/plugins/canvas/ @elastic/kibana-presentation
9596
/x-pack/plugins/dashboard_enhanced/ @elastic/kibana-presentation
9697
/x-pack/test/functional/apps/canvas/ @elastic/kibana-presentation
@@ -149,7 +150,14 @@
149150
/src/cli/keystore/ @elastic/kibana-operations
150151
/src/legacy/server/warnings/ @elastic/kibana-operations
151152
/.ci/es-snapshots/ @elastic/kibana-operations
153+
/.github/workflows/ @elastic/kibana-operations
152154
/vars/ @elastic/kibana-operations
155+
/.bazelignore @elastic/kibana-operations
156+
/.bazeliskversion @elastic/kibana-operations
157+
/.bazelrc @elastic/kibana-operations
158+
/.bazelrc.common @elastic/kibana-operations
159+
/.bazelversion @elastic/kibana-operations
160+
/WORKSPACE.bazel @elastic/kibana-operations
153161
#CC# /packages/kbn-expect/ @elastic/kibana-operations
154162

155163
# Quality Assurance
@@ -238,7 +246,6 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
238246
/x-pack/test/security_api_integration/ @elastic/kibana-security
239247
/x-pack/test/security_functional/ @elastic/kibana-security
240248
/x-pack/test/spaces_api_integration/ @elastic/kibana-security
241-
#CC# /x-pack/plugins/security_solution/ @elastic/kibana-security
242249
#CC# /x-pack/plugins/security/ @elastic/kibana-security
243250

244251
# Kibana Alerting Services
@@ -306,25 +313,22 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
306313
#CC# /x-pack/plugins/console_extensions/ @elastic/es-ui
307314
#CC# /x-pack/plugins/cross_cluster_replication/ @elastic/es-ui
308315

309-
# Endpoint
310-
/x-pack/plugins/endpoint/ @elastic/endpoint-app-team @elastic/siem
311-
/x-pack/test/endpoint_api_integration_no_ingest/ @elastic/endpoint-app-team @elastic/siem
312-
/x-pack/test/security_solution_endpoint/ @elastic/endpoint-app-team @elastic/siem
313-
/x-pack/test/functional/es_archives/endpoint/ @elastic/endpoint-app-team @elastic/siem
314-
/x-pack/test/plugin_functional/plugins/resolver_test/ @elastic/endpoint-app-team @elastic/siem
315-
/x-pack/test/plugin_functional/test_suites/resolver/ @elastic/endpoint-app-team @elastic/siem
316-
#CC# /x-pack/legacy/plugins/siem/ @elastic/siem
317-
#CC# /x-pack/plugins/siem/ @elastic/siem
318-
#CC# /x-pack/plugins/security_solution/ @elastic/siem
319-
320316
# Security Solution
321-
/x-pack/plugins/security_solution/ @elastic/siem @elastic/endpoint-app-team
322-
/x-pack/test/detection_engine_api_integration @elastic/siem @elastic/endpoint-app-team
323-
/x-pack/test/lists_api_integration @elastic/siem @elastic/endpoint-app-team
324-
/x-pack/test/api_integration/apis/security_solution @elastic/siem @elastic/endpoint-app-team
325-
/x-pack/plugins/case @elastic/siem @elastic/endpoint-app-team
326-
/x-pack/plugins/lists @elastic/siem @elastic/endpoint-app-team
327-
#CC# /x-pack/plugins/security_solution/ @elastic/siem
317+
/x-pack/test/endpoint_api_integration_no_ingest/ @elastic/security-solution
318+
/x-pack/test/security_solution_endpoint/ @elastic/security-solution
319+
/x-pack/test/functional/es_archives/endpoint/ @elastic/security-solution
320+
/x-pack/test/plugin_functional/plugins/resolver_test/ @elastic/security-solution
321+
/x-pack/test/plugin_functional/test_suites/resolver/ @elastic/security-solution
322+
/x-pack/plugins/security_solution/ @elastic/security-solution
323+
/x-pack/test/detection_engine_api_integration @elastic/security-solution
324+
/x-pack/test/lists_api_integration @elastic/security-solution
325+
/x-pack/test/api_integration/apis/security_solution @elastic/security-solution
326+
#CC# /x-pack/plugins/security_solution/ @elastic/security-solution
327+
328+
# Security Solution sub teams
329+
/x-pack/plugins/case @elastic/security-threat-hunting
330+
/x-pack/test/case_api_integration @elastic/security-threat-hunting
331+
/x-pack/plugins/lists @elastic/security-detections-response
328332

329333
# Security Intelligence And Analytics
330334
/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules @elastic/security-intelligence-analytics
@@ -356,3 +360,4 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
356360
# Reporting
357361
#CC# /x-pack/plugins/reporting/ @elastic/kibana-reporting-services
358362

363+

.github/workflows/backport.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
pull_request_target:
3+
branches:
4+
- master
5+
types:
6+
- labeled
7+
- closed
8+
9+
jobs:
10+
backport:
11+
name: Backport PR
12+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'auto-backport')
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: 'Get backport config'
17+
run: |
18+
curl 'https://raw.githubusercontent.com/elastic/kibana/master/.backportrc.json' > .backportrc.json
19+
20+
- name: Use Node.js 14.x
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: 14.x
24+
25+
- name: Install backport CLI
26+
run: npm install -g [email protected]
27+
28+
- name: Backport PR
29+
run: |
30+
git config --global user.name "kibanamachine"
31+
git config --global user.email "[email protected]"
32+
backport --fork true --username kibanamachine --accessToken "${{ secrets.KIBANAMACHINE_TOKEN }}" --ci --pr "$PR_NUMBER" --labels backport --assignee "$PR_OWNER" | tee 'output.log'
33+
env:
34+
PR_NUMBER: ${{ github.event.pull_request.number }}
35+
PR_OWNER: ${{ github.event.pull_request.user.login }}
36+
37+
- name: Report backport status
38+
run: |
39+
COMMENT="Backport result
40+
\`\`\`
41+
$(cat output.log)
42+
\`\`\`"
43+
44+
GITHUB_TOKEN="${{ secrets.KIBANAMACHINE_TOKEN }}" gh api -X POST repos/elastic/kibana/issues/$PR_NUMBER/comments -F body="$COMMENT"
45+
env:
46+
PR_NUMBER: ${{ github.event.pull_request.number }}

docs/developer/contributing/development-ci-metrics.asciidoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,9 @@ All metrics are collected from the `tar.gz` archive produced for the linux platf
4444
[[ci-metric-distributable-file-count]] `distributable file count` ::
4545
The number of files included in the default distributable.
4646

47-
[[ci-metric-oss-distributable-file-count]] `oss distributable file count` ::
48-
The number of files included in the OSS distributable.
49-
5047
[[ci-metric-distributable-size]] `distributable size` ::
5148
The size, in bytes, of the default distributable. _(not reported on PRs)_
5249

53-
[[ci-metric-oss-distributable-size]] `oss distributable size` ::
54-
The size, in bytes, of the OSS distributable. _(not reported on PRs)_
55-
5650

5751
[[ci-metric-types-saved-object-field-counts]]
5852
==== Saved Object field counts

docs/developer/getting-started/development-plugin-resources.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ You can use the <<automatic-plugin-generator>> to get a basic structure for a ne
1414
{kib} repo should be developed inside the `plugins` folder. If you are building a new plugin to check in to the {kib} repo,
1515
you will choose between a few locations:
1616

17-
- {kib-repo}tree/{branch}/x-pack/plugins[x-pack/plugins] for commercially licensed plugins
18-
- {kib-repo}tree/{branch}/src/plugins[src/plugins] for open source licensed plugins
17+
- {kib-repo}tree/{branch}/x-pack/plugins[x-pack/plugins] for plugins related to subscription features
18+
- {kib-repo}tree/{branch}/src/plugins[src/plugins] for plugins related to free features
1919
- {kib-repo}tree/{branch}/examples[examples] for developer example plugins (these will not be included in the distributables)
2020

2121
[discrete]

docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddablestatetransfer.cleareditorstate.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,20 @@
44

55
## EmbeddableStateTransfer.clearEditorState() method
66

7+
Clears the [editor state](./kibana-plugin-plugins-embeddable-public.embeddableeditorstate.md) from the sessionStorage for the provided app id
8+
79
<b>Signature:</b>
810

911
```typescript
10-
clearEditorState(): void;
12+
clearEditorState(appId: string): void;
1113
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| appId | <code>string</code> | The app to fetch incomingEditorState for |
20+
1221
<b>Returns:</b>
1322

1423
`void`

docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddablestatetransfer.getincomingeditorstate.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44

55
## EmbeddableStateTransfer.getIncomingEditorState() method
66

7-
Fetches an [originating app](./kibana-plugin-plugins-embeddable-public.embeddableeditorstate.md) argument from the sessionStorage
7+
Fetches an [editor state](./kibana-plugin-plugins-embeddable-public.embeddableeditorstate.md) from the sessionStorage for the provided app id
88

99
<b>Signature:</b>
1010

1111
```typescript
12-
getIncomingEditorState(removeAfterFetch?: boolean): EmbeddableEditorState | undefined;
12+
getIncomingEditorState(appId: string, removeAfterFetch?: boolean): EmbeddableEditorState | undefined;
1313
```
1414

1515
## Parameters
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19+
| appId | <code>string</code> | The app to fetch incomingEditorState for |
1920
| removeAfterFetch | <code>boolean</code> | Whether to remove the package state after fetch to prevent duplicates. |
2021

2122
<b>Returns:</b>

docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddablestatetransfer.getincomingembeddablepackage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44

55
## EmbeddableStateTransfer.getIncomingEmbeddablePackage() method
66

7-
Fetches an [embeddable package](./kibana-plugin-plugins-embeddable-public.embeddablepackagestate.md) argument from the sessionStorage
7+
Fetches an [embeddable package](./kibana-plugin-plugins-embeddable-public.embeddablepackagestate.md) from the sessionStorage for the given AppId
88

99
<b>Signature:</b>
1010

1111
```typescript
12-
getIncomingEmbeddablePackage(removeAfterFetch?: boolean): EmbeddablePackageState | undefined;
12+
getIncomingEmbeddablePackage(appId: string, removeAfterFetch?: boolean): EmbeddablePackageState | undefined;
1313
```
1414

1515
## Parameters
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19+
| appId | <code>string</code> | The app to fetch EmbeddablePackageState for |
1920
| removeAfterFetch | <code>boolean</code> | Whether to remove the package state after fetch to prevent duplicates. |
2021

2122
<b>Returns:</b>

0 commit comments

Comments
 (0)