-
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
[UIActions] Embeddable and data plugin triggers/actions race condition #90929
Comments
Pinging @elastic/kibana-app-services (Team:AppServices) |
Added a blocker level because I assume this theoretically could appear pretty often depending on network conditions. |
TLDR I think modifying the trigger context typings and going with option (3) (move to data plugin) is probably the right move here, but here are a few more thoughts:
That would probably work, but doesn't resolve the issue of the implicit dependency we have here.
IIRC from #82791, I tried this and it created another circular dependency between
This could be an option, but TBH the source of a lot of issues I ran into relates to the way the actions/trigger contexts are typed. Many of these triggers have kibana/src/plugins/embeddable/public/lib/triggers/triggers.ts Lines 18 to 30 in 4ee9603
This makes it really hard to relocate them because you either need to declare a dependency on kibana/src/plugins/data/public/actions/value_click_action.ts Lines 18 to 32 in 4ee9603
This requires downstream folks relying on this piece of context to cast to |
Kibana version: master, 7.x
Steps to reproduce:
This is hard to catch race conditions. Appeared in builds.
This would happen when data plugin setup is called before embeddable plugin setup:
kibana/src/plugins/embeddable/public/bootstrap.ts
Line 27 in 4ee9603
kibana/src/plugins/data/public/plugin.ts
Lines 116 to 121 in 4ee9603
Data plugin and embeddable plugin do not have an explicit dependency on each other. So it could happen that the data plugin is loaded before the embeddable plugin and it is causing an error.
This is most likely a regression since #82791
possible solutions:
The text was updated successfully, but these errors were encountered: