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

Unable to change field parameters when using plugin as Variable provider #94

Closed
henley-regatta opened this issue Apr 13, 2021 · 3 comments
Labels
type/bug Unexpected behavior or a feature is broken

Comments

@henley-regatta
Copy link

I've got an extremely simple datasource consisting of time:value pairs in JSON served as a simple file.
I've used your API to grab that data and, through a little trial and error worked out how to get the key/values out. Since the timestamp is effectively the key I'm using $..*~ to get that (I don't care about the value associated for the purposes of this variable's use). However, Javascript is interpreting the string as a timestamp and I don't want that.
image
image
I can select "String" manually from the Type selector:
image
...but it makes no difference. Using the "Update" button, or using "Save Dashboard". doesn't result in a data change: coming back in I find I'm back to looking at "Type: Auto":
image
then re-examining:
image
...it's back to "Auto".

This is with Plugin v1.0.1 on Grafana 7.5.3.

Thanks for any help.

@marcusolsson
Copy link
Contributor

I've removed auto detection of timestamps as Time fields with this, though it's yet to be released.

I can reproduce the issue with the type not being saved however. Will look into it! Thanks for reporting!

@marcusolsson marcusolsson added priority/medium type/bug Unexpected behavior or a feature is broken labels Apr 14, 2021
@marcusolsson marcusolsson added this to Triage in Grafana Plugins via automation Apr 14, 2021
@marcusolsson marcusolsson moved this from Triage to Backlog in Grafana Plugins Apr 14, 2021
@marcusolsson
Copy link
Contributor

I've just published v1.1.0 to the marketplace. While I haven't worked on this specifically. I've fixed a couple of related issues. Would you mind letting me know if this issue is still there in 1.1.0?

@henley-regatta
Copy link
Author

I've just published v1.1.0 to the marketplace. While I haven't worked on this specifically. I've fixed a couple of related issues. Would you mind letting me know if this issue is still there in 1.1.0?

Hey @marcusolsson great work, this fixed it brilliantly! Getting exactly the output I need now I can force formatting on variables and I appreciate the "alias" feature too!

Grafana Plugins automation moved this from Backlog to Done Apr 15, 2021
@marcusolsson marcusolsson removed this from Done in Grafana Plugins Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Unexpected behavior or a feature is broken
Projects
None yet
Development

No branches or pull requests

2 participants