Skip to content

Commit ae6fa46

Browse files
authored
Update provisioned dashboards (#78)
* Update provisioned dashboards * Update minimum version * Update Edit button
1 parent 1261d49 commit ae6fa46

File tree

9 files changed

+107
-122
lines changed

9 files changed

+107
-122
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 1.3.0 (2024-09-20)
44

5+
### Breaking changes
6+
7+
- Requires Grafana 10.3 and Grafana 11
8+
59
### Features / Enhancements
610

711
- Added edit data with based permission check (#40, #76)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Business Table panel is a Grafana plugin that allows to summarize large amounts
1414

1515
## Requirements
1616

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

1919
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.
2020

provisioning/dashboards/devices.json

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@
9999
"footer": [],
100100
"group": false,
101101
"label": "",
102+
"pin": "",
102103
"sort": {
104+
"descFirst": false,
103105
"enabled": false
104106
},
105107
"type": "auto"
@@ -134,10 +136,7 @@
134136
"source": ""
135137
},
136138
"mode": "userRole",
137-
"userRole": [
138-
"Editor",
139-
"Admin"
140-
]
139+
"userRole": ["Editor", "Admin"]
141140
}
142141
},
143142
"field": {
@@ -152,7 +151,9 @@
152151
"footer": [],
153152
"group": false,
154153
"label": "",
154+
"pin": "",
155155
"sort": {
156+
"descFirst": false,
156157
"enabled": false
157158
},
158159
"type": "auto"
@@ -187,10 +188,7 @@
187188
"source": ""
188189
},
189190
"mode": "userRole",
190-
"userRole": [
191-
"Editor",
192-
"Admin"
193-
]
191+
"userRole": ["Editor", "Admin"]
194192
}
195193
},
196194
"field": {
@@ -205,7 +203,9 @@
205203
"footer": [],
206204
"group": false,
207205
"label": "",
206+
"pin": "",
208207
"sort": {
208+
"descFirst": false,
209209
"enabled": false
210210
},
211211
"type": "auto"
@@ -240,10 +240,7 @@
240240
"source": ""
241241
},
242242
"mode": "userRole",
243-
"userRole": [
244-
"Editor",
245-
"Admin"
246-
]
243+
"userRole": ["Editor", "Admin"]
247244
}
248245
},
249246
"field": {
@@ -258,7 +255,9 @@
258255
"footer": [],
259256
"group": false,
260257
"label": "",
258+
"pin": "",
261259
"sort": {
260+
"descFirst": false,
262261
"enabled": false
263262
},
264263
"type": "auto"
@@ -288,10 +287,7 @@
288287
"source": "Permission"
289288
},
290289
"mode": "query",
291-
"userRole": [
292-
"Editor",
293-
"Admin"
294-
]
290+
"userRole": ["Editor", "Admin"]
295291
}
296292
},
297293
"field": {
@@ -306,20 +302,26 @@
306302
"footer": [],
307303
"group": false,
308304
"label": "",
305+
"pin": "",
309306
"sort": {
307+
"descFirst": false,
310308
"enabled": false
311309
},
312310
"type": "auto"
313311
}
314312
],
315313
"name": "List",
314+
"pagination": {
315+
"enabled": false,
316+
"mode": "client"
317+
},
316318
"update": {
317319
"datasource": "Timescale",
318320
"payload": {
319321
"editorMode": "code",
320322
"format": "table",
321323
"rawQuery": true,
322-
"rawSql": "UPDATE devices\nSET name = ${payload.name}\nWHERE id = ${payload.id};",
324+
"rawSql": "UPDATE devices\nSET name = ${payload.name:sqlstring}\nWHERE id = ${payload.id};",
323325
"refId": "A",
324326
"sql": {
325327
"columns": [
@@ -383,7 +385,9 @@
383385
"footer": [],
384386
"group": true,
385387
"label": "",
388+
"pin": "",
386389
"sort": {
390+
"descFirst": false,
387391
"enabled": false
388392
},
389393
"type": "auto"
@@ -428,7 +432,9 @@
428432
"footer": [],
429433
"group": true,
430434
"label": "",
435+
"pin": "",
431436
"sort": {
437+
"descFirst": false,
432438
"enabled": false
433439
},
434440
"type": "auto"
@@ -473,7 +479,9 @@
473479
"footer": [],
474480
"group": true,
475481
"label": "",
482+
"pin": "",
476483
"sort": {
484+
"descFirst": false,
477485
"enabled": false
478486
},
479487
"type": "auto"
@@ -518,21 +526,31 @@
518526
"footer": [],
519527
"group": false,
520528
"label": "",
529+
"pin": "",
521530
"sort": {
531+
"descFirst": false,
522532
"enabled": false
523533
},
524534
"type": "auto"
525535
}
526536
],
527537
"name": "Grouped",
538+
"pagination": {
539+
"enabled": false,
540+
"mode": "client"
541+
},
528542
"update": {
529543
"datasource": "",
530544
"payload": {}
531545
}
532546
}
533547
],
534-
"tabsSorting": false
548+
"tabsSorting": false,
549+
"toolbar": {
550+
"export": false
551+
}
535552
},
553+
"pluginVersion": "1.3.0",
536554
"targets": [
537555
{
538556
"datasource": {
@@ -660,9 +678,7 @@
660678
"config": {},
661679
"name": "edit",
662680
"type": "boolean",
663-
"values": [
664-
"true"
665-
]
681+
"values": ["true"]
666682
}
667683
],
668684
"meta": {},
@@ -689,6 +705,6 @@
689705
"timezone": "browser",
690706
"title": "Devices",
691707
"uid": "edxke3hyi04cgc",
692-
"version": 11,
708+
"version": 1,
693709
"weekStart": ""
694710
}

0 commit comments

Comments
 (0)