Panel broken for viewers on Grafana Cloud 11+
BrightGrafana opened this issue · 15 comments
On Grafana Cloud a user with viewer rights is unable to select a variable when the variable is of type "Query". The following message appears:
For a variable of type "Custom" the values show up and the value of the variable updates, but they do not refresh any panels on the dashboard.
This has been tested for the following versions of Grafana Cloud:
- Grafana v11.1.0-70903 (778d9eb69d)
- Grafana v11.2.0-72847 (aaf23c64c3)
Example dashboard:
{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 13, "links": [], "panels": [ { "datasource": { "type": "datasource", "uid": "grafana" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 1, "options": { "alwaysVisibleFilter": false, "autoScroll": false, "collapsedByDefault": false, "customValue": false, "displayMode": "table", "emptyValue": false, "favorites": false, "filter": false, "groupSelection": false, "header": true, "padding": 10, "persistent": false, "saveSelectedGroup": false, "saveSelectedGroupKey": "", "showGroupTotal": false, "showLabel": false, "showName": false, "showResetButton": false, "showTotal": false, "statusSort": false, "sticky": false, "variable": "customVar" }, "pluginVersion": "3.1.0", "title": "Panel Title", "type": "volkovlabs-variable-panel" } ], "schemaVersion": 39, "tags": [], "templating": { "list": [ { "current": { "selected": false, "text": "2", "value": "2" }, "hide": 0, "includeAll": false, "multi": false, "name": "customVar", "options": [ { "selected": false, "text": "1", "value": "1" }, { "selected": true, "text": "2", "value": "2" }, { "selected": false, "text": "3", "value": "3" }, { "selected": false, "text": "4", "value": "4" }, { "selected": false, "text": "5", "value": "5" } ], "query": "1,2,3,4,5", "skipUrlSync": false, "type": "custom" } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Volkovlabs Variable panel test", "uid": "cdrfloby1kbggb", "version": 2, "weekStart": "" }
@BrightGrafana Thank you for reporting the issue. I will check and get back to you.
Do you have any special permissions configured on your data source which can prevent viewers to use it?
@mikhail-vl No, the viewer has the "Query" permission for datasources used for "Query" type variables.
Furthermore, the viewer has the basic-viewer role assigned (RBAC). When the permissions are changed to editor or admin, then the specific user is able to manipulate the variable through the variable panel.
Same issue here.
When placing a variable with query as display variable, the control no longer works.
When I run the query in the variable setting, I get results, but they are not displayed anymore.
Tomorow arround 11:00 it worked, but then I had a Grafana update (cloud version) and it stopped working
@vitPinchuk could you please investigate recent changes.
I'm now experiencing the same issue on Grafana Cloud with volkovlabs-variable-panel v3.2.0. The Business Variable panel only shows $__all
or Variable is not selected or do not match returned fields.
. The default built in variable dropdown works just fine.
@SamuelBoerlin I can confirm your finding. As work-around untill this is fixed I switched back to the default variable drop down.
We able to reproduce this issue locally with enabled dashboardScenes
toggle enabled and investigating.
export GF_FEATURE_TOGGLES_ENABLE=dashboardScene
Grafana confirmed the issue and we are working on a fix: grafana/grafana#90538
Until issue is fixed in the new versions of Grafana Cloud the new Scenes dashboards can be disabled by contacting support.
Shoutout to @asimonok. PR grafana/scenes#838 merged and should be updated in Grafana Cloud in the upcoming releases.
Happy to report that the issue has now - at least in my case - been resolved on Grafana Cloud.
Thanks for the fast solution!
@SamuelBoerlin Thank you for confirming.
Grafana team is still working on outstanding issues and it should be a part of the upcoming OSS 11.2.0: grafana/grafana#90538