Skip to content

Commit eb76efe

Browse files
author
Aaron Caldwell
committed
Merge remote-tracking branch 'upstream/master' into np-update-layer-dependencies
2 parents 43efb9c + 965679a commit eb76efe

File tree

708 files changed

+12129
-8337
lines changed

Some content is hidden

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

708 files changed

+12129
-8337
lines changed

.github/CODEOWNERS

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,32 @@
2929
/src/plugins/dashboard/ @elastic/kibana-app
3030

3131
# App Architecture
32+
/examples/url_generators_examples/ @elastic/kibana-app-arch
33+
/examples/url_generators_explorer/ @elastic/kibana-app-arch
3234
/packages/kbn-interpreter/ @elastic/kibana-app-arch
33-
/src/legacy/core_plugins/data/ @elastic/kibana-app-arch
34-
/src/legacy/core_plugins/elasticsearch/lib/create_proxy.js @elastic/kibana-app-arch
3535
/src/legacy/core_plugins/embeddable_api/ @elastic/kibana-app-arch
3636
/src/legacy/core_plugins/interpreter/ @elastic/kibana-app-arch
3737
/src/legacy/core_plugins/kibana_react/ @elastic/kibana-app-arch
3838
/src/legacy/core_plugins/kibana/public/management/ @elastic/kibana-app-arch
39-
/src/legacy/core_plugins/kibana/server/field_formats/ @elastic/kibana-app-arch
4039
/src/legacy/core_plugins/kibana/server/routes/api/management/ @elastic/kibana-app-arch
41-
/src/legacy/core_plugins/kibana/server/routes/api/suggestions/ @elastic/kibana-app-arch
4240
/src/legacy/core_plugins/visualizations/ @elastic/kibana-app-arch
4341
/src/legacy/server/index_patterns/ @elastic/kibana-app-arch
42+
/src/plugins/advanced_settings/ @elastic/kibana-app-arch
4443
/src/plugins/bfetch/ @elastic/kibana-app-arch
4544
/src/plugins/data/ @elastic/kibana-app-arch
4645
/src/plugins/embeddable/ @elastic/kibana-app-arch
4746
/src/plugins/expressions/ @elastic/kibana-app-arch
4847
/src/plugins/inspector/ @elastic/kibana-app-arch
4948
/src/plugins/kibana_react/ @elastic/kibana-app-arch
49+
/src/plugins/kibana_react/public/code_editor @elastic/kibana-canvas
5050
/src/plugins/kibana_utils/ @elastic/kibana-app-arch
5151
/src/plugins/management/ @elastic/kibana-app-arch
5252
/src/plugins/navigation/ @elastic/kibana-app-arch
53+
/src/plugins/share/ @elastic/kibana-app-arch
5354
/src/plugins/ui_actions/ @elastic/kibana-app-arch
5455
/src/plugins/visualizations/ @elastic/kibana-app-arch
55-
/src/plugins/share/ @elastic/kibana-app-arch
56-
/examples/url_generators_examples/ @elastic/kibana-app-arch
57-
/examples/url_generators_explorer/ @elastic/kibana-app-arch
5856
/x-pack/plugins/advanced_ui_actions/ @elastic/kibana-app-arch
57+
/x-pack/plugins/data_enhanced/ @elastic/kibana-app-arch
5958
/x-pack/plugins/drilldowns/ @elastic/kibana-app-arch
6059

6160
# APM
@@ -75,9 +74,9 @@
7574
# Observability UIs
7675
/x-pack/legacy/plugins/infra/ @elastic/logs-metrics-ui
7776
/x-pack/plugins/infra/ @elastic/logs-metrics-ui
78-
/x-pack/plugins/ingest_manager/ @elastic/ingest
79-
/x-pack/legacy/plugins/ingest_manager/ @elastic/ingest
80-
/x-pack/plugins/observability/ @elastic/logs-metrics-ui @elastic/apm-ui @elastic/uptime @elastic/ingest
77+
/x-pack/plugins/ingest_manager/ @elastic/ingest-management
78+
/x-pack/legacy/plugins/ingest_manager/ @elastic/ingest-management
79+
/x-pack/plugins/observability/ @elastic/logs-metrics-ui @elastic/apm-ui @elastic/uptime @elastic/ingest-management
8180
/x-pack/legacy/plugins/monitoring/ @elastic/stack-monitoring-ui
8281

8382
# Machine Learning

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,25 @@ To run tests on Firefox locally, use `config.firefox.js`:
178178
node scripts/functional_test_runner --config test/functional/config.firefox.js
179179
-----------
180180

181+
[float]
182+
===== Using the test_user service
183+
184+
Tests should run at the positive security boundry condition, meaning that they should be run with the mimimum privileges required (and documented) and not as the superuser.
185+
This prevents the type of regression where additional privleges accidentally become required to perform the same action.
186+
187+
The functional UI tests now default to logging in with a user named `test_user` and the roles of this user can be changed dynamically without logging in and out.
188+
189+
In order to achieve this a new service was introduced called `createTestUserService` (see `test/common/services/security/test_user.ts`). The purpose of this test user service is to create roles defined in the test config files and setRoles() or restoreDefaults().
190+
191+
An example of how to set the role like how its defined below:
192+
193+
`await security.testUser.setRoles(['kibana_user', 'kibana_date_nanos']);`
194+
195+
Here we are setting the `test_user` to have the `kibana_user` role and also role access to a specific data index (`kibana_date_nanos`).
196+
197+
Tests should normally setRoles() in the before() and restoreDefaults() in the after().
198+
199+
181200
[float]
182201
===== Anatomy of a test file
183202

docs/development/core/public/kibana-plugin-core-public.chromestart.getiscollapsed_.md renamed to docs/development/core/public/kibana-plugin-core-public.chromestart.getisnavdrawerlocked_.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
22

3-
[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [ChromeStart](./kibana-plugin-core-public.chromestart.md) &gt; [getIsCollapsed$](./kibana-plugin-core-public.chromestart.getiscollapsed_.md)
3+
[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [ChromeStart](./kibana-plugin-core-public.chromestart.md) &gt; [getIsNavDrawerLocked$](./kibana-plugin-core-public.chromestart.getisnavdrawerlocked_.md)
44

5-
## ChromeStart.getIsCollapsed$() method
5+
## ChromeStart.getIsNavDrawerLocked$() method
66

7-
Get an observable of the current collapsed state of the chrome.
7+
Get an observable of the current locked state of the nav drawer.
88

99
<b>Signature:</b>
1010

1111
```typescript
12-
getIsCollapsed$(): Observable<boolean>;
12+
getIsNavDrawerLocked$(): Observable<boolean>;
1313
```
1414
<b>Returns:</b>
1515

docs/development/core/public/kibana-plugin-core-public.chromestart.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ core.chrome.setHelpExtension(elem => {
5656
| [getBrand$()](./kibana-plugin-core-public.chromestart.getbrand_.md) | Get an observable of the current brand information. |
5757
| [getBreadcrumbs$()](./kibana-plugin-core-public.chromestart.getbreadcrumbs_.md) | Get an observable of the current list of breadcrumbs |
5858
| [getHelpExtension$()](./kibana-plugin-core-public.chromestart.gethelpextension_.md) | Get an observable of the current custom help conttent |
59-
| [getIsCollapsed$()](./kibana-plugin-core-public.chromestart.getiscollapsed_.md) | Get an observable of the current collapsed state of the chrome. |
59+
| [getIsNavDrawerLocked$()](./kibana-plugin-core-public.chromestart.getisnavdrawerlocked_.md) | Get an observable of the current locked state of the nav drawer. |
6060
| [getIsVisible$()](./kibana-plugin-core-public.chromestart.getisvisible_.md) | Get an observable of the current visibility state of the chrome. |
6161
| [removeApplicationClass(className)](./kibana-plugin-core-public.chromestart.removeapplicationclass.md) | Remove a className added with <code>addApplicationClass()</code>. If className is unknown it is ignored. |
6262
| [setAppTitle(appTitle)](./kibana-plugin-core-public.chromestart.setapptitle.md) | Sets the current app's title |
@@ -65,6 +65,5 @@ core.chrome.setHelpExtension(elem => {
6565
| [setBreadcrumbs(newBreadcrumbs)](./kibana-plugin-core-public.chromestart.setbreadcrumbs.md) | Override the current set of breadcrumbs |
6666
| [setHelpExtension(helpExtension)](./kibana-plugin-core-public.chromestart.sethelpextension.md) | Override the current set of custom help content |
6767
| [setHelpSupportUrl(url)](./kibana-plugin-core-public.chromestart.sethelpsupporturl.md) | Override the default support URL shown in the help menu |
68-
| [setIsCollapsed(isCollapsed)](./kibana-plugin-core-public.chromestart.setiscollapsed.md) | Set the collapsed state of the chrome navigation. |
6968
| [setIsVisible(isVisible)](./kibana-plugin-core-public.chromestart.setisvisible.md) | Set the temporary visibility for the chrome. This does nothing if the chrome is hidden by default and should be used to hide the chrome for things like full-screen modes with an exit button. |
7069

docs/development/core/public/kibana-plugin-core-public.chromestart.setiscollapsed.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/development/core/server/kibana-plugin-core-server.routeconfig.validate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ validate: RouteValidatorFullConfig<P, Q, B> | false;
1414

1515
## Remarks
1616

17-
You \*must\* specify a validation schema to be able to read: - url path segments - request query - request body To opt out of validating the request, specify `validate: false`<!-- -->. In this case request params, query, and body will be \*\*empty\*\* objects and have no access to raw values. In some cases you may want to use another validation library. To do this, you need to instruct the `@kbn/config-schema` library to output \*\*non-validated values\*\* with setting schema as `schema.object({}, { allowUnknowns: true })`<!-- -->;
17+
You \*must\* specify a validation schema to be able to read: - url path segments - request query - request body To opt out of validating the request, specify `validate: false`<!-- -->. In this case request params, query, and body will be \*\*empty\*\* objects and have no access to raw values. In some cases you may want to use another validation library. To do this, you need to instruct the `@kbn/config-schema` library to output \*\*non-validated values\*\* with setting schema as `schema.object({}, { unknowns: 'allow' })`<!-- -->;
1818

1919
## Example
2020

@@ -49,7 +49,7 @@ router.get({
4949
path: 'path/{id}',
5050
validate: {
5151
// handler has access to raw non-validated params in runtime
52-
params: schema.object({}, { allowUnknowns: true })
52+
params: schema.object({}, { unknowns: 'allow' })
5353
},
5454
},
5555
(context, req, res,) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ esFilters: {
4444
getPhraseFilterField: (filter: import("../common").PhraseFilter) => string;
4545
getPhraseFilterValue: (filter: import("../common").PhraseFilter) => string | number | boolean;
4646
getDisplayValueFromFilter: typeof getDisplayValueFromFilter;
47-
compareFilters: (first: import("../common").Filter | import("../common").Filter[], second: import("../common").Filter | import("../common").Filter[], comparatorOptions?: import("./query/filter_manager/lib/compare_filters").FilterCompareOptions) => boolean;
48-
COMPARE_ALL_OPTIONS: import("./query/filter_manager/lib/compare_filters").FilterCompareOptions;
47+
compareFilters: (first: import("../common").Filter | import("../common").Filter[], second: import("../common").Filter | import("../common").Filter[], comparatorOptions?: import("../common").FilterCompareOptions) => boolean;
48+
COMPARE_ALL_OPTIONS: import("../common").FilterCompareOptions;
4949
generateFilters: typeof generateFilters;
5050
onlyDisabledFiltersChanged: (newFilters?: import("../common").Filter[] | undefined, oldFilters?: import("../common").Filter[] | undefined) => boolean;
5151
changeTimeFilter: typeof changeTimeFilter;

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

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) &gt; [ISearchCancel](./kibana-plugin-plugins-data-server.isearchcancel.md)
4+
5+
## ISearchCancel type
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
export declare type ISearchCancel<T extends TStrategyTypes> = (id: string) => Promise<void>;
11+
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
| Type Alias | Description |
6868
| --- | --- |
6969
| [FieldFormatsGetConfigFn](./kibana-plugin-plugins-data-server.fieldformatsgetconfigfn.md) | |
70-
| [ICancel](./kibana-plugin-plugins-data-server.icancel.md) | |
7170
| [IFieldFormatsRegistry](./kibana-plugin-plugins-data-server.ifieldformatsregistry.md) | |
7271
| [ISearch](./kibana-plugin-plugins-data-server.isearch.md) | |
72+
| [ISearchCancel](./kibana-plugin-plugins-data-server.isearchcancel.md) | |
7373
| [ParsedInterval](./kibana-plugin-plugins-data-server.parsedinterval.md) | |
7474
| [TSearchStrategyProvider](./kibana-plugin-plugins-data-server.tsearchstrategyprovider.md) | Search strategy provider creates an instance of a search strategy with the request handler context bound to it. This way every search strategy can use whatever information they require from the request context. |
7575

0 commit comments

Comments
 (0)