Skip to content

Commit 14e9d7c

Browse files
Merge branch 'master' into fix/security-solution/babel-warnings
2 parents 3e69858 + 9605e29 commit 14e9d7c

File tree

1,566 files changed

+65936
-27232
lines changed

Some content is hidden

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

1,566 files changed

+65936
-27232
lines changed

.ci/Jenkinsfile_coverage

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def handleIngestion(timestamp) {
3434
kibanaCoverage.collectVcsInfo("### Collect VCS Info")
3535
kibanaCoverage.generateReports("### Merge coverage reports")
3636
kibanaCoverage.uploadCombinedReports()
37-
kibanaCoverage.ingest(env.JOB_NAME, BUILD_NUMBER, BUILD_URL, timestamp, previousSha, teamAssignmentsPath(), '### Generate Team Assignments && Ingest')
3837
kibanaCoverage.uploadCoverageStaticSite(timestamp)
38+
kibanaCoverage.ingest(env.JOB_NAME, BUILD_NUMBER, BUILD_URL, timestamp, previousSha, teamAssignmentsPath(), '### Generate Team Assignments && Ingest')
3939
}
4040

4141
def handlePreviousSha() {

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ module.exports = {
388388
*/
389389
{
390390
files: [
391+
'**/*.stories.tsx',
391392
'x-pack/test/apm_api_integration/**/*.ts',
392393
'x-pack/test/functional/apps/**/*.js',
393394
'x-pack/plugins/apm/**/*.js',

.github/CODEOWNERS

-10
Original file line numberDiff line numberDiff line change
@@ -329,16 +329,6 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
329329
# Shared
330330
/x-pack/plugins/enterprise_search/ @elastic/enterprise-search-frontend
331331
/x-pack/test/functional_enterprise_search/ @elastic/enterprise-search-frontend
332-
# App Search
333-
/x-pack/plugins/enterprise_search/public/applications/app_search @elastic/app-search-frontend
334-
/x-pack/plugins/enterprise_search/server/routes/app_search @elastic/app-search-frontend
335-
/x-pack/plugins/enterprise_search/server/collectors/app_search @elastic/app-search-frontend
336-
/x-pack/plugins/enterprise_search/server/saved_objects/app_search @elastic/app-search-frontend
337-
# Workplace Search
338-
/x-pack/plugins/enterprise_search/public/applications/workplace_search @elastic/workplace-search-frontend
339-
/x-pack/plugins/enterprise_search/server/routes/workplace_search @elastic/workplace-search-frontend
340-
/x-pack/plugins/enterprise_search/server/collectors/workplace_search @elastic/workplace-search-frontend
341-
/x-pack/plugins/enterprise_search/server/saved_objects/workplace_search @elastic/workplace-search-frontend
342332

343333
# Elasticsearch UI
344334
/src/plugins/dev_tools/ @elastic/es-ui

config/kibana.yml

-8
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
# The URLs of the Elasticsearch instances to use for all your queries.
2828
#elasticsearch.hosts: ["http://localhost:9200"]
2929

30-
# When this setting's value is true Kibana uses the hostname specified in the server.host
31-
# setting. When the value of this setting is false, Kibana uses the hostname of the host
32-
# that connects to this Kibana instance.
33-
#elasticsearch.preserveHost: true
34-
3530
# Kibana uses an index in Elasticsearch to store saved searches, visualizations and
3631
# dashboards. Kibana creates a new index if the index doesn't already exist.
3732
#kibana.index: ".kibana"
@@ -81,9 +76,6 @@
8176
# Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.
8277
#elasticsearch.shardTimeout: 30000
8378

84-
# Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying.
85-
#elasticsearch.startupTimeout: 5000
86-
8779
# Logs queries sent to Elasticsearch. Requires logging.verbose set to true.
8880
#elasticsearch.logQueries: false
8981

docs/developer/plugin-list.asciidoc

+24-3
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,20 @@ This API doesn't support angular, for registering angular dev tools, bootstrap a
7070
|This plugin contains reusable code in the form of self-contained modules (or libraries). Each of these modules exports a set of functionality relevant to the domain of the module.
7171
7272
73-
|{kib-repo}blob/{branch}/src/plugins/expressions/README.md[expressions]
74-
|This plugin provides methods which will parse & execute an expression pipeline
73+
|<<kibana-expressions-plugin>>
74+
|Expression pipeline is a chain of functions that *pipe* its output to the
75+
input of the next function. Functions can be configured using arguments provided
76+
by the user. The final output of the expression pipeline can be rendered using
77+
one of the *renderers* registered in `expressions` plugin.
78+
79+
All the arguments to expression functions need to be serializable, as well as input and output.
80+
Expression functions should try to stay 'pure'. This makes functions easy to reuse and also
81+
make it possible to serialize the whole chain as well as output at every step of execution.
82+
83+
Expressions power visualizations in Dashboard and Lens, as well as, every
84+
*element* in Canvas is backed by an expression.
85+
86+
This plugin provides methods which will parse & execute an *expression pipeline*
7587
string for you, as well as a series of registries for advanced users who might
7688
want to incorporate their own functions, types, and renderers into the service
7789
for use in their own application.
@@ -168,9 +180,16 @@ It also provides a stateful version of it on the start contract.
168180
which also contains the timelion APIs and backend, look at the vis_type_timelion plugin.
169181
170182
171-
|{kib-repo}blob/{branch}/src/plugins/ui_actions/README.md[uiActions]
183+
|<<uiactions-plugin>>
172184
|An API for:
173185
186+
- creating custom functionality (`actions`)
187+
- creating custom user interaction events (`triggers`)
188+
- attaching and detaching `actions` to `triggers`.
189+
- emitting `trigger` events
190+
- executing `actions` attached to a given `trigger`.
191+
- exposing a context menu for the user to choose the appropriate action when there are multiple actions attached to a single trigger.
192+
174193
175194
|{kib-repo}blob/{branch}/src/plugins/url_forwarding/README.md[urlForwarding]
176195
|This plugins contains helpers to redirect legacy URLs. It can be used to forward old URLs to their new counterparts.
@@ -511,5 +530,7 @@ in their infrastructure.
511530
|===
512531
513532
include::{kibana-root}/src/plugins/dashboard/README.asciidoc[leveloffset=+1]
533+
include::{kibana-root}/src/plugins/expressions/README.asciidoc[leveloffset=+1]
534+
include::{kibana-root}/src/plugins/ui_actions/README.asciidoc[leveloffset=+1]
514535
include::{kibana-root}/x-pack/plugins/dashboard_enhanced/README.asciidoc[leveloffset=+1]
515536
include::{kibana-root}/x-pack/plugins/embeddable_enhanced/README.asciidoc[leveloffset=+1]

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

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

1111
```typescript
12-
constructor({ spec, savedObjectsClient, fieldFormats, shortDotsEnable, metaFields, }: IndexPatternDeps);
12+
constructor({ spec, fieldFormats, shortDotsEnable, metaFields, }: IndexPatternDeps);
1313
```
1414

1515
## Parameters
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19-
| { spec, savedObjectsClient, fieldFormats, shortDotsEnable, metaFields, } | <code>IndexPatternDeps</code> | |
19+
| { spec, fieldFormats, shortDotsEnable, metaFields, } | <code>IndexPatternDeps</code> | |
2020

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

+1-2
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)({ spec, savedObjectsClient, fieldFormats, shortDotsEnable, metaFields, })](./kibana-plugin-plugins-data-public.indexpattern._constructor_.md) | | Constructs a new instance of the <code>IndexPattern</code> class |
17+
| [(constructor)({ spec, fieldFormats, shortDotsEnable, metaFields, })](./kibana-plugin-plugins-data-public.indexpattern._constructor_.md) | | Constructs a new instance of the <code>IndexPattern</code> class |
1818
1919
## Properties
2020
@@ -53,7 +53,6 @@ export declare class IndexPattern implements IIndexPattern
5353
| [getTimeField()](./kibana-plugin-plugins-data-public.indexpattern.gettimefield.md) | | |
5454
| [isTimeBased()](./kibana-plugin-plugins-data-public.indexpattern.istimebased.md) | | |
5555
| [isTimeNanosBased()](./kibana-plugin-plugins-data-public.indexpattern.istimenanosbased.md) | | |
56-
| [popularizeField(fieldName, unit)](./kibana-plugin-plugins-data-public.indexpattern.popularizefield.md) | | |
5756
| [removeScriptedField(fieldName)](./kibana-plugin-plugins-data-public.indexpattern.removescriptedfield.md) | | Remove scripted field from field list |
5857
| [toSpec()](./kibana-plugin-plugins-data-public.indexpattern.tospec.md) | | |
5958

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

-23
This file was deleted.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ export declare class IndexPatternsService
4343
| [createAndSave(spec, override, skipFetchFields)](./kibana-plugin-plugins-data-public.indexpatternsservice.createandsave.md) | | Create a new index pattern and save it right away |
4444
| [createSavedObject(indexPattern, override)](./kibana-plugin-plugins-data-public.indexpatternsservice.createsavedobject.md) | | Save a new index pattern |
4545
| [delete(indexPatternId)](./kibana-plugin-plugins-data-public.indexpatternsservice.delete.md) | | Deletes an index pattern from .kibana index |
46-
| [updateSavedObject(indexPattern, saveAttempts)](./kibana-plugin-plugins-data-public.indexpatternsservice.updatesavedobject.md) | | Save existing index pattern. Will attempt to merge differences if there are conflicts |
46+
| [updateSavedObject(indexPattern, saveAttempts, ignoreErrors)](./kibana-plugin-plugins-data-public.indexpatternsservice.updatesavedobject.md) | | Save existing index pattern. Will attempt to merge differences if there are conflicts |
4747

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternsservice.updatesavedobject.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Save existing index pattern. Will attempt to merge differences if there are conf
99
<b>Signature:</b>
1010

1111
```typescript
12-
updateSavedObject(indexPattern: IndexPattern, saveAttempts?: number): Promise<void | Error>;
12+
updateSavedObject(indexPattern: IndexPattern, saveAttempts?: number, ignoreErrors?: boolean): Promise<void | Error>;
1313
```
1414

1515
## Parameters
@@ -18,6 +18,7 @@ updateSavedObject(indexPattern: IndexPattern, saveAttempts?: number): Promise<vo
1818
| --- | --- | --- |
1919
| indexPattern | <code>IndexPattern</code> | |
2020
| saveAttempts | <code>number</code> | |
21+
| ignoreErrors | <code>boolean</code> | |
2122

2223
<b>Returns:</b>
2324

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

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

1111
```typescript
12-
constructor({ spec, savedObjectsClient, fieldFormats, shortDotsEnable, metaFields, }: IndexPatternDeps);
12+
constructor({ spec, fieldFormats, shortDotsEnable, metaFields, }: IndexPatternDeps);
1313
```
1414

1515
## Parameters
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19-
| { spec, savedObjectsClient, fieldFormats, shortDotsEnable, metaFields, } | <code>IndexPatternDeps</code> | |
19+
| { spec, fieldFormats, shortDotsEnable, metaFields, } | <code>IndexPatternDeps</code> | |
2020

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

+1-2
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)({ spec, savedObjectsClient, fieldFormats, shortDotsEnable, metaFields, })](./kibana-plugin-plugins-data-server.indexpattern._constructor_.md) | | Constructs a new instance of the <code>IndexPattern</code> class |
17+
| [(constructor)({ spec, fieldFormats, shortDotsEnable, metaFields, })](./kibana-plugin-plugins-data-server.indexpattern._constructor_.md) | | Constructs a new instance of the <code>IndexPattern</code> class |
1818
1919
## Properties
2020
@@ -53,7 +53,6 @@ export declare class IndexPattern implements IIndexPattern
5353
| [getTimeField()](./kibana-plugin-plugins-data-server.indexpattern.gettimefield.md) | | |
5454
| [isTimeBased()](./kibana-plugin-plugins-data-server.indexpattern.istimebased.md) | | |
5555
| [isTimeNanosBased()](./kibana-plugin-plugins-data-server.indexpattern.istimenanosbased.md) | | |
56-
| [popularizeField(fieldName, unit)](./kibana-plugin-plugins-data-server.indexpattern.popularizefield.md) | | |
5756
| [removeScriptedField(fieldName)](./kibana-plugin-plugins-data-server.indexpattern.removescriptedfield.md) | | Remove scripted field from field list |
5857
| [toSpec()](./kibana-plugin-plugins-data-server.indexpattern.tospec.md) | | |
5958

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

-23
This file was deleted.

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

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ export interface ISearchStart<SearchStrategyRequest extends IKibanaSearchRequest
1717
| [aggs](./kibana-plugin-plugins-data-server.isearchstart.aggs.md) | <code>AggsStart</code> | |
1818
| [getSearchStrategy](./kibana-plugin-plugins-data-server.isearchstart.getsearchstrategy.md) | <code>(name: string) =&gt; ISearchStrategy&lt;SearchStrategyRequest, SearchStrategyResponse&gt;</code> | Get other registered search strategies. For example, if a new strategy needs to use the already-registered ES search strategy, it can use this function to accomplish that. |
1919
| [search](./kibana-plugin-plugins-data-server.isearchstart.search.md) | <code>(context: RequestHandlerContext, request: SearchStrategyRequest, options: ISearchOptions) =&gt; Promise&lt;SearchStrategyResponse&gt;</code> | |
20+
| [searchSource](./kibana-plugin-plugins-data-server.isearchstart.searchsource.md) | <code>{</code><br/><code> asScoped: (request: KibanaRequest) =&gt; Promise&lt;ISearchStartSearchSource&gt;;</code><br/><code> }</code> | |
2021

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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; [ISearchStart](./kibana-plugin-plugins-data-server.isearchstart.md) &gt; [searchSource](./kibana-plugin-plugins-data-server.isearchstart.searchsource.md)
4+
5+
## ISearchStart.searchSource property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
searchSource: {
11+
asScoped: (request: KibanaRequest) => Promise<ISearchStartSearchSource>;
12+
};
13+
```

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
```typescript
1010
start(core: CoreStart): {
11-
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
1211
fieldFormats: {
1312
fieldFormatServiceFactory: (uiSettings: import("../../../core/server").IUiSettingsClient) => Promise<import("../common").FieldFormatsRegistry>;
1413
};
1514
indexPatterns: {
1615
indexPatternsServiceFactory: (kibanaRequest: import("../../../core/server").KibanaRequest<unknown, unknown, unknown, any>) => Promise<import("../public").IndexPatternsService>;
1716
};
17+
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
1818
};
1919
```
2020

@@ -27,12 +27,12 @@ start(core: CoreStart): {
2727
<b>Returns:</b>
2828

2929
`{
30-
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
3130
fieldFormats: {
3231
fieldFormatServiceFactory: (uiSettings: import("../../../core/server").IUiSettingsClient) => Promise<import("../common").FieldFormatsRegistry>;
3332
};
3433
indexPatterns: {
3534
indexPatternsServiceFactory: (kibanaRequest: import("../../../core/server").KibanaRequest<unknown, unknown, unknown, any>) => Promise<import("../public").IndexPatternsService>;
3635
};
36+
search: ISearchStart<import("./search").IEsSearchRequest, import("./search").IEsSearchResponse<any>>;
3737
}`
3838

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md)
4+
5+
## API Reference
6+
7+
## Packages
8+
9+
| Package | Description |
10+
| --- | --- |
11+
| [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) | |
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) &gt; [AnyExpressionFunctionDefinition](./kibana-plugin-plugins-expressions-public.anyexpressionfunctiondefinition.md)
4+
5+
## AnyExpressionFunctionDefinition type
6+
7+
Type to capture every possible expression function definition.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare type AnyExpressionFunctionDefinition = ExpressionFunctionDefinition<string, any, Record<string, any>, any>;
13+
```
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-expressions-public](./kibana-plugin-plugins-expressions-public.md) &gt; [AnyExpressionTypeDefinition](./kibana-plugin-plugins-expressions-public.anyexpressiontypedefinition.md)
4+
5+
## AnyExpressionTypeDefinition type
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
export declare type AnyExpressionTypeDefinition = ExpressionTypeDefinition<any, any, any>;
11+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) &gt; [ArgumentType](./kibana-plugin-plugins-expressions-public.argumenttype.md)
4+
5+
## ArgumentType type
6+
7+
This type represents all of the possible combinations of properties of an Argument in an Expression Function. The presence or absence of certain fields influence the shape and presence of others within each `arg` in the specification.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare type ArgumentType<T> = SingleArgumentType<T> | MultipleArgumentType<T> | UnresolvedSingleArgumentType<T> | UnresolvedMultipleArgumentType<T>;
13+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) &gt; [buildExpression](./kibana-plugin-plugins-expressions-public.buildexpression.md)
4+
5+
## buildExpression() function
6+
7+
Makes it easy to progressively build, update, and traverse an expression AST. You can either start with an empty AST, or provide an expression string, AST, or array of expression function builders to use as initial state.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare function buildExpression(initialState?: ExpressionAstFunctionBuilder[] | ExpressionAstExpression | string): ExpressionAstExpressionBuilder;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| initialState | <code>ExpressionAstFunctionBuilder[] &#124; ExpressionAstExpression &#124; string</code> | |
20+
21+
<b>Returns:</b>
22+
23+
`ExpressionAstExpressionBuilder`
24+

0 commit comments

Comments
 (0)