-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
InfluxDB: Regression interpolating variables in code editor - single variables being escaped in 10.2.3, but not in 10.2.2 #80242
Comments
@gtk-grafana please add one or more appropriate labels. Here are some tips:
Thank you! ❤️ |
This is a duplicate of #79692. |
Reopening: I think there's actually 3 problems here: I've identified that the backend migration is the cause for breaking any influx query using a single value template variable that is unescaped: using = or !=. Only impacts template variables containing special chars that will be escaped
But regex works as expected This doesn't appear to be the issue reported in #79692 because that issue reported showing "No Data" but this incorrect escape of the variable on backend mode returns an error in the panel instead. So new categorization: @pprkut This fits the use case you provided exactly, except that I cannot reproduce this being fixed by reverting to 10.2.2, I can only "fix" this by disabling the feature flag. I tested on main/10.2.2/10.2.3 and saw the same behavior. Working when feature flag disabled, but broken when enabled. Can you confirm if you saw "No Data" or an error in the panel? |
My queries weren't made using the visual code editor, but written by hand. Maybe that's the difference? Or maybe specific to the table panel? I didn't see it happening with other panel types. |
The flag is enabled by default in 10.2.3, so reverting to 10.2.2 without any other config change will change the value of the feature flag, so that makes it more difficult to see if the issue is resolved by the version or the feature flag. |
Ah, so I should test 10.2.2 with |
Yup! It should go in the in the [feature_toggles] section. |
@gtk-grafana Sorry, took a bit but you were right. It's |
@todo
I have a query
which gets sent as JSON like
The hostname here isn't (un)escaped properly.
influxdbBackendMigration = false
didn't help, but downgrading to 10.2.2 didNot sure it's the same as or related to #77465, since that one mentions an issue when upgrading from 10.1.x, while it's working for me with 10.2.2
Originally posted by @pprkut in #80003 (comment)
The text was updated successfully, but these errors were encountered: