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

Issues with dashboard variables relying on JSON API datasource #2 #67

Open
EderRoger opened this issue Feb 26, 2021 · 5 comments
Open
Labels
type/bug Unexpected behavior or a feature is broken

Comments

@EderRoger
Copy link

Hi,

Prior to the new version, we are able to use variables as a parameter value, but in the latest release (0.10.0) looks like we don't have this feature anymore, should I need to change something? Thank you

image

@marcusolsson
Copy link
Contributor

While variables seems to be working for me, I did encounter some issues with the variable query editor that might affect this. I've published v0.10.1 with a couple of bug fixes. Could you try the new version and see if the problem persists?

@marcusolsson marcusolsson added the type/bug Unexpected behavior or a feature is broken label Feb 28, 2021
@EderRoger
Copy link
Author

Hi, thanks for the quick reply, and thanks for building this plugin.

About the latest version I tried here but I'm still facing issues in the variables query session. In version v0.9.2 I didn't have the reported bug. In my scenario, I sent some post requests to my internal API in order to retrieve data. And I used the variable value from another dropbox to fill the query parameters. But in this latest JSON API version looks like the variable values are not evaluated and sending empty values to my backend.

Thanks in advance :)

@marcusolsson
Copy link
Contributor

I've tried several variants, but I can't seem to reproduce this unfortunately. If it's sending empty values rather than "$var", it means that the variable evaluated to an empty string. Without disclosing sensitive information, is there anything else you can tell me about the variable? Is it multi-variable? If so, are you defining a format?

If you enable the Developer Console in your browser and check the output, are there any errors?

@EderRoger
Copy link
Author

Hi, all my variables are single select and I took the screenshot

Using variables the request are no able to get the values from the params

Screen Shot 2021-03-08 at 18 12 37

If I type manually the request are be able to send

Screen Shot 2021-03-08 at 18 14 10

Looking into the console I could see the error mentioned in the screenshots.

@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?

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
Status: Backlog
Development

No branches or pull requests

3 participants