Skip to content

Commit 8c38bbe

Browse files
Merge branch 'master' into load_from_json
2 parents 9a52744 + 7b74094 commit 8c38bbe

File tree

984 files changed

+55324
-21139
lines changed

Some content is hidden

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

984 files changed

+55324
-21139
lines changed

.ci/Jenkinsfile_coverage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def handleIngestion(timestamp) {
2828
kibanaCoverage.collectVcsInfo("### Collect VCS Info")
2929
kibanaCoverage.generateReports("### Merge coverage reports")
3030
kibanaCoverage.uploadCombinedReports()
31-
kibanaCoverage.ingest(timestamp, '### Injest && Upload')
31+
kibanaCoverage.ingest(env.JOB_NAME, BUILD_NUMBER, BUILD_URL, timestamp, '### Ingest && Upload')
3232
kibanaCoverage.uploadCoverageStaticSite(timestamp)
3333
}
3434

3535
def handleFail() {
3636
def buildStatus = buildUtils.getBuildStatus()
37-
if(params.NOTIFY_ON_FAILURE && buildStatus != 'SUCCESS' && buildStatus != 'ABORTED') {
37+
if(params.NOTIFY_ON_FAILURE && buildStatus != 'SUCCESS' && buildStatus != 'ABORTED' && buildStatus != 'UNSTABLE') {
3838
slackNotifications.sendFailedBuild(
3939
channel: '#kibana-qa',
4040
username: 'Kibana QA'

.eslintrc.js

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -64,63 +64,63 @@ module.exports = {
6464
* Temporarily disable some react rules for specific plugins, remove in separate PRs
6565
*/
6666
{
67-
files: ['packages/kbn-ui-framework/**/*.{js,ts,tsx}'],
67+
files: ['packages/kbn-ui-framework/**/*.{js,mjs,ts,tsx}'],
6868
rules: {
6969
'jsx-a11y/no-onchange': 'off',
7070
},
7171
},
7272
{
73-
files: ['src/plugins/es_ui_shared/**/*.{js,ts,tsx}'],
73+
files: ['src/plugins/es_ui_shared/**/*.{js,mjs,ts,tsx}'],
7474
rules: {
7575
'react-hooks/exhaustive-deps': 'off',
7676
},
7777
},
7878
{
79-
files: ['src/plugins/kibana_react/**/*.{js,ts,tsx}'],
79+
files: ['src/plugins/kibana_react/**/*.{js,mjs,ts,tsx}'],
8080
rules: {
8181
'react-hooks/rules-of-hooks': 'off',
8282
'react-hooks/exhaustive-deps': 'off',
8383
},
8484
},
8585
{
86-
files: ['src/plugins/kibana_utils/**/*.{js,ts,tsx}'],
86+
files: ['src/plugins/kibana_utils/**/*.{js,mjs,ts,tsx}'],
8787
rules: {
8888
'react-hooks/exhaustive-deps': 'off',
8989
},
9090
},
9191
{
92-
files: ['x-pack/plugins/canvas/**/*.{js,ts,tsx}'],
92+
files: ['x-pack/plugins/canvas/**/*.{js,mjs,ts,tsx}'],
9393
rules: {
9494
'jsx-a11y/click-events-have-key-events': 'off',
9595
},
9696
},
9797
{
98-
files: ['x-pack/plugins/cross_cluster_replication/**/*.{js,ts,tsx}'],
98+
files: ['x-pack/plugins/cross_cluster_replication/**/*.{js,mjs,ts,tsx}'],
9999
rules: {
100100
'jsx-a11y/click-events-have-key-events': 'off',
101101
},
102102
},
103103
{
104-
files: ['x-pack/legacy/plugins/index_management/**/*.{js,ts,tsx}'],
104+
files: ['x-pack/legacy/plugins/index_management/**/*.{js,mjs,ts,tsx}'],
105105
rules: {
106106
'react-hooks/exhaustive-deps': 'off',
107107
'react-hooks/rules-of-hooks': 'off',
108108
},
109109
},
110110
{
111-
files: ['x-pack/plugins/lens/**/*.{js,ts,tsx}'],
111+
files: ['x-pack/plugins/lens/**/*.{js,mjs,ts,tsx}'],
112112
rules: {
113113
'react-hooks/exhaustive-deps': 'off',
114114
},
115115
},
116116
{
117-
files: ['x-pack/plugins/ml/**/*.{js,ts,tsx}'],
117+
files: ['x-pack/plugins/ml/**/*.{js,mjs,ts,tsx}'],
118118
rules: {
119119
'react-hooks/exhaustive-deps': 'off',
120120
},
121121
},
122122
{
123-
files: ['x-pack/legacy/plugins/snapshot_restore/**/*.{js,ts,tsx}'],
123+
files: ['x-pack/legacy/plugins/snapshot_restore/**/*.{js,mjs,ts,tsx}'],
124124
rules: {
125125
'react-hooks/exhaustive-deps': 'off',
126126
},
@@ -132,7 +132,7 @@ module.exports = {
132132
* Licence headers
133133
*/
134134
{
135-
files: ['**/*.{js,ts,tsx}', '!plugins/**/*'],
135+
files: ['**/*.{js,mjs,ts,tsx}', '!plugins/**/*'],
136136
rules: {
137137
'@kbn/eslint/require-license-header': [
138138
'error',
@@ -153,7 +153,7 @@ module.exports = {
153153
* New Platform client-side
154154
*/
155155
{
156-
files: ['{src,x-pack}/plugins/*/public/**/*.{js,ts,tsx}'],
156+
files: ['{src,x-pack}/plugins/*/public/**/*.{js,mjs,ts,tsx}'],
157157
rules: {
158158
'import/no-commonjs': 'error',
159159
},
@@ -163,7 +163,7 @@ module.exports = {
163163
* Files that require Elastic license headers instead of Apache 2.0 header
164164
*/
165165
{
166-
files: ['x-pack/**/*.{js,ts,tsx}'],
166+
files: ['x-pack/**/*.{js,mjs,ts,tsx}'],
167167
rules: {
168168
'@kbn/eslint/require-license-header': [
169169
'error',
@@ -184,7 +184,7 @@ module.exports = {
184184
* Restricted paths
185185
*/
186186
{
187-
files: ['**/*.{js,ts,tsx}'],
187+
files: ['**/*.{js,mjs,ts,tsx}'],
188188
rules: {
189189
'@kbn/eslint/no-restricted-paths': [
190190
'error',
@@ -251,8 +251,8 @@ module.exports = {
251251
],
252252
from: [
253253
'(src|x-pack)/plugins/**/(public|server)/**/*',
254-
'!(src|x-pack)/plugins/**/(public|server)/mocks/index.{js,ts}',
255-
'!(src|x-pack)/plugins/**/(public|server)/(index|mocks).{js,ts,tsx}',
254+
'!(src|x-pack)/plugins/**/(public|server)/mocks/index.{js,mjs,ts}',
255+
'!(src|x-pack)/plugins/**/(public|server)/(index|mocks).{js,mjs,ts,tsx}',
256256
],
257257
allowSameFolder: true,
258258
errorMessage: 'Plugins may only import from top-level public and server modules.',
@@ -264,11 +264,11 @@ module.exports = {
264264

265265
'src/legacy/core_plugins/**/*',
266266
'!src/legacy/core_plugins/**/server/**/*',
267-
'!src/legacy/core_plugins/**/index.{js,ts,tsx}',
267+
'!src/legacy/core_plugins/**/index.{js,mjs,ts,tsx}',
268268

269269
'x-pack/legacy/plugins/**/*',
270270
'!x-pack/legacy/plugins/**/server/**/*',
271-
'!x-pack/legacy/plugins/**/index.{js,ts,tsx}',
271+
'!x-pack/legacy/plugins/**/index.{js,mjs,ts,tsx}',
272272

273273
'examples/**/*',
274274
'!examples/**/server/**/*',
@@ -334,6 +334,7 @@ module.exports = {
334334
*/
335335
{
336336
files: [
337+
'x-pack/test/apm_api_integration/**/*.ts',
337338
'x-pack/test/functional/apps/**/*.js',
338339
'x-pack/plugins/apm/**/*.js',
339340
'test/*/config.ts',
@@ -530,7 +531,7 @@ module.exports = {
530531
* Jest specific rules
531532
*/
532533
{
533-
files: ['**/*.test.{js,ts,tsx}'],
534+
files: ['**/*.test.{js,mjs,ts,tsx}'],
534535
rules: {
535536
'jest/valid-describe': 'error',
536537
},
@@ -595,8 +596,8 @@ module.exports = {
595596
{
596597
// front end and common typescript and javascript files only
597598
files: [
598-
'x-pack/plugins/security_solution/public/**/*.{js,ts,tsx}',
599-
'x-pack/plugins/security_solution/common/**/*.{js,ts,tsx}',
599+
'x-pack/plugins/security_solution/public/**/*.{js,mjs,ts,tsx}',
600+
'x-pack/plugins/security_solution/common/**/*.{js,mjs,ts,tsx}',
600601
],
601602
rules: {
602603
'import/no-nodejs-modules': 'error',
@@ -646,7 +647,7 @@ module.exports = {
646647
// {
647648
// // will introduced after the other warns are fixed
648649
// // typescript and javascript for front end react performance
649-
// files: ['x-pack/plugins/security_solution/public/**/!(*.test).{js,ts,tsx}'],
650+
// files: ['x-pack/plugins/security_solution/public/**/!(*.test).{js,mjs,ts,tsx}'],
650651
// plugins: ['react-perf'],
651652
// rules: {
652653
// // 'react-perf/jsx-no-new-object-as-prop': 'error',
@@ -657,7 +658,7 @@ module.exports = {
657658
// },
658659
{
659660
// typescript and javascript for front and back end
660-
files: ['x-pack/{,legacy/}plugins/security_solution/**/*.{js,ts,tsx}'],
661+
files: ['x-pack/{,legacy/}plugins/security_solution/**/*.{js,mjs,ts,tsx}'],
661662
plugins: ['eslint-plugin-node', 'react'],
662663
env: {
663664
mocha: true,
@@ -776,8 +777,8 @@ module.exports = {
776777
{
777778
// front end and common typescript and javascript files only
778779
files: [
779-
'x-pack/plugins/lists/public/**/*.{js,ts,tsx}',
780-
'x-pack/plugins/lists/common/**/*.{js,ts,tsx}',
780+
'x-pack/plugins/lists/public/**/*.{js,mjs,ts,tsx}',
781+
'x-pack/plugins/lists/common/**/*.{js,mjs,ts,tsx}',
781782
],
782783
rules: {
783784
'import/no-nodejs-modules': 'error',
@@ -792,7 +793,7 @@ module.exports = {
792793
},
793794
{
794795
// typescript and javascript for front and back end
795-
files: ['x-pack/plugins/lists/**/*.{js,ts,tsx}'],
796+
files: ['x-pack/plugins/lists/**/*.{js,mjs,ts,tsx}'],
796797
plugins: ['eslint-plugin-node'],
797798
env: {
798799
mocha: true,
@@ -1020,8 +1021,8 @@ module.exports = {
10201021
*/
10211022
{
10221023
files: [
1023-
'src/plugins/vis_type_timeseries/**/*.{js,ts,tsx}',
1024-
'src/legacy/core_plugins/vis_type_timeseries/**/*.{js,ts,tsx}',
1024+
'src/plugins/vis_type_timeseries/**/*.{js,mjs,ts,tsx}',
1025+
'src/legacy/core_plugins/vis_type_timeseries/**/*.{js,mjs,ts,tsx}',
10251026
],
10261027
rules: {
10271028
'import/no-default-export': 'error',

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
/x-pack/plugins/infra/ @elastic/logs-metrics-ui
8585
/x-pack/plugins/ingest_manager/ @elastic/ingest-management
8686
/x-pack/legacy/plugins/ingest_manager/ @elastic/ingest-management
87-
/x-pack/plugins/observability/ @elastic/logs-metrics-ui @elastic/apm-ui @elastic/uptime @elastic/ingest-management
87+
/x-pack/plugins/observability/ @elastic/observability-ui
8888
/x-pack/legacy/plugins/monitoring/ @elastic/stack-monitoring-ui
8989
/x-pack/plugins/monitoring/ @elastic/stack-monitoring-ui
9090
/x-pack/plugins/uptime @elastic/uptime
@@ -132,6 +132,7 @@
132132

133133
# Quality Assurance
134134
/src/dev/code_coverage @elastic/kibana-qa
135+
/vars/*Coverage.groovy @elastic/kibana-qa
135136
/test/functional/services/common @elastic/kibana-qa
136137
/test/functional/services/lib @elastic/kibana-qa
137138
/test/functional/services/remote @elastic/kibana-qa

docs/api/using-api.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ NOTE: The {kib} Console supports only Elasticsearch APIs. You are unable to inte
1010
[float]
1111
[[api-authentication]]
1212
=== Authentication
13-
{kib} supports token-based authentication with the same username and password that you use to log into the {kib} Console.
13+
{kib} supports token-based authentication with the same username and password that you use to log into the {kib} Console. In a given HTTP tool, and when available, you can select to use its 'Basic Authentication' option, which is where the username and password are stored in order to be passed as part of the call.
1414

1515
[float]
1616
[[api-calls]]

docs/developer/core/development-unit-tests.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yarn test:mocha
2222

2323
[float]
2424
==== Jest
25-
Jest tests are stored in the same directory as source code files with the `.test.{js,ts,tsx}` suffix.
25+
Jest tests are stored in the same directory as source code files with the `.test.{js,mjs,ts,tsx}` suffix.
2626

2727
*Running Jest Unit Tests*
2828

docs/development/core/server/kibana-plugin-core-server.savedobjecttyperegistry.getalltypes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
## SavedObjectTypeRegistry.getAllTypes() method
66

7-
Return all [types](./kibana-plugin-core-server.savedobjectstype.md) currently registered.
7+
Return all [types](./kibana-plugin-core-server.savedobjectstype.md) currently registered, including the hidden ones.
8+
9+
To only get the visible types (which is the most common use case), use `getVisibleTypes` instead.
810

911
<b>Signature:</b>
1012

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [SavedObjectTypeRegistry](./kibana-plugin-core-server.savedobjecttyperegistry.md) &gt; [getVisibleTypes](./kibana-plugin-core-server.savedobjecttyperegistry.getvisibletypes.md)
4+
5+
## SavedObjectTypeRegistry.getVisibleTypes() method
6+
7+
Returns all visible [types](./kibana-plugin-core-server.savedobjectstype.md)<!-- -->.
8+
9+
A visible type is a type that doesn't explicitly define `hidden=true` during registration.
10+
11+
<b>Signature:</b>
12+
13+
```typescript
14+
getVisibleTypes(): SavedObjectsType[];
15+
```
16+
<b>Returns:</b>
17+
18+
`SavedObjectsType[]`
19+

docs/development/core/server/kibana-plugin-core-server.savedobjecttyperegistry.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ export declare class SavedObjectTypeRegistry
1616

1717
| Method | Modifiers | Description |
1818
| --- | --- | --- |
19-
| [getAllTypes()](./kibana-plugin-core-server.savedobjecttyperegistry.getalltypes.md) | | Return all [types](./kibana-plugin-core-server.savedobjectstype.md) currently registered. |
19+
| [getAllTypes()](./kibana-plugin-core-server.savedobjecttyperegistry.getalltypes.md) | | Return all [types](./kibana-plugin-core-server.savedobjectstype.md) currently registered, including the hidden ones.<!-- -->To only get the visible types (which is the most common use case), use <code>getVisibleTypes</code> instead. |
2020
| [getImportableAndExportableTypes()](./kibana-plugin-core-server.savedobjecttyperegistry.getimportableandexportabletypes.md) | | Return all [types](./kibana-plugin-core-server.savedobjectstype.md) currently registered that are importable/exportable. |
2121
| [getIndex(type)](./kibana-plugin-core-server.savedobjecttyperegistry.getindex.md) | | Returns the <code>indexPattern</code> property for given type, or <code>undefined</code> if the type is not registered. |
2222
| [getType(type)](./kibana-plugin-core-server.savedobjecttyperegistry.gettype.md) | | Return the [type](./kibana-plugin-core-server.savedobjectstype.md) definition for given type name. |
23+
| [getVisibleTypes()](./kibana-plugin-core-server.savedobjecttyperegistry.getvisibletypes.md) | | Returns all visible [types](./kibana-plugin-core-server.savedobjectstype.md)<!-- -->.<!-- -->A visible type is a type that doesn't explicitly define <code>hidden=true</code> during registration. |
2324
| [isHidden(type)](./kibana-plugin-core-server.savedobjecttyperegistry.ishidden.md) | | Returns the <code>hidden</code> property for given type, or <code>false</code> if the type is not registered. |
2425
| [isImportableAndExportable(type)](./kibana-plugin-core-server.savedobjecttyperegistry.isimportableandexportable.md) | | Returns the <code>management.importableAndExportable</code> property for given type, or <code>false</code> if the type is not registered or does not define a management section. |
2526
| [isMultiNamespace(type)](./kibana-plugin-core-server.savedobjecttyperegistry.ismultinamespace.md) | | Returns whether the type is multi-namespace (shareable); resolves to <code>false</code> if the type is not registered |

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern._constructor_.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Constructs a new instance of the `IndexPattern` class
99
<b>Signature:</b>
1010

1111
```typescript
12-
constructor(id: string | undefined, { getConfig, savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, }: IndexPatternDeps);
12+
constructor(id: string | undefined, { getConfig, savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, uiSettingsValues, }: IndexPatternDeps);
1313
```
1414

1515
## Parameters
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
1919
| id | <code>string &#124; undefined</code> | |
20-
| { getConfig, savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, } | <code>IndexPatternDeps</code> | |
20+
| { getConfig, savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, uiSettingsValues, } | <code>IndexPatternDeps</code> | |
2121

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export declare class IndexPattern implements IIndexPattern
1414
1515
| Constructor | Modifiers | Description |
1616
| --- | --- | --- |
17-
| [(constructor)(id, { getConfig, savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, })](./kibana-plugin-plugins-data-public.indexpattern._constructor_.md) | | Constructs a new instance of the <code>IndexPattern</code> class |
17+
| [(constructor)(id, { getConfig, savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, uiSettingsValues, })](./kibana-plugin-plugins-data-public.indexpattern._constructor_.md) | | Constructs a new instance of the <code>IndexPattern</code> class |
1818
1919
## Properties
2020

0 commit comments

Comments
 (0)