-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
remove last usages of plugin async lifecycles #112111
Conversation
@@ -78,8 +76,9 @@ export class CorsTestPlugin implements Plugin { | |||
return h.response(renderBody(kibanaUrl)); | |||
}, | |||
}); | |||
await server.start(); | |||
server.start(); |
There was a problem hiding this comment.
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.
core.application.applications$ | ||
.pipe(first()) | ||
.toPromise() | ||
.then((applications) => { | ||
window.__applicationIds__ = [...applications.keys()]; | ||
}); |
There was a problem hiding this comment.
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
Pinging @elastic/kibana-core (Team:Core) |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
* remove last usages of plugin async lifecycles * fix contract type * fix types. again. * remove unused import
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
Related to #53268
Remove the last usages of asynchronous lifecycle methods for plugins in the codebase.