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

Fix issue were operators do not appear properly in adhoc vars #1054

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

mdvictor
Copy link
Collaborator

@mdvictor mdvictor commented Feb 13, 2025

Fixes an issue in dashboards where adhocs do not show the regex operators even though they should appear since the variable settings UI page shows Allow custom values true, by default. This only happens when the flag is set by default and not explicitly in the model.

To maintain backwards comp, I added the allowCustomValues flag and set it to true by default (as custom values worked by default before this flag), but not in the model, so that it wouldn't change the dashboard model.

If I were to have added the flag in the constructor with a default value when undefined this issue wouldn't have happened, but then all dashboards would have their models changed and a new line for allowing custom values would be serialized in adhoc vars in already saved dashboards.

Copy link
Contributor

@joannaWebDev joannaWebDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mdvictor mdvictor merged commit b1165e3 into main Feb 14, 2025
5 checks passed
@mdvictor mdvictor deleted the mdvictor/fix-adhoc-operator-custom-value-flag branch February 14, 2025 08:36
@scenes-repo-bot-access-token
Copy link

🚀 PR was released in v6.1.0 🚀

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

Successfully merging this pull request may close these issues.

2 participants