-
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
Use embeddable v2 - fix regression of #39126 #41221
Conversation
Pinging @elastic/kibana-app-arch |
retest |
src/legacy/core_plugins/kibana/public/visualize/embeddable/visualize_embeddable_factory.tsx
Show resolved
Hide resolved
retest |
💔 Build Failed |
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.
Code review only, LGTM on green ci. Thanks for fixing!
💚 Build Succeeded |
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.
I like this approach to dealing with the async registry issue because:
- We don't have to wait on the injector before loading up our shimmed plugins
- It doesn't require any hackery within the plugins themselves
- We know the registry implementation will be changing in the near term anyway.
Let's just get a final review from @streamich before merging, otherwise this LGTM!
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.
LGTM
💚 Build Succeeded |
* Use embeddable v2 - fix regression of elastic#39126 * fix PR comment
Summary
Fix regression of #39126
Constructors cannot be async, but static methods can. It’s pretty easy to have a static creation method, making the type its own factory
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers