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

Revert "Replace deprecated setVariableQueryEditor with CustomVariableSupport" #229

Merged
merged 2 commits into from Oct 10, 2023

Conversation

idastambuk
Copy link
Contributor

Reverts #184
This fixes #227

The reason for this revert is that we need to use metricFindQuery for query variable support, otherwise the variable object resolves to {text: "Demo Wind Farm Asset", value "Demo Wind Farm Asset"}, which is not what we want, since when they are selected in dashboards, their IDs are sent in different types of queries and not their names.

The only time we would need the names is when the variables are being filtered by regex like here. However, the solution for this in the original commit is just a consequence of the values being the same as names, and not a proper fix.
I will reopen the original ticket, since we will need to reimplement custom variable support.

@idastambuk idastambuk requested a review from a team as a code owner October 10, 2023 15:18
@idastambuk idastambuk requested review from fridgepoet and kevinwcyu and removed request for a team October 10, 2023 15:18
@idastambuk idastambuk merged commit b24bca0 into main Oct 10, 2023
4 checks passed
@idastambuk idastambuk deleted the revert-184-variable-editor branch October 10, 2023 21:29
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.

Issue with query variables causing InvalidParameter failures
2 participants