-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Migrate most plugins to synchronous lifecycle #89562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pgayvallet
merged 38 commits into
elastic:master
from
pgayvallet:kbn-53268-migrate-async-config-plugins
Feb 8, 2021
Merged
Changes from 28 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
37d965a
first pass
pgayvallet 8bd7c21
migrate more plugins
pgayvallet 235a656
migrate yet more plugins
pgayvallet 19f8ee0
more oss plugins
pgayvallet d2325e2
fix test file
pgayvallet 1f4beba
change Plugin signature on the client-side too
pgayvallet 7f0816a
fix test types
pgayvallet 36e4e4a
migrate OSS client-side plugins
pgayvallet f7efac0
migrate OSS client-side test plugins
pgayvallet 9162085
migrate xpack client-side plugins
pgayvallet 08659e5
revert fix attempt on fleet plugin
pgayvallet 86e78b0
Merge remote-tracking branch 'upstream/master' into kbn-53268-migrate…
pgayvallet d9d830b
fix presentation start signature
pgayvallet 147fe61
fix yet another signature
pgayvallet 55d0a68
add warnings for server-side async plugins in dev mode
pgayvallet 9d775f2
remove unused import
pgayvallet 63651af
fix isPromise
pgayvallet d64d04f
Add client-side deprecations
pgayvallet daf9db0
update migration examples
pgayvallet 1cbb228
update generated doc
pgayvallet fb4cb34
fix xpack unit tests
pgayvallet d3a24d0
nit
pgayvallet fdf73fe
(will be reverted) explicitly await for license to be ready in the au…
pgayvallet c13d07d
Revert "(will be reverted) explicitly await for license to be ready i…
pgayvallet c5f2fe5
restore await on on promise contracts
pgayvallet 59740e4
Revert "(will be reverted) explicitly await for license to be ready i…
pgayvallet 5635487
Revert "restore await on on promise contracts"
pgayvallet 320dd5f
add delay before starting tests in FTR
pgayvallet e60592f
Merge remote-tracking branch 'upstream/master' into kbn-53268-migrate…
pgayvallet 1dcfcd9
update deprecation ts doc
pgayvallet b6074c7
add explicit contract for monitoring setup
pgayvallet d686682
Merge remote-tracking branch 'upstream/master' into kbn-53268-migrate…
pgayvallet 3267081
migrate monitoring plugin to sync
pgayvallet 09850d8
Merge remote-tracking branch 'upstream/master' into kbn-53268-migrate…
pgayvallet 6a4044f
change plugin timeout to 10sec
pgayvallet 49127b3
Merge remote-tracking branch 'upstream/master' into kbn-53268-migrate…
pgayvallet da51a5a
Merge remote-tracking branch 'upstream/master' into kbn-53268-migrate…
pgayvallet 7a31a69
use delay instead of silence
pgayvallet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
27 changes: 27 additions & 0 deletions
27
docs/development/core/public/kibana-plugin-core-public.asyncplugin.md
This file contains hidden or 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,27 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [AsyncPlugin](./kibana-plugin-core-public.asyncplugin.md) | ||
|
|
||
| ## AsyncPlugin interface | ||
|
|
||
| > Warning: This API is now obsolete. | ||
| > | ||
| > Asynchronous lifecycles are deprecated, and should be migrated to sync | ||
| > | ||
|
|
||
| A plugin with asynchronous lifecycle methods. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| export interface AsyncPlugin<TSetup = void, TStart = void, TPluginsSetup extends object = object, TPluginsStart extends object = object> | ||
| ``` | ||
|
|
||
| ## Methods | ||
|
|
||
| | Method | Description | | ||
| | --- | --- | | ||
| | [setup(core, plugins)](./kibana-plugin-core-public.asyncplugin.setup.md) | | | ||
| | [start(core, plugins)](./kibana-plugin-core-public.asyncplugin.start.md) | | | ||
| | [stop()](./kibana-plugin-core-public.asyncplugin.stop.md) | | | ||
|
|
23 changes: 23 additions & 0 deletions
23
docs/development/core/public/kibana-plugin-core-public.asyncplugin.setup.md
This file contains hidden or 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,23 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [AsyncPlugin](./kibana-plugin-core-public.asyncplugin.md) > [setup](./kibana-plugin-core-public.asyncplugin.setup.md) | ||
|
|
||
| ## AsyncPlugin.setup() method | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| setup(core: CoreSetup<TPluginsStart, TStart>, plugins: TPluginsSetup): TSetup | Promise<TSetup>; | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --- | --- | --- | | ||
| | core | <code>CoreSetup<TPluginsStart, TStart></code> | | | ||
| | plugins | <code>TPluginsSetup</code> | | | ||
|
|
||
| <b>Returns:</b> | ||
|
|
||
| `TSetup | Promise<TSetup>` | ||
|
|
23 changes: 23 additions & 0 deletions
23
docs/development/core/public/kibana-plugin-core-public.asyncplugin.start.md
This file contains hidden or 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,23 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [AsyncPlugin](./kibana-plugin-core-public.asyncplugin.md) > [start](./kibana-plugin-core-public.asyncplugin.start.md) | ||
|
|
||
| ## AsyncPlugin.start() method | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| start(core: CoreStart, plugins: TPluginsStart): TStart | Promise<TStart>; | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --- | --- | --- | | ||
| | core | <code>CoreStart</code> | | | ||
| | plugins | <code>TPluginsStart</code> | | | ||
|
|
||
| <b>Returns:</b> | ||
|
|
||
| `TStart | Promise<TStart>` | ||
|
|
15 changes: 15 additions & 0 deletions
15
docs/development/core/public/kibana-plugin-core-public.asyncplugin.stop.md
This file contains hidden or 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,15 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [AsyncPlugin](./kibana-plugin-core-public.asyncplugin.md) > [stop](./kibana-plugin-core-public.asyncplugin.stop.md) | ||
|
|
||
| ## AsyncPlugin.stop() method | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| stop?(): void; | ||
| ``` | ||
| <b>Returns:</b> | ||
|
|
||
| `void` | ||
|
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
27 changes: 27 additions & 0 deletions
27
docs/development/core/server/kibana-plugin-core-server.asyncplugin.md
This file contains hidden or 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,27 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [AsyncPlugin](./kibana-plugin-core-server.asyncplugin.md) | ||
|
|
||
| ## AsyncPlugin interface | ||
|
|
||
| > Warning: This API is now obsolete. | ||
| > | ||
| > Asynchronous lifecycles are deprecated, and should be migrated to sync | ||
| > | ||
|
|
||
| A plugin with asynchronous lifecycle methods. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| export interface AsyncPlugin<TSetup = void, TStart = void, TPluginsSetup extends object = object, TPluginsStart extends object = object> | ||
| ``` | ||
|
|
||
| ## Methods | ||
|
|
||
| | Method | Description | | ||
| | --- | --- | | ||
| | [setup(core, plugins)](./kibana-plugin-core-server.asyncplugin.setup.md) | | | ||
| | [start(core, plugins)](./kibana-plugin-core-server.asyncplugin.start.md) | | | ||
| | [stop()](./kibana-plugin-core-server.asyncplugin.stop.md) | | | ||
|
|
23 changes: 23 additions & 0 deletions
23
docs/development/core/server/kibana-plugin-core-server.asyncplugin.setup.md
This file contains hidden or 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,23 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [AsyncPlugin](./kibana-plugin-core-server.asyncplugin.md) > [setup](./kibana-plugin-core-server.asyncplugin.setup.md) | ||
|
|
||
| ## AsyncPlugin.setup() method | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| setup(core: CoreSetup, plugins: TPluginsSetup): TSetup | Promise<TSetup>; | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --- | --- | --- | | ||
| | core | <code>CoreSetup</code> | | | ||
| | plugins | <code>TPluginsSetup</code> | | | ||
|
|
||
| <b>Returns:</b> | ||
|
|
||
| `TSetup | Promise<TSetup>` | ||
|
|
23 changes: 23 additions & 0 deletions
23
docs/development/core/server/kibana-plugin-core-server.asyncplugin.start.md
This file contains hidden or 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,23 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [AsyncPlugin](./kibana-plugin-core-server.asyncplugin.md) > [start](./kibana-plugin-core-server.asyncplugin.start.md) | ||
|
|
||
| ## AsyncPlugin.start() method | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| start(core: CoreStart, plugins: TPluginsStart): TStart | Promise<TStart>; | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --- | --- | --- | | ||
| | core | <code>CoreStart</code> | | | ||
| | plugins | <code>TPluginsStart</code> | | | ||
|
|
||
| <b>Returns:</b> | ||
|
|
||
| `TStart | Promise<TStart>` | ||
|
|
15 changes: 15 additions & 0 deletions
15
docs/development/core/server/kibana-plugin-core-server.asyncplugin.stop.md
This file contains hidden or 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,15 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [AsyncPlugin](./kibana-plugin-core-server.asyncplugin.md) > [stop](./kibana-plugin-core-server.asyncplugin.stop.md) | ||
|
|
||
| ## AsyncPlugin.stop() method | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| stop?(): void; | ||
| ``` | ||
| <b>Returns:</b> | ||
|
|
||
| `void` | ||
|
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.