-
Notifications
You must be signed in to change notification settings - Fork 35
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
Support data path in Global Variable query #35
Comments
I can tackle this PR if you want to assign it to me. |
Thanks for opening this issue, to be honest I haven't looked into what it would take to support using the datasource for query variables. Historically this has been rather disconnected from the datasource, with a unique editor, query language, etc. I see there's now some documentation on supporting query variables, looks pretty straightforward. |
@ggranberry absolutely, let me know if you run into any issues. The main challenge I see is that we need to ensure that we get an array of simple values out, rather than objects. |
@retzkek How would you recommend implementing |
@ggranberry Good question... my first instinct is to use |
Hey just getting back to this and I was wondering if you had any documentation on how to build/test this? I was just going to try to install it into a local grafana docker image to test it out. Do I need to do anything besides copy this dir to the plugins folder? |
Yep that's all there is to it, or you can set the Grafana plugins directory, e.g. if I have the repo at
Or with Docker:
Note that you need to restart Grafana anytime you've changed the plugin (after running |
PR is up whenever you have time to review 👍 |
Currently when trying to assign a result from a Graphql Datasource into a Global Variable, there is no option to specify a data path leading to an inability to assign any values
The text was updated successfully, but these errors were encountered: