-
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
How to handle render complete in custom renderers #40496
Comments
Pinging @elastic/kibana-app-arch |
Apologies, but it looks like this important discussion is getting lost. Let's make sure we take it up. For now, I'm just going to cc @mattkime |
Pinging @elastic/kibana-stack-services |
I don't think this issue is related to Reporting. It looks more about how the core visualizations reach their render complete stage. The Reporting code is not going to change how it reads visualizations on the page, which is setting DOM event listeners on the visualization containers. |
we have few tasks in common that might relate to this.
|
Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment. |
We currently pass in a
done
handler into the expression renderer, if we call it via thevisLoader
. Thisdone()
handler must be called by the renderer, once it's done rendering, so the visLoader can set thedata-render-complete
attribute correctly for reporting.We need to align that behavior for all renderers no matter how they are called. Following up from a discussion with @ppisljar my current suggestion would be:
done
handler that it must call once done rendering, no matter if it's called via the Executor service or the visLoader, etc.done
function into the Executor service/vis loader, so it will be used instead one generated by the executor service/vis loader.Otherwise it will be used by the embeddable infrastructure when the embeddable done method is called (e.g. everything on a dashboard), or by the executor service, if no done handler is passed into the service from the outside (e.g. when running in Lens directly there is no embeddable wrapper, but the executor service is used directly).
cc @joelgriffith @tsullivan
The text was updated successfully, but these errors were encountered: