Skip to content

Commit 2cfa109

Browse files
Merge branch 'master' into node-block-fix-source-query
2 parents 6709047 + 9cafade commit 2cfa109

File tree

336 files changed

+6818
-2639
lines changed

Some content is hidden

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

336 files changed

+6818
-2639
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ module.exports = {
517517
'packages/kbn-interpreter/tasks/**/*.js',
518518
'packages/kbn-interpreter/src/plugin/**/*.js',
519519
'x-pack/{dev-tools,tasks,scripts,test,build_chromium}/**/*.js',
520-
'x-pack/**/{__tests__,__test__,__jest__,__fixtures__,__mocks__}/**/*.js',
520+
'x-pack/**/{__tests__,__test__,__jest__,__fixtures__,__mocks__,public}/**/*.js',
521521
'x-pack/**/*.test.js',
522522
'x-pack/test_utils/**/*',
523523
'x-pack/gulpfile.js',

.github/CODEOWNERS

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
/x-pack/plugins/lens/ @elastic/kibana-app
99
/x-pack/plugins/graph/ @elastic/kibana-app
1010
/src/plugins/dashboard/ @elastic/kibana-app
11-
/src/plugins/dashboard/**/*.scss @elastic/kibana-core-ui-designers
1211
/src/plugins/discover/ @elastic/kibana-app
1312
/src/plugins/input_control_vis/ @elastic/kibana-app
1413
/src/plugins/kibana_legacy/ @elastic/kibana-app
@@ -59,7 +58,6 @@
5958

6059
# APM
6160
/x-pack/plugins/apm/ @elastic/apm-ui
62-
/x-pack/plugins/apm/**/*.scss @elastic/observability-design
6361
/x-pack/test/functional/apps/apm/ @elastic/apm-ui
6462
/src/legacy/core_plugins/apm_oss/ @elastic/apm-ui
6563
/src/plugins/apm_oss/ @elastic/apm-ui
@@ -70,7 +68,6 @@
7068

7169
# Canvas
7270
/x-pack/plugins/canvas/ @elastic/kibana-canvas
73-
/x-pack/plugins/canvas/**/*.scss @elastic/kibana-core-ui-designers
7471
/x-pack/test/functional/apps/canvas/ @elastic/kibana-canvas
7572

7673
# Core UI
@@ -80,18 +77,14 @@
8077
/src/plugins/home/server/services/ @elastic/kibana-core-ui
8178
# Exclude tutorial resources folder for now because they are not owned by Kibana app and most will move out soon
8279
/src/legacy/core_plugins/kibana/public/home/*.ts @elastic/kibana-core-ui
83-
/src/legacy/core_plugins/kibana/public/home/**/*.scss @elastic/kibana-core-ui-designers
8480
/src/legacy/core_plugins/kibana/public/home/np_ready/ @elastic/kibana-core-ui
8581

8682
# Observability UIs
8783
/x-pack/legacy/plugins/infra/ @elastic/logs-metrics-ui
8884
/x-pack/plugins/infra/ @elastic/logs-metrics-ui
89-
/x-pack/plugins/infra/**/*.scss @elastic/observability-design
9085
/x-pack/plugins/ingest_manager/ @elastic/ingest-management
91-
/x-pack/plugins/ingest_manager/**/*.scss @elastic/observability-design
9286
/x-pack/legacy/plugins/ingest_manager/ @elastic/ingest-management
9387
/x-pack/plugins/observability/ @elastic/observability-ui
94-
/x-pack/plugins/observability/**/*.scss @elastic/observability-design
9588
/x-pack/legacy/plugins/monitoring/ @elastic/stack-monitoring-ui
9689
/x-pack/plugins/monitoring/ @elastic/stack-monitoring-ui
9790
/x-pack/plugins/uptime @elastic/uptime
@@ -165,14 +158,10 @@
165158
# Security
166159
/src/core/server/csp/ @elastic/kibana-security @elastic/kibana-platform
167160
/x-pack/legacy/plugins/security/ @elastic/kibana-security
168-
/x-pack/legacy/plugins/security/**/*.scss @elastic/kibana-core-ui-designers
169161
/x-pack/legacy/plugins/spaces/ @elastic/kibana-security
170-
/x-pack/legacy/plugins/spaces/**/*.scss @elastic/kibana-core-ui-designers
171162
/x-pack/plugins/spaces/ @elastic/kibana-security
172-
/x-pack/plugins/spaces/**/*.scss @elastic/kibana-core-ui-designers
173163
/x-pack/plugins/encrypted_saved_objects/ @elastic/kibana-security
174164
/x-pack/plugins/security/ @elastic/kibana-security
175-
/x-pack/plugins/security/**/*.scss @elastic/kibana-core-ui-designers
176165
/x-pack/test/api_integration/apis/security/ @elastic/kibana-security
177166
/x-pack/test/encrypted_saved_objects_api_integration/ @elastic/kibana-security
178167
/x-pack/test/functional/apps/security/ @elastic/kibana-security
@@ -220,13 +209,9 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
220209
/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/ @elastic/kibana-alerting-services
221210
/x-pack/test/functional_with_es_ssl/fixtures/plugins/alerts/ @elastic/kibana-alerting-services
222211

223-
# Design
224-
**/*.scss @elastic/kibana-design
225-
226212
# Enterprise Search
227213
/x-pack/plugins/enterprise_search/ @elastic/app-search-frontend @elastic/workplace-search-frontend
228214
/x-pack/test/functional_enterprise_search/ @elastic/app-search-frontend @elastic/workplace-search-frontend
229-
/x-pack/plugins/enterprise_search/**/*.scss @elastic/ent-search-design
230215

231216
# Elasticsearch UI
232217
/src/plugins/dev_tools/ @elastic/es-ui
@@ -255,7 +240,6 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
255240

256241
# Endpoint
257242
/x-pack/plugins/endpoint/ @elastic/endpoint-app-team @elastic/siem
258-
/x-pack/plugins/endpoint/**/*.scss @elastic/security-design
259243
/x-pack/test/api_integration/apis/endpoint/ @elastic/endpoint-app-team @elastic/siem
260244
/x-pack/test/endpoint_api_integration_no_ingest/ @elastic/endpoint-app-team @elastic/siem
261245
/x-pack/test/security_solution_endpoint/ @elastic/endpoint-app-team @elastic/siem
@@ -265,7 +249,6 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
265249

266250
# Security Solution
267251
/x-pack/plugins/security_solution/ @elastic/siem @elastic/endpoint-app-team
268-
/x-pack/plugins/security_solution/**/*.scss @elastic/security-design
269252
/x-pack/test/detection_engine_api_integration @elastic/siem @elastic/endpoint-app-team
270253
/x-pack/test/lists_api_integration @elastic/siem @elastic/endpoint-app-team
271254
/x-pack/test/api_integration/apis/security_solution @elastic/siem @elastic/endpoint-app-team
@@ -274,3 +257,29 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
274257

275258
# Security Intelligence And Analytics
276259
/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules @elastic/security-intelligence-analytics
260+
261+
# Design (at the bottom for specificity of SASS files)
262+
**/*.scss @elastic/kibana-design
263+
264+
# Core design
265+
/src/plugins/dashboard/**/*.scss @elastic/kibana-core-ui-designers
266+
/x-pack/plugins/canvas/**/*.scss @elastic/kibana-core-ui-designers
267+
/src/legacy/core_plugins/kibana/public/home/**/*.scss @elastic/kibana-core-ui-designers
268+
/x-pack/legacy/plugins/security/**/*.scss @elastic/kibana-core-ui-designers
269+
/x-pack/legacy/plugins/spaces/**/*.scss @elastic/kibana-core-ui-designers
270+
/x-pack/plugins/spaces/**/*.scss @elastic/kibana-core-ui-designers
271+
/x-pack/plugins/security/**/*.scss @elastic/kibana-core-ui-designers
272+
273+
# Observability design
274+
/x-pack/plugins/apm/**/*.scss @elastic/observability-design
275+
/x-pack/plugins/infra/**/*.scss @elastic/observability-design
276+
/x-pack/plugins/ingest_manager/**/*.scss @elastic/observability-design
277+
/x-pack/plugins/observability/**/*.scss @elastic/observability-design
278+
279+
# Ent. Search design
280+
/x-pack/plugins/enterprise_search/**/*.scss @elastic/ent-search-design
281+
282+
# Security design
283+
/x-pack/plugins/endpoint/**/*.scss @elastic/security-design
284+
/x-pack/plugins/security_solution/**/*.scss @elastic/security-design
285+

docs/canvas/canvas-function-reference.asciidoc

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A *** denotes a required argument.
1313

1414
A † denotes an argument can be passed multiple times.
1515

16-
<<a_fns>> | B | <<c_fns>> | <<d_fns>> | <<e_fns>> | <<f_fns>> | <<g_fns>> | <<h_fns>> | <<i_fns>> | <<j_fns>> | K | <<l_fns>> | <<m_fns>> | <<n_fns>> | O | <<p_fns>> | Q | <<r_fns>> | <<s_fns>> | <<t_fns>> | <<u_fns>> | V | W | X | Y | Z
16+
<<a_fns>> | B | <<c_fns>> | <<d_fns>> | <<e_fns>> | <<f_fns>> | <<g_fns>> | <<h_fns>> | <<i_fns>> | <<j_fns>> | K | <<l_fns>> | <<m_fns>> | <<n_fns>> | O | <<p_fns>> | Q | <<r_fns>> | <<s_fns>> | <<t_fns>> | <<u_fns>> | <<v_fns>> | W | X | Y | Z
1717

1818
[float]
1919
[[a_fns]]
@@ -897,7 +897,7 @@ Default: `"-_index:.kibana"`
897897
|`string`
898898
|An index or index pattern. For example, `"logstash-*"`.
899899

900-
Default: `_all`
900+
Default: `"_all"`
901901
|===
902902

903903
*Returns:* `number`
@@ -965,7 +965,7 @@ Default: `1000`
965965
|`string`
966966
|An index or index pattern. For example, `"logstash-*"`.
967967

968-
Default: `_all`
968+
Default: `"_all"`
969969

970970
|`metaFields`
971971
|`string`
@@ -1026,7 +1026,7 @@ Alias: `tz`
10261026
|`string`
10271027
|The timezone to use for date operations. Valid ISO8601 formats and UTC offsets both work.
10281028

1029-
Default: `UTC`
1029+
Default: `"UTC"`
10301030
|===
10311031

10321032
*Returns:* `datatable`
@@ -1238,7 +1238,7 @@ filters
12381238
|`string`
12391239
|The horizontal text alignment.
12401240

1241-
Default: `left`
1241+
Default: `"left"`
12421242

12431243
|`color`
12441244
|`string`
@@ -1280,7 +1280,7 @@ Default: `false`
12801280
|`string`
12811281
|The font weight. For example, `"normal"`, `"bold"`, `"bolder"`, `"lighter"`, `"100"`, `"200"`, `"300"`, `"400"`, `"500"`, `"600"`, `"700"`, `"800"`, or `"900"`.
12821282

1283-
Default: `normal`
1283+
Default: `"normal"`
12841284
|===
12851285

12861286
*Returns:* `style`
@@ -2469,7 +2469,7 @@ Alias: `shape`
24692469
|`string`
24702470
|Pick a shape.
24712471

2472-
Default: `square`
2472+
Default: `"square"`
24732473

24742474
|`border`
24752475

@@ -2732,7 +2732,7 @@ Aliases: `c`, `field`
27322732
|`string`
27332733
|The column or field that you want to filter.
27342734

2735-
Default: `@timestamp`
2735+
Default: `"@timestamp"`
27362736

27372737
|`compact`
27382738
|`boolean`
@@ -2871,3 +2871,56 @@ Default: `""`
28712871
|===
28722872

28732873
*Returns:* `string`
2874+
2875+
[float]
2876+
[[v_fns]]
2877+
== V
2878+
2879+
[float]
2880+
[[var_fn]]
2881+
=== `var`
2882+
2883+
Updates the Kibana global context.
2884+
2885+
*Accepts:* `any`
2886+
2887+
[cols="3*^<"]
2888+
|===
2889+
|Argument |Type |Description
2890+
2891+
|_Unnamed_ ***
2892+
2893+
Alias: `name`
2894+
|`string`
2895+
|Specify the name of the variable.
2896+
|===
2897+
2898+
*Returns:* Depends on your input and arguments
2899+
2900+
2901+
[float]
2902+
[[var_set_fn]]
2903+
=== `var_set`
2904+
2905+
Updates the Kibana global context.
2906+
2907+
*Accepts:* `any`
2908+
2909+
[cols="3*^<"]
2910+
|===
2911+
|Argument |Type |Description
2912+
2913+
|_Unnamed_ ***
2914+
2915+
Alias: `name`
2916+
|`string`
2917+
|Specify the name of the variable.
2918+
2919+
|`value`
2920+
2921+
Alias: `val`
2922+
|`any`
2923+
|Specify the value for the variable. When unspecified, the input context is used.
2924+
|===
2925+
2926+
*Returns:* Depends on your input and arguments

docs/developer/architecture/security/rbac.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[[development-security-rbac]]
1+
[[development-rbac]]
22
== Role-based access control
33

44
Role-based access control (RBAC) in {kib} relies upon the
@@ -7,7 +7,7 @@ that {es} exposes. This allows {kib} to define the privileges that
77
{kib} wishes to grant to users, assign them to the relevant users using roles,
88
and then authorize the user to perform a specific action. This is handled within
99
a secured instance of the `SavedObjectsClient` and available transparently to
10-
consumers when using `request.getSavedObjectsClient()` or
10+
consumers when using `request.getSavedObjectsClient()` or
1111
`savedObjects.getScopedSavedObjectsClient()`.
1212

1313
[[development-rbac-privileges]]
@@ -77,7 +77,7 @@ The application is created by concatenating the prefix of `kibana-` with the val
7777
}
7878
----------------------------------
7979

80-
Roles that grant <<kibana-privileges>> should be managed using the <<role-management-api>> or the *Management -> Security -> Roles* page, not directly using the {es} {ref}/security-api.html#security-role-apis[role management API]. This role can then be assigned to users using the {es}
80+
Roles that grant <<kibana-privileges>> should be managed using the <<role-management-api>> or the *Management -> Security -> Roles* page, not directly using the {es} {ref}/security-api.html#security-role-apis[role management API]. This role can then be assigned to users using the {es}
8181
{ref}/security-api.html#security-user-apis[user management APIs].
8282

8383
[[development-rbac-authorization]]

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, uiSettingsValues, }: IndexPatternDeps);
12+
constructor(id: string | undefined, { savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, shortDotsEnable, metaFields, }: 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, uiSettingsValues, } | <code>IndexPatternDeps</code> | |
20+
| { savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, shortDotsEnable, metaFields, } | <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, uiSettingsValues, })](./kibana-plugin-plugins-data-public.indexpattern._constructor_.md) | | Constructs a new instance of the <code>IndexPattern</code> class |
17+
| [(constructor)(id, { savedObjectsClient, apiClient, patternCache, fieldFormats, onNotification, onError, shortDotsEnable, metaFields, })](./kibana-plugin-plugins-data-public.indexpattern._constructor_.md) | | Constructs a new instance of the <code>IndexPattern</code> class |
1818
1919
## Properties
2020

docs/development/plugins/data/server/kibana-plugin-plugins-data-server.plugin.setup.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
```typescript
1010
setup(core: CoreSetup<DataPluginStartDependencies, DataPluginStart>, { expressions, usageCollection }: DataPluginSetupDependencies): {
11+
__enhance: (enhancements: DataEnhancements) => void;
1112
search: ISearchSetup;
1213
fieldFormats: {
1314
register: (customFieldFormat: import("../public").FieldFormatInstanceType) => number;
@@ -25,6 +26,7 @@ setup(core: CoreSetup<DataPluginStartDependencies, DataPluginStart>, { expressio
2526
<b>Returns:</b>
2627

2728
`{
29+
__enhance: (enhancements: DataEnhancements) => void;
2830
search: ISearchSetup;
2931
fieldFormats: {
3032
register: (customFieldFormat: import("../public").FieldFormatInstanceType) => number;

docs/redirects.asciidoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,8 @@ Watcher error reports have been removed and replaced with Kibana's <<apm-alerts,
9090
To create error alerts with new tool, select **Alerts** - **Create threshold alert** - **Error rate**.
9191

9292
More information on this new feature is available in <<apm-alerts>>.
93+
94+
[role="exclude",id="development-security-rbac"]
95+
== Role-based access control
96+
97+
This content has moved to the <<development-rbac, Security>> page.

examples/embeddable_examples/public/book/edit_book_action.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export const createEditBookAction = (getStartServices: () => Promise<StartServic
6565
const onSave = async (attributes: BookSavedObjectAttributes, useRefType: boolean) => {
6666
const newInput = await attributeService.wrapAttributes(attributes, useRefType, embeddable);
6767
if (!useRefType && (embeddable.getInput() as SavedObjectEmbeddableInput).savedObjectId) {
68-
// Remove the savedObejctId when un-linking
69-
newInput.savedObjectId = null;
68+
// Set the saved object ID to null so that update input will remove the existing savedObjectId...
69+
(newInput as BookByValueInput & { savedObjectId: unknown }).savedObjectId = null;
7070
}
7171
embeddable.updateInput(newInput);
7272
if (useRefType) {

0 commit comments

Comments
 (0)