-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Modularize render complete #74504
Modularize render complete #74504
Conversation
This reverts commit 0049c01.
Is this ready to review? It's unclear what this is about based on the description and tags |
@elasticmachine merge upstream |
Hey @wylieconlon, sorry I was on holidays. I uploaded this PR last week to see if build succeeds, but now it is ready for review. I've liked the correct issue in description and will update the tags. |
Pinging @elastic/kibana-app-arch (Team:AppArch) |
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 LGTM
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
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 LGTM, CodeOwner review, tested locally in Chrome, Firefox, MacOs, data-render-complete
of Discover works 👍
* chore: 🤖 remove unused render-complete logic * feat: 🎸 add render-complete observables to IEmbeddable * Revert "chore: 🤖 remove unused render-complete logic" This reverts commit 0049c01. * refactor: 💡 rename render complete "helper" to "listener" * feat: 🎸 add render complete dispatcher to embeddable * refactor: 💡 move data-title setup to Embeddable * refactor: 💡 move embeddable data-title setting to render-compl Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> # Conflicts: # src/plugins/visualizations/public/embeddable/visualize_embeddable.ts
Closes #71848
VisualizeEmbeddable
intoEmbeddable
andRenderCompleteDispatcher
. This allows us to add render-complete logic to any embeddable. And because it is separated out intoRenderCompleteDispatcher
we can also reuse that logic outside of embeddables.P.S. Render-complete logic is needed for reporting and functional tests, so they know elements on the page have loaded and finished rendering.