-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Execution context] Add nested context support (#107523)
* Add nested context support * remove execution context service on the client side ExecutionContextContaier is not compatible with SerializableState, so I had to fall back to passing context as POJO. With this change, using a service looks like overhead. * update docs * fix test * address comments from Josh * put export back * update docs * remove outdated export * use input.title for unsaved vis Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
7366df9
commit 5480c4d
Showing
94 changed files
with
887 additions
and
805 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
...development/core/public/kibana-plugin-core-public.corestart.executioncontext.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...nt/core/public/kibana-plugin-core-public.executioncontextservicestart.create.md
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
...velopment/core/public/kibana-plugin-core-public.executioncontextservicestart.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
<b>Signature:</b> | ||
|
||
```typescript | ||
context?: IExecutionContextContainer; | ||
context?: KibanaExecutionContext; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
...development/core/public/kibana-plugin-core-public.iexecutioncontextcontainer.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...nt/core/public/kibana-plugin-core-public.iexecutioncontextcontainer.toheader.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ment/core/public/kibana-plugin-core-public.iexecutioncontextcontainer.tojson.md
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...ent/core/public/kibana-plugin-core-public.kibanaexecutioncontext.description.md
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
.../development/core/public/kibana-plugin-core-public.kibanaexecutioncontext.id.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
...evelopment/core/public/kibana-plugin-core-public.kibanaexecutioncontext.name.md
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...evelopment/core/public/kibana-plugin-core-public.kibanaexecutioncontext.type.md
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...development/core/public/kibana-plugin-core-public.kibanaexecutioncontext.url.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
.../development/core/server/kibana-plugin-core-server.executioncontextsetup.get.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
.../development/core/server/kibana-plugin-core-server.executioncontextsetup.set.md
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...ment/core/server/kibana-plugin-core-server.executioncontextsetup.withcontext.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [ExecutionContextSetup](./kibana-plugin-core-server.executioncontextsetup.md) > [withContext](./kibana-plugin-core-server.executioncontextsetup.withcontext.md) | ||
|
||
## ExecutionContextSetup.withContext() method | ||
|
||
Keeps track of execution context while the passed function is executed. Data are carried over all async operations spawned by the passed function. The nested calls stack the registered context on top of each other. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
withContext<R>(context: KibanaExecutionContext | undefined, fn: (...args: any[]) => R): R; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| context | <code>KibanaExecutionContext | undefined</code> | | | ||
| fn | <code>(...args: any[]) => R</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`R` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
...ent/core/server/kibana-plugin-core-server.kibanaexecutioncontext.description.md
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
.../development/core/server/kibana-plugin-core-server.kibanaexecutioncontext.id.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.