Skip to content

Commit

Permalink
Update provisioned dashboards (#78)
Browse files Browse the repository at this point in the history
* Update provisioned dashboards

* Update minimum version

* Update Edit button
  • Loading branch information
mikhail-vl authored Sep 20, 2024
1 parent 1261d49 commit ae6fa46
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 122 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 1.3.0 (2024-09-20)

### Breaking changes

- Requires Grafana 10.3 and Grafana 11

### Features / Enhancements

- Added edit data with based permission check (#40, #76)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Business Table panel is a Grafana plugin that allows to summarize large amounts

## Requirements

- Business Table panel 1.X requires **Grafana 10** or **Grafana 11**.
- Business Table panel 1.X requires **Grafana 10.3** or **Grafana 11**.

You can install the Business Table panel plugin from the [Grafana Plugins catalog](https://grafana.com/grafana/plugins/volkovlabs-table-panel/) or use the Grafana command line tool.

Expand Down
60 changes: 38 additions & 22 deletions provisioning/dashboards/devices.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@
"footer": [],
"group": false,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
Expand Down Expand Up @@ -134,10 +136,7 @@
"source": ""
},
"mode": "userRole",
"userRole": [
"Editor",
"Admin"
]
"userRole": ["Editor", "Admin"]
}
},
"field": {
Expand All @@ -152,7 +151,9 @@
"footer": [],
"group": false,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
Expand Down Expand Up @@ -187,10 +188,7 @@
"source": ""
},
"mode": "userRole",
"userRole": [
"Editor",
"Admin"
]
"userRole": ["Editor", "Admin"]
}
},
"field": {
Expand All @@ -205,7 +203,9 @@
"footer": [],
"group": false,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
Expand Down Expand Up @@ -240,10 +240,7 @@
"source": ""
},
"mode": "userRole",
"userRole": [
"Editor",
"Admin"
]
"userRole": ["Editor", "Admin"]
}
},
"field": {
Expand All @@ -258,7 +255,9 @@
"footer": [],
"group": false,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
Expand Down Expand Up @@ -288,10 +287,7 @@
"source": "Permission"
},
"mode": "query",
"userRole": [
"Editor",
"Admin"
]
"userRole": ["Editor", "Admin"]
}
},
"field": {
Expand All @@ -306,20 +302,26 @@
"footer": [],
"group": false,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
}
],
"name": "List",
"pagination": {
"enabled": false,
"mode": "client"
},
"update": {
"datasource": "Timescale",
"payload": {
"editorMode": "code",
"format": "table",
"rawQuery": true,
"rawSql": "UPDATE devices\nSET name = ${payload.name}\nWHERE id = ${payload.id};",
"rawSql": "UPDATE devices\nSET name = ${payload.name:sqlstring}\nWHERE id = ${payload.id};",
"refId": "A",
"sql": {
"columns": [
Expand Down Expand Up @@ -383,7 +385,9 @@
"footer": [],
"group": true,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
Expand Down Expand Up @@ -428,7 +432,9 @@
"footer": [],
"group": true,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
Expand Down Expand Up @@ -473,7 +479,9 @@
"footer": [],
"group": true,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
Expand Down Expand Up @@ -518,21 +526,31 @@
"footer": [],
"group": false,
"label": "",
"pin": "",
"sort": {
"descFirst": false,
"enabled": false
},
"type": "auto"
}
],
"name": "Grouped",
"pagination": {
"enabled": false,
"mode": "client"
},
"update": {
"datasource": "",
"payload": {}
}
}
],
"tabsSorting": false
"tabsSorting": false,
"toolbar": {
"export": false
}
},
"pluginVersion": "1.3.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -660,9 +678,7 @@
"config": {},
"name": "edit",
"type": "boolean",
"values": [
"true"
]
"values": ["true"]
}
],
"meta": {},
Expand All @@ -689,6 +705,6 @@
"timezone": "browser",
"title": "Devices",
"uid": "edxke3hyi04cgc",
"version": 11,
"version": 1,
"weekStart": ""
}
Loading

0 comments on commit ae6fa46

Please sign in to comment.