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

Variables: Saved default all value with non multi select fix #959

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Nov 7, 2024

Fixes grafana/grafana#96027

The issue seems to be that both text & value are initialized to ALL_VARIABLE_VALUE, and in case the Select is not a multi value the correct label is not shown

Think this could fix it

📦 Published PR as canary version: 5.23.2--canary.959.11726132276.0

✨ Test out this PR locally via:

npm install @grafana/scenes-react@5.23.2--canary.959.11726132276.0
npm install @grafana/scenes@5.23.2--canary.959.11726132276.0
# or 
yarn add @grafana/scenes-react@5.23.2--canary.959.11726132276.0
yarn add @grafana/scenes@5.23.2--canary.959.11726132276.0

@torkelo torkelo added patch Increment the patch version when merged release Create a release when this pr is merged labels Nov 7, 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.

I tested locally. and it works as expected 🏅 , also the code looks good to me. I was checking why we could have that scenario of text being set to $__all in the old arch in dashboards and could not find anything. Maybe some provisioning mismatch

@torkelo torkelo merged commit 0c4956f into main Nov 8, 2024
5 checks passed
@torkelo torkelo deleted the fixes-all-value-issue branch November 8, 2024 09:42
@scenes-repo-bot-access-token
Copy link

🚀 PR was released in v5.23.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: Template Variables show $__all instead of All
2 participants