[Embeddable] Register ML embeddables synchronously#225110
[Embeddable] Register ML embeddables synchronously#225110cqliu1 merged 4 commits intoelastic:8.18from
Conversation
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
nreese
left a comment
There was a problem hiding this comment.
Looks like registerEmbeddables is getting called twice. You will need to remove the second call on line 299
…ps://github.com/cqliu1/kibana into embeddable/register-ml-embeddable-synchronously
Good catch! Fixed in 76e76c4 |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
|
|
So this wasn't backported? And won't be available in 8.19, 9.0, or 9.1? Is it not needed in those branches? We have someone expecting the fix, who upgraded from an older 8.18 to 9.1.2, and are still having this problem ... |
This PR merged the fix into 8.18. This fix was merged into 8.19 and 9.1 in a much larger PR that could not be backported to 8.18. If you look at x-pack/platform/plugins/shared/ml/public/plugin.ts in 8.19 and 9.1, those branches have this fix applied. 8.19 branch has fixes https://github.com/elastic/kibana/blob/8.19/x-pack/platform/plugins/shared/ml/public/plugin.ts#L276 Looks like 9.0 is the only branch missing the fix. Maybe this is a new issue and we should open a different issue? |
Summary
Cherry-picked c528ca0 from #215947.
This registers the ML embeddable synchronously to avoid a racing condition where the dashboard could try to render an ML embeddable before the embeddable is available.
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesIdentify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.