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

MultiValueVariable: Fixes support for legacy All url value #712

Merged
merged 3 commits into from
May 1, 2024

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented May 1, 2024

Fixes grafana/grafana#87167

A previous fix for this #656 only added a unit test for the scenario where includeAll and isMulti was false (so not truly multi value). when isMulti is true the URL value is an array and so the comparison that checked for the old legacy ALL URL value did not pass as the urlValue was an array with "All"

📦 Published PR as canary version: 4.13.2--canary.712.8910747975.0

✨ Test out this PR locally via:

npm install @grafana/scenes@4.13.2--canary.712.8910747975.0
# or 
yarn add @grafana/scenes@4.13.2--canary.712.8910747975.0

@torkelo torkelo added patch Increment the patch version when merged release Create a release when this pr is merged labels May 1, 2024
Copy link
Member

@axelavargas axelavargas left a comment

Choose a reason for hiding this comment

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

The code looks good to me and it works as expected 🥳

@torkelo torkelo merged commit 46745bb into main May 1, 2024
3 checks passed
@torkelo torkelo deleted the fix-legacy-all-url-value-and-multi branch May 1, 2024 15:03
@grafanabot
Copy link
Contributor

🚀 PR was released in v4.13.2 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboards w/ Scenes enabled; var-namespace=All in the URL doesn't get replaced with .+ in the PromQL query
4 participants