grafana / grafana-foundation-sdk

A set of tools, types and libraries for building and manipulating Grafana objects.
https://grafana.github.io/grafana-foundation-sdk/
Apache License 2.0
49 stars 1 forks source link

How to set includeAll for dashboard variables #49

Closed hallum closed 8 months ago

hallum commented 8 months ago

I need to set includeAll: true for custom and query dashboard variables. I tried setting the "All" value as selected using Current and in the Options slice, but Grafana does not perform the enumeration that happens with includeAll == true.

Is there another method to set includeAll for custom and query dashboard variables?

thx

urianawu commented 8 months ago

A fellow user here 😃 Are you using the latest release? I had the same issue and it was fixed here https://github.com/grafana/grafana-foundation-sdk/issues/17

hallum commented 8 months ago

Ahh, I can see the change on the "next" branch. I was using the 10.3.x branch to match the version of Grafana I am using.