Skip to content
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

Closed

Conversation

stacey-gammon
Copy link
Contributor

@stacey-gammon stacey-gammon commented May 5, 2017

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:

  • Remove reliance on broadcast:vis
  • Push Saved object not found display error logic to the renderers
  • Improve the "interface" by cleaning up the functions being passed down (e.g. getVisBrushClickHandler, filterHandler, etc)
  • Dynamically build the Add table using the panelRenderers

@stacey-gammon stacey-gammon force-pushed the Refactor-render-logic branch 2 times, most recently from 2b01d1f to f0a5cd3 Compare May 8, 2017 15:34
@stacey-gammon stacey-gammon added Feature:Dashboard Dashboard related features :Sharing labels May 8, 2017
@stacey-gammon stacey-gammon force-pushed the Refactor-render-logic branch 2 times, most recently from a25cb06 to 8c01181 Compare May 10, 2017 16:32
@stacey-gammon
Copy link
Contributor Author

@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.

@stacey-gammon
Copy link
Contributor Author

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

@stacey-gammon
Copy link
Contributor Author

Blocked on discussions with the visualization team on the best way to move forward with combined efforts.

@stacey-gammon stacey-gammon force-pushed the Refactor-render-logic branch 2 times, most recently from 2c12baf to 5d0f365 Compare June 2, 2017 16:36
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).
@stacey-gammon
Copy link
Contributor Author

Closed in favor of #12146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Feature:Dashboard Dashboard related features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant