Skip to content
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

remove last usages of plugin async lifecycles #112111

Merged
merged 5 commits into from
Sep 21, 2021

Conversation

pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Sep 14, 2021

Summary

Related to #53268

Remove the last usages of asynchronous lifecycle methods for plugins in the codebase.

@@ -78,8 +76,9 @@ export class CorsTestPlugin implements Plugin {
return h.response(renderBody(kibanaUrl));
},
});
await server.start();
server.start();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're no longer waiting for the underlying server to start, but from some local testing, it doesn't seem to introduce flakiness to the associated test suite.

Comment on lines +16 to +21
core.application.applications$
.pipe(first())
.toPromise()
.then((applications) => {
window.__applicationIds__ = [...applications.keys()];
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, in practice, this resolves before any test is effectively running

@pgayvallet pgayvallet added chore release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.16.0 v8.0.0 labels Sep 14, 2021
@pgayvallet pgayvallet marked this pull request as ready for review September 15, 2021 10:55
@pgayvallet pgayvallet requested review from a team as code owners September 15, 2021 10:55
@pgayvallet pgayvallet requested a review from a team September 15, 2021 10:55
@pgayvallet pgayvallet requested a review from a team as a code owner September 15, 2021 10:55
@pgayvallet pgayvallet requested a review from a team September 15, 2021 10:55
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@pgayvallet pgayvallet requested a review from a team September 15, 2021 10:55
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@pgayvallet pgayvallet added the auto-backport Deprecated - use backport:version if exact versions are needed label Sep 21, 2021
@pgayvallet pgayvallet merged commit bb4f136 into elastic:master Sep 21, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 21, 2021
* remove last usages of plugin async lifecycles

* fix contract type

* fix types. again.

* remove unused import
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Sep 21, 2021
* remove last usages of plugin async lifecycles

* fix contract type

* fix types. again.

* remove unused import

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed chore release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants