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 where curly braces are always added to IntervalMacro. #666

Conversation

oscarkilhed
Copy link
Contributor

@oscarkilhed oscarkilhed commented Apr 2, 2024

In the old architecture $__interval was passed to the backend as $__interval. With scenes this changed so that we're always adding curly braces e.g. ${__interval}. The Influx db datasource does not handle this well. So for backwards compatibility we should probably keep the variable as is, without the braces.

πŸ“¦ Published PR as canary version: 4.1.1--canary.666.8521778570.0

✨ Test out this PR locally via:

npm install @grafana/scenes@4.1.1--canary.666.8521778570.0
# or 
yarn add @grafana/scenes@4.1.1--canary.666.8521778570.0

@oscarkilhed oscarkilhed added the area/variables Issues related to variables system in scenes label Apr 2, 2024
@oscarkilhed oscarkilhed requested review from torkelo and dprokop and removed request for torkelo April 2, 2024 11:05
@dprokop dprokop added patch Increment the patch version when merged release Create a release when this pr is merged labels Apr 2, 2024
Copy link
Member

@dprokop dprokop left a comment

Choose a reason for hiding this comment

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

Nice! added release labels so that we can update core - remember to backport the bump.

Other than that, there are some tests failing

UPDATE: ah, you were quicker fixing tests :)

@oscarkilhed oscarkilhed merged commit 97eeba7 into main Apr 2, 2024
3 checks passed
@oscarkilhed oscarkilhed deleted the oscark/fix-issue-where-curly-braces-were-added-to-interval-macro branch April 2, 2024 11:31
@grafanabot
Copy link
Contributor

πŸš€ PR was released in v4.1.2 πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/variables Issues related to variables system in scenes 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.

None yet

4 participants