-
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
Push panel rendering logic out of dashboard #11618
Conversation
2b01d1f
to
f0a5cd3
Compare
a25cb06
to
8c01181
Compare
@spalger no rush on this PR, just wanted to get your opinion since the goal is to move towards a pluggable dashboard panel system and want to see what you think of this initial approach. |
Actually, hold off on review. I'm going to sync with @thomasneirynck on the visualization plugin work they are doing. Perhaps the right move is to make saved searches a visualization plugin, and then we can focus on a single "panel"/"visualization" plugin system instead of two. As it is now, the difference between a panel plugin and a visualization plugin is very vague. cc @nreese |
Blocked on discussions with the visualization team on the best way to move forward with combined efforts. |
2c12baf
to
5d0f365
Compare
Let external plugins register panel renderer providers keep loadedPanel promise on the scope for tests Not great to keep this around only for tests, but it follows the previous logic. Fix tests that expect the panel-content div to be the old style Communicate panel title from renderer. Fix tests with extra request Theres an extra request in there because of the getTitle function. Our tests assumed one, this makes it handle any number of requests in them mget (assuming the mock response for each one is sufficient).
5d0f365
to
70f1827
Compare
Closed in favor of #12146 |
Paving the way for allowing plugins to register custom panel renderers by extracting rendering logic outside of Dashboard and creating a new registry.
Follow up steps to further improve the separation of logic:
broadcast:vis
Saved object not found
display error logic to the renderers