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

Add support for client side variable interpolation #17

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

flobernd
Copy link
Contributor

Closes #13

Note:
Because variables can only be interpolated in the browser, be aware that any alerting queries that contain template variables can result in undefined behavior.

The default variables like $__from are interpolated by this frontend function as well, but as this won't work for background queries (like for the mentioned alerting functionality), I kept the backend interpolation code in addition.

@flobernd flobernd requested a review from philhofer June 19, 2023 08:21
@flobernd flobernd force-pushed the interpolate-variables branch from 336b4c2 to 1851dec Compare June 21, 2023 08:13
@flobernd flobernd merged commit 2a1a2d2 into main Jun 21, 2023
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.

Variable expansion doesn't work
2 participants