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

Replace deprecated setVariableQueryEditor with CustomVariableSupport #184

Merged
merged 1 commit into from
May 12, 2023

Conversation

fridgepoet
Copy link
Member

@fridgepoet fridgepoet commented May 9, 2023

What this PR does / why we need it:
This replaces the deprecated setVariableQueryEditor with CustomVariableSupport modeled after what is used in the Athena datasource.

Which issue(s) this PR fixes:

Fixes #154

Special notes for your reviewer:
I made an attempt to updated the deprecated setVariableQueryEditor. If I'm not mistaken in the build, I think it's working! I modeled it off of what is done in Athena.
Any suggestions are very welcome!

Here's the video of the change:
https://github.com/grafana/iot-sitewise-datasource/assets/4163034/40debff9-1617-499e-8622-3e56e79f142b

Now the regex filters by the name of the values for the regex.

@fridgepoet fridgepoet changed the title Replace deprecated variable editor method with CustomVariableSupport Replace deprecated setVariableQueryEditor with CustomVariableSupport May 9, 2023
@github-actions
Copy link

github-actions bot commented May 9, 2023

Levitate is-compatible report:

🔍 Resolving @grafana/data@latest...
🔍 Resolving @grafana/ui@latest...
🔍 Resolving @grafana/runtime@latest...
🔍 Resolving @grafana/e2e-selectors@latest...

🔬 Checking compatibility between ./src/module.ts and @grafana/[email protected]...
✔ Found @grafana/data version 9.2.5 locally

🔬 Checking compatibility between ./src/module.ts and @grafana/[email protected]...
✔ Found @grafana/ui version 9.2.5 locally

🔬 Checking compatibility between ./src/module.ts and @grafana/[email protected]...
✔ Found @grafana/runtime version 9.2.5 locally

🔬 Checking compatibility between ./src/module.ts and @grafana/[email protected]...
✔ Found @grafana/e2e-selectors version 9.2.5 locally

✔️ ./src/module.ts appears to be compatible with @grafana/data,@grafana/ui,@grafana/runtime,@grafana/e2e-selectors

@github-actions
Copy link

github-actions bot commented May 9, 2023

Backend code coverage report for PR #184
No changes

@github-actions
Copy link

github-actions bot commented May 9, 2023

Frontend code coverage report for PR #184

Plugin Main PR Difference
src 6.97% 17.88% 10.91%

@sarahzinger
Copy link
Member

Glad to hear it's working! I haven't manually tested but took a look at the code and I believe this basically matches what we've done in the past, seems like a good approach to me!

@fridgepoet fridgepoet marked this pull request as ready for review May 11, 2023 14:51
@fridgepoet fridgepoet requested a review from a team as a code owner May 11, 2023 14:51
@fridgepoet fridgepoet requested review from iwysiu and idastambuk and removed request for a team May 11, 2023 14:51
Copy link
Contributor

@iwysiu iwysiu left a comment

Choose a reason for hiding this comment

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

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request]: Ability to filter assets on Asset Name
4 participants