Skip to content

Commit b2cf45d

Browse files
Merge branch 'master' into docs/updates-advanced-settings
2 parents c7721e3 + 6b9ba10 commit b2cf45d

882 files changed

Lines changed: 23271 additions & 17968 deletions

File tree

Some content is hidden

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

.eslintignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,13 @@ snapshots.js
2121

2222
# plugin overrides
2323
/src/core/lib/kbn_internal_native_observable
24-
/src/legacy/plugin_discovery/plugin_pack/__tests__/fixtures/plugins/broken
2524
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
2625
/src/plugins/vis_type_timelion/common/_generated_/**
27-
/x-pack/legacy/plugins/**/__tests__/fixtures/**
2826
/x-pack/plugins/apm/e2e/tmp/*
2927
/x-pack/plugins/canvas/canvas_plugin
3028
/x-pack/plugins/canvas/shareable_runtime/build
3129
/x-pack/plugins/canvas/storybook/build
3230
/x-pack/plugins/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/**
33-
/x-pack/legacy/plugins/infra/common/graphql/types.ts
34-
/x-pack/legacy/plugins/infra/public/graphql/types.ts
35-
/x-pack/legacy/plugins/infra/server/graphql/types.ts
36-
/x-pack/legacy/plugins/maps/public/vendor/**
3731

3832
# package overrides
3933
/packages/elastic-eslint-config-kibana

.eslintrc.js

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,7 @@ module.exports = {
410410
errorMessage: `Common code can not import from server or public, use a common directory.`,
411411
},
412412
{
413-
target: [
414-
'src/legacy/**/*',
415-
'(src|x-pack)/plugins/**/(public|server)/**/*',
416-
'examples/**/*',
417-
],
413+
target: ['(src|x-pack)/plugins/**/(public|server)/**/*', 'examples/**/*'],
418414
from: [
419415
'src/core/public/**/*',
420416
'!src/core/public/index.ts', // relative import
@@ -428,8 +424,6 @@ module.exports = {
428424
'!src/core/server/mocks{,.ts}',
429425
'!src/core/server/types{,.ts}',
430426
'!src/core/server/test_utils{,.ts}',
431-
'!src/core/server/utils', // ts alias
432-
'!src/core/server/utils/**/*',
433427
// for absolute imports until fixed in
434428
// https://github.com/elastic/kibana/issues/36096
435429
'!src/core/server/*.test.mocks{,.ts}',
@@ -442,7 +436,6 @@ module.exports = {
442436
},
443437
{
444438
target: [
445-
'src/legacy/**/*',
446439
'(src|x-pack)/plugins/**/(public|server)/**/*',
447440
'examples/**/*',
448441
'!(src|x-pack)/**/*.test.*',
@@ -482,27 +475,14 @@ module.exports = {
482475
},
483476
{
484477
target: ['src/core/**/*'],
485-
from: ['plugins/**/*', 'src/plugins/**/*', 'src/legacy/ui/**/*'],
478+
from: ['plugins/**/*', 'src/plugins/**/*'],
486479
errorMessage: 'The core cannot depend on any plugins.',
487480
},
488481
{
489482
target: ['(src|x-pack)/plugins/*/public/**/*'],
490483
from: ['ui/**/*'],
491484
errorMessage: 'Plugins cannot import legacy UI code.',
492485
},
493-
{
494-
from: ['src/legacy/ui/**/*', 'ui/**/*'],
495-
target: [
496-
'test/plugin_functional/plugins/**/public/np_ready/**/*',
497-
'test/plugin_functional/plugins/**/server/np_ready/**/*',
498-
],
499-
allowSameFolder: true,
500-
errorMessage:
501-
'NP-ready code should not import from /src/legacy/ui/** folder. ' +
502-
'Instead of importing from /src/legacy/ui/** deeply within a np_ready folder, ' +
503-
'import those things once at the top level of your plugin and pass those down, just ' +
504-
'like you pass down `core` and `plugins` objects.',
505-
},
506486
],
507487
},
508488
],

.github/CODEOWNERS

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
/x-pack/plugins/dashboard_enhanced/ @elastic/kibana-presentation
108108
/x-pack/test/functional/apps/canvas/ @elastic/kibana-presentation
109109
#CC# /src/plugins/kibana_react/public/code_editor/ @elastic/kibana-presentation
110-
#CC# /x-pack/legacy/plugins/canvas/ @elastic/kibana-presentation
111110
#CC# /x-pack/plugins/dashboard_mode @elastic/kibana-presentation
112111

113112

@@ -146,7 +145,6 @@
146145
/x-pack/test/visual_regression/tests/maps/index.js @elastic/kibana-gis
147146
#CC# /src/plugins/maps_legacy/ @elastic/kibana-gis
148147
#CC# /x-pack/plugins/file_upload @elastic/kibana-gis
149-
#CC# /x-pack/plugins/maps_legacy_licensing @elastic/kibana-gis
150148
/src/plugins/tile_map/ @elastic/kibana-gis
151149
/src/plugins/region_map/ @elastic/kibana-gis
152150

@@ -165,7 +163,6 @@
165163
/packages/kbn-utils/ @elastic/kibana-operations
166164
/packages/kbn-cli-dev-mode/ @elastic/kibana-operations
167165
/src/cli/keystore/ @elastic/kibana-operations
168-
/src/legacy/server/warnings/ @elastic/kibana-operations
169166
/.ci/es-snapshots/ @elastic/kibana-operations
170167
/.github/workflows/ @elastic/kibana-operations
171168
/vars/ @elastic/kibana-operations
@@ -202,9 +199,6 @@
202199
/packages/kbn-legacy-logging/ @elastic/kibana-core
203200
/packages/kbn-crypto/ @elastic/kibana-core
204201
/packages/kbn-http-tools/ @elastic/kibana-core
205-
/src/legacy/server/config/ @elastic/kibana-core
206-
/src/legacy/server/http/ @elastic/kibana-core
207-
/src/legacy/server/logging/ @elastic/kibana-core
208202
/src/plugins/status_page/ @elastic/kibana-core
209203
/src/plugins/saved_objects_management/ @elastic/kibana-core
210204
/src/dev/run_check_published_api_changes.ts @elastic/kibana-core
@@ -214,9 +208,6 @@
214208
/src/plugins/kibana_overview/ @elastic/kibana-core
215209
/x-pack/plugins/global_search_bar/ @elastic/kibana-core
216210
#CC# /src/core/server/csp/ @elastic/kibana-core
217-
#CC# /src/legacy/server/config/ @elastic/kibana-core
218-
#CC# /src/legacy/server/http/ @elastic/kibana-core
219-
#CC# /src/legacy/ui/public/documentation_links @elastic/kibana-core
220211
#CC# /src/plugins/legacy_export/ @elastic/kibana-core
221212
#CC# /src/plugins/xpack_legacy/ @elastic/kibana-core
222213
#CC# /src/plugins/saved_objects/ @elastic/kibana-core

.github/workflows/project-assigner.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ jobs:
1111
uses: elastic/github-actions/project-assigner@v2.0.0
1212
id: project_assigner
1313
with:
14-
issue-mappings: '[{"label": "Feature:Lens", "projectNumber": 32, "columnName": "Long-term goals"}, {"label": "Feature:Canvas", "projectNumber": 38, "columnName": "Inbox"}, {"label": "Feature:Dashboard", "projectNumber": 68, "columnName": "Inbox"}, {"label": "Feature:Drilldowns", "projectNumber": 68, "columnName": "Inbox"}]'
14+
issue-mappings: '[{"label": "Feature:Lens", "projectNumber": 32, "columnName": "Long-term goals"}, {"label": "Feature:Canvas", "projectNumber": 38, "columnName": "Inbox"}, {"label": "Feature:Dashboard", "projectNumber": 68, "columnName": "Inbox"}, {"label": "Feature:Drilldowns", "projectNumber": 68, "columnName": "Inbox"}, {"label": "Feature:Input Controls", "projectNumber": 72, "columnName": "Inbox"}]'
1515
ghToken: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
16-
17-

api_docs/data_ui.json

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,34 @@
415415
"signature": [
416416
"string | undefined"
417417
]
418+
},
419+
{
420+
"tags": [],
421+
"id": "def-public.QueryStringInputProps.autoSubmit",
422+
"type": "CompoundType",
423+
"label": "autoSubmit",
424+
"description": [],
425+
"source": {
426+
"path": "src/plugins/data/public/ui/query_string_input/query_string_input.tsx",
427+
"lineNumber": 72
428+
},
429+
"signature": [
430+
"boolean | undefined"
431+
]
432+
},
433+
{
434+
"tags": [],
435+
"id": "def-public.QueryStringInputProps.storageKey",
436+
"type": "string",
437+
"label": "storageKey",
438+
"description": [],
439+
"source": {
440+
"path": "src/plugins/data/public/ui/query_string_input/query_string_input.tsx",
441+
"lineNumber": 76
442+
},
443+
"signature": [
444+
"string | undefined"
445+
]
418446
}
419447
],
420448
"source": {
@@ -460,15 +488,15 @@
460488
"section": "def-public.SearchBarProps",
461489
"text": "SearchBarProps"
462490
},
463-
", \"filters\" | \"query\" | \"intl\" | \"indexPatterns\" | \"isLoading\" | \"customSubmitButton\" | \"screenTitle\" | \"dataTestSubj\" | \"showQueryBar\" | \"showQueryInput\" | \"showFilterBar\" | \"showDatePicker\" | \"showAutoRefreshOnly\" | \"isRefreshPaused\" | \"refreshInterval\" | \"dateRangeFrom\" | \"dateRangeTo\" | \"showSaveQuery\" | \"savedQuery\" | \"onQueryChange\" | \"onQuerySubmit\" | \"onSaved\" | \"onSavedQueryUpdated\" | \"onClearSavedQuery\" | \"onRefresh\" | \"indicateNoData\" | \"placeholder\" | \"isClearable\" | \"iconType\" | \"nonKqlMode\" | \"nonKqlModeHelpText\" | \"timeHistory\" | \"onFiltersUpdated\" | \"onRefreshChange\">, \"filters\" | \"query\" | \"indexPatterns\" | \"isLoading\" | \"customSubmitButton\" | \"screenTitle\" | \"dataTestSubj\" | \"showQueryBar\" | \"showQueryInput\" | \"showFilterBar\" | \"showDatePicker\" | \"showAutoRefreshOnly\" | \"isRefreshPaused\" | \"refreshInterval\" | \"dateRangeFrom\" | \"dateRangeTo\" | \"showSaveQuery\" | \"savedQuery\" | \"onQueryChange\" | \"onQuerySubmit\" | \"onSaved\" | \"onSavedQueryUpdated\" | \"onClearSavedQuery\" | \"onRefresh\" | \"indicateNoData\" | \"placeholder\" | \"isClearable\" | \"iconType\" | \"nonKqlMode\" | \"nonKqlModeHelpText\" | \"timeHistory\" | \"onFiltersUpdated\" | \"onRefreshChange\">, any> & { WrappedComponent: React.ComponentType<Pick<",
491+
", \"filters\" | \"query\" | \"intl\" | \"indexPatterns\" | \"isLoading\" | \"customSubmitButton\" | \"screenTitle\" | \"dataTestSubj\" | \"showQueryBar\" | \"showQueryInput\" | \"showFilterBar\" | \"showDatePicker\" | \"showAutoRefreshOnly\" | \"isRefreshPaused\" | \"refreshInterval\" | \"dateRangeFrom\" | \"dateRangeTo\" | \"showSaveQuery\" | \"savedQuery\" | \"onQueryChange\" | \"onQuerySubmit\" | \"onSaved\" | \"onSavedQueryUpdated\" | \"onClearSavedQuery\" | \"onRefresh\" | \"indicateNoData\" | \"placeholder\" | \"isClearable\" | \"iconType\" | \"nonKqlMode\" | \"nonKqlModeHelpText\" | \"storageKey\" | \"disableLanguageSwitcher\" | \"isInvalid\" | \"autoSubmit\" | \"timeHistory\" | \"onFiltersUpdated\" | \"onRefreshChange\">, \"filters\" | \"query\" | \"indexPatterns\" | \"isLoading\" | \"customSubmitButton\" | \"screenTitle\" | \"dataTestSubj\" | \"showQueryBar\" | \"showQueryInput\" | \"showFilterBar\" | \"showDatePicker\" | \"showAutoRefreshOnly\" | \"isRefreshPaused\" | \"refreshInterval\" | \"dateRangeFrom\" | \"dateRangeTo\" | \"showSaveQuery\" | \"savedQuery\" | \"onQueryChange\" | \"onQuerySubmit\" | \"onSaved\" | \"onSavedQueryUpdated\" | \"onClearSavedQuery\" | \"onRefresh\" | \"indicateNoData\" | \"placeholder\" | \"isClearable\" | \"iconType\" | \"nonKqlMode\" | \"nonKqlModeHelpText\" | \"storageKey\" | \"disableLanguageSwitcher\" | \"isInvalid\" | \"autoSubmit\" | \"timeHistory\" | \"onFiltersUpdated\" | \"onRefreshChange\">, any> & { WrappedComponent: React.ComponentType<Pick<",
464492
{
465493
"pluginId": "data",
466494
"scope": "public",
467495
"docId": "kibDataUiPluginApi",
468496
"section": "def-public.SearchBarProps",
469497
"text": "SearchBarProps"
470498
},
471-
", \"filters\" | \"query\" | \"intl\" | \"indexPatterns\" | \"isLoading\" | \"customSubmitButton\" | \"screenTitle\" | \"dataTestSubj\" | \"showQueryBar\" | \"showQueryInput\" | \"showFilterBar\" | \"showDatePicker\" | \"showAutoRefreshOnly\" | \"isRefreshPaused\" | \"refreshInterval\" | \"dateRangeFrom\" | \"dateRangeTo\" | \"showSaveQuery\" | \"savedQuery\" | \"onQueryChange\" | \"onQuerySubmit\" | \"onSaved\" | \"onSavedQueryUpdated\" | \"onClearSavedQuery\" | \"onRefresh\" | \"indicateNoData\" | \"placeholder\" | \"isClearable\" | \"iconType\" | \"nonKqlMode\" | \"nonKqlModeHelpText\" | \"timeHistory\" | \"onFiltersUpdated\" | \"onRefreshChange\"> & ReactIntl.InjectedIntlProps>; }"
499+
", \"filters\" | \"query\" | \"intl\" | \"indexPatterns\" | \"isLoading\" | \"customSubmitButton\" | \"screenTitle\" | \"dataTestSubj\" | \"showQueryBar\" | \"showQueryInput\" | \"showFilterBar\" | \"showDatePicker\" | \"showAutoRefreshOnly\" | \"isRefreshPaused\" | \"refreshInterval\" | \"dateRangeFrom\" | \"dateRangeTo\" | \"showSaveQuery\" | \"savedQuery\" | \"onQueryChange\" | \"onQuerySubmit\" | \"onSaved\" | \"onSavedQueryUpdated\" | \"onClearSavedQuery\" | \"onRefresh\" | \"indicateNoData\" | \"placeholder\" | \"isClearable\" | \"iconType\" | \"nonKqlMode\" | \"nonKqlModeHelpText\" | \"storageKey\" | \"disableLanguageSwitcher\" | \"isInvalid\" | \"autoSubmit\" | \"timeHistory\" | \"onFiltersUpdated\" | \"onRefreshChange\"> & ReactIntl.InjectedIntlProps>; }"
472500
],
473501
"initialIsOpen": false
474502
},
@@ -480,7 +508,7 @@
480508
"description": [],
481509
"source": {
482510
"path": "src/plugins/data/public/ui/search_bar/search_bar.tsx",
483-
"lineNumber": 80
511+
"lineNumber": 84
484512
},
485513
"signature": [
486514
"SearchBarOwnProps & SearchBarInjectedDeps"
@@ -521,4 +549,4 @@
521549
"misc": [],
522550
"objects": []
523551
}
524-
}
552+
}

api_docs/navigation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
},
483483
"signature": [
484484
"SearchBarOwnProps",
485-
" & { appName: string; useDefaultBehaviors?: boolean | undefined; savedQueryId?: string | undefined; onSavedQueryIdChange?: ((savedQueryId?: string | undefined) => void) | undefined; } & Pick<SearchBarProps, \"filters\" | \"query\" | \"indexPatterns\" | \"isLoading\" | \"customSubmitButton\" | \"screenTitle\" | \"dataTestSubj\" | \"showQueryBar\" | \"showQueryInput\" | \"showFilterBar\" | \"showDatePicker\" | \"showAutoRefreshOnly\" | \"isRefreshPaused\" | \"refreshInterval\" | \"dateRangeFrom\" | \"dateRangeTo\" | \"showSaveQuery\" | \"savedQuery\" | \"onQueryChange\" | \"onQuerySubmit\" | \"onSaved\" | \"onSavedQueryUpdated\" | \"onClearSavedQuery\" | \"onRefresh\" | \"indicateNoData\" | \"placeholder\" | \"isClearable\" | \"iconType\" | \"nonKqlMode\" | \"nonKqlModeHelpText\" | \"onFiltersUpdated\" | \"onRefreshChange\"> & { config?: TopNavMenuData[] | undefined; badges?: (({ iconType?: string | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined; iconSide?: \"left\" | \"right\" | undefined; color?: string | undefined; isDisabled?: boolean | undefined; closeButtonProps?: Partial<",
485+
" & { appName: string; useDefaultBehaviors?: boolean | undefined; savedQueryId?: string | undefined; onSavedQueryIdChange?: ((savedQueryId?: string | undefined) => void) | undefined; } & Pick<SearchBarProps, \"filters\" | \"query\" | \"indexPatterns\" | \"isLoading\" | \"customSubmitButton\" | \"screenTitle\" | \"dataTestSubj\" | \"showQueryBar\" | \"showQueryInput\" | \"showFilterBar\" | \"showDatePicker\" | \"showAutoRefreshOnly\" | \"isRefreshPaused\" | \"refreshInterval\" | \"dateRangeFrom\" | \"dateRangeTo\" | \"showSaveQuery\" | \"savedQuery\" | \"onQueryChange\" | \"onQuerySubmit\" | \"onSaved\" | \"onSavedQueryUpdated\" | \"onClearSavedQuery\" | \"onRefresh\" | \"indicateNoData\" | \"placeholder\" | \"isClearable\" | \"iconType\" | \"nonKqlMode\" | \"nonKqlModeHelpText\" | \"storageKey\" | \"disableLanguageSwitcher\" | \"isInvalid\" | \"autoSubmit\" | \"onFiltersUpdated\" | \"onRefreshChange\"> & { config?: TopNavMenuData[] | undefined; badges?: (({ iconType?: string | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined; iconSide?: \"left\" | \"right\" | undefined; color?: string | undefined; isDisabled?: boolean | undefined; closeButtonProps?: Partial<",
486486
"EuiIconProps",
487487
"> | undefined; } & ",
488488
"CommonProps",

docs/canvas/canvas-expression-lifecycle.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ Since all of the sub-expressions are now resolved into actual values, the <<imag
177177
demodata
178178
| image dataurl={
179179
if condition={getCell price | gte 100}
180-
then={asset 3cb3ec3a-84d7-48fa-8709-274ad5cc9e0b}
181-
else={asset cbc11a1f-8f25-4163-94b4-2c3a060192e7}
180+
then={asset "asset-3cb3ec3a-84d7-48fa-8709-274ad5cc9e0b"}
181+
else={asset "asset-cbc11a1f-8f25-4163-94b4-2c3a060192e7"}
182182
}
183183
----
184184

docs/canvas/canvas-function-reference.asciidoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,37 @@ Clears the _context_, and returns `null`.
376376
*Returns:* `null`
377377

378378

379+
[float]
380+
[[clog_fn]]
381+
=== `clog`
382+
383+
It outputs the _context_ in the console. This function is for debug purpose.
384+
385+
*Expression syntax*
386+
[source,js]
387+
----
388+
clog
389+
----
390+
391+
*Code example*
392+
[source,text]
393+
----
394+
filters
395+
| demodata
396+
| clog
397+
| filterrows fn={getCell "age" | gt 70}
398+
| clog
399+
| pointseries x="time" y="mean(price)"
400+
| plot defaultStyle={seriesStyle lines=1 fill=1}
401+
| render
402+
----
403+
This prints the `datatable` objects in the browser console before and after the `filterrows` function.
404+
405+
*Accepts:* `any`
406+
407+
*Returns:* `any`
408+
409+
379410
[float]
380411
[[columns_fn]]
381412
=== `columns`

docs/developer/plugin-list.asciidoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,6 @@ using the CURL scripts in the scripts folder.
452452
|Visualize geo data from Elasticsearch or 3rd party geo-services.
453453
454454
455-
|{kib-repo}blob/{branch}/x-pack/plugins/maps_legacy_licensing/README.md[mapsLegacyLicensing]
456-
|This plugin provides access to the detailed tile map services from Elastic.
457-
458-
459455
|{kib-repo}blob/{branch}/x-pack/plugins/ml/readme.md[ml]
460456
|This plugin provides access to the machine learning features provided by
461457
Elastic.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Set of helpers used to create `KibanaResponse` to form HTTP response on an incom
1010

1111
```typescript
1212
kibanaResponseFactory: {
13-
custom: <T extends string | Record<string, any> | Error | Buffer | {
13+
custom: <T extends string | Record<string, any> | Error | Buffer | Stream | {
1414
message: string | Error;
1515
attributes?: Record<string, any> | undefined;
16-
} | Stream | undefined>(options: CustomHttpResponseOptions<T>) => KibanaResponse<T>;
16+
} | undefined>(options: CustomHttpResponseOptions<T>) => KibanaResponse<T>;
1717
badRequest: (options?: ErrorHttpResponseOptions) => KibanaResponse<ResponseError>;
1818
unauthorized: (options?: ErrorHttpResponseOptions) => KibanaResponse<ResponseError>;
1919
forbidden: (options?: ErrorHttpResponseOptions) => KibanaResponse<ResponseError>;

0 commit comments

Comments
 (0)