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

Use the visualizeLoader for dashboards #15153

Closed
timroes opened this issue Nov 24, 2017 · 3 comments
Closed

Use the visualizeLoader for dashboards #15153

timroes opened this issue Nov 24, 2017 · 3 comments
Assignees
Labels
chore Feature:Dashboard Dashboard related features Feature:Vis Loader Visualize loader APIs Feature:Visualizations Generic visualization features (in case no more specific feature label is available)

Comments

@timroes
Copy link
Contributor

timroes commented Nov 24, 2017

I think we should use the visualize loader to load vizualizations on the dashboard (i.e. the VisualizeEmbeddableFactory).

Currently we expose the loader as kind of an API to load visualizations but don't use it ourselves anywhere. I think using it would make sure, we thoroughly test it, and it will also stay up-to-date with changes we do.

Also we would get a good feeling on what extensions we need to make to the API, that something like dashboards can properly work with it. Last but not least, we could get rid of another part of Angular in the Dashboard, since the visualize loader exposes pure JavaScript.

@timroes timroes added Feature:Dashboard Dashboard related features Feature:Visualizations Generic visualization features (in case no more specific feature label is available) chore labels Nov 24, 2017
@timroes timroes self-assigned this Nov 24, 2017
@timroes timroes added the Feature:Vis Loader Visualize loader APIs label Nov 29, 2017
@bhavyarm
Copy link
Contributor

bhavyarm commented Jan 2, 2018

@timroes do we need to have functional tests for this? Also if I add every visualization to a dashboard and reopen it - is that sufficient testing? Thanks!

@timroes
Copy link
Contributor Author

timroes commented Jan 8, 2018

@bhavyarm ideally this shouldn't change ANY functionality, since it's just an internal code refactoring. Meaning everything should still work the same as before, and all dashboarding tests should run the same. So this change shouldn't give you any new testing scenarios, if we are missing functional dashboard tests, it would be the same that have already been missing beforehand :-)

@bhavyarm
Copy link
Contributor

bhavyarm commented Jan 8, 2018

Great. Thanks @timroes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Dashboard Dashboard related features Feature:Vis Loader Visualize loader APIs Feature:Visualizations Generic visualization features (in case no more specific feature label is available)
Projects
None yet
Development

No branches or pull requests

2 participants