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

Make topology dropdown injection configurable #116

Merged
merged 4 commits into from
Sep 9, 2022
Merged

Conversation

rbarry82
Copy link
Contributor

Issue

Instead of inserting topology dropdowns on every dashboard in every circumstance, add arguments to GrafanaDashboardProvider to make this injection configurable. This is added as an additional per-dashboard key in the relation data, and used to determine whether or not to inject them.

Closes #95

Solution

Read the key in GrafanaDashboardProvider, and default to True to maintain compatibility with providers which may not set this (by default, it is opt-in).

As part of this, since the datasource dropdown is still desirable, break TEMPLATE_DROPDOWNS into two separate objects and combine if appropriate given the option.

Add unit tests.

Release Notes

Allow opt-out of topology dropdown injection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow opt-out of automatic injection of topology filters
3 participants