Previews: datasource permissions (#52747)
* Previews: datasource permissions * lint * simplify - force non-null `ds_uids` * add `canBeDisabled` to search service * add `IncludeThumbnailsWithEmptyDsUids` * remove force refresh migration * refactor main preview service * add safeguard * revert ticker interval * update testdata * fix test * add mock search service * add datasources lookup test * update migration * extract ds lookup to its own package to avoid cyclic imports * lint * fix dashbaord extract, use the real datasource lookup in tests. IS IT BULLETPROOF YET?! * fix dashbaord extract, use the real datasource lookup in tests. IS IT BULLETPROOF YET?! * remove stale log * consistent casing * pass context to `createServiceAccount` * filter out the special grafana ds
This commit is contained in:
+4
-2
@@ -4,7 +4,8 @@
|
||||
"tags": null,
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "-- Grafana --"
|
||||
"uid": "grafana",
|
||||
"type": "datasource"
|
||||
}
|
||||
],
|
||||
"panels": [
|
||||
@@ -15,7 +16,8 @@
|
||||
"pluginVersion": "7.5.0-pre",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "-- Grafana --"
|
||||
"uid": "grafana",
|
||||
"type": "datasource"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
],
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "SQLite Grafana",
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
],
|
||||
@@ -19,7 +19,7 @@
|
||||
"pluginVersion": "9.1.0-pre",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "SQLite Grafana",
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
]
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
],
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "SQLite Grafana",
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
],
|
||||
@@ -19,7 +19,7 @@
|
||||
"pluginVersion": "9.1.0-pre",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "SQLite Grafana",
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
]
|
||||
|
||||
+8
-8
@@ -6,14 +6,14 @@
|
||||
"dsVariable"
|
||||
],
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "gdev-testdata",
|
||||
"type": "testdata"
|
||||
},
|
||||
{
|
||||
"uid": "default.uid",
|
||||
"type": "default.type"
|
||||
},
|
||||
{
|
||||
"uid": "PD8C576611E62080A",
|
||||
"type": "testdata"
|
||||
},
|
||||
{
|
||||
"uid": "P8045C56BDA891CB2",
|
||||
"type": "cloudwatch"
|
||||
@@ -26,14 +26,14 @@
|
||||
"type": "table",
|
||||
"pluginVersion": "9.1.0-pre",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "gdev-testdata",
|
||||
"type": "testdata"
|
||||
},
|
||||
{
|
||||
"uid": "default.uid",
|
||||
"type": "default.type"
|
||||
},
|
||||
{
|
||||
"uid": "PD8C576611E62080A",
|
||||
"type": "testdata"
|
||||
},
|
||||
{
|
||||
"uid": "P8045C56BDA891CB2",
|
||||
"type": "cloudwatch"
|
||||
|
||||
+4
-4
@@ -7,11 +7,11 @@
|
||||
],
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "SQLite Grafana2",
|
||||
"uid": "sqlite-2",
|
||||
"type": "sqlite-datasource"
|
||||
},
|
||||
{
|
||||
"uid": "SQLite Grafana",
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
],
|
||||
@@ -23,11 +23,11 @@
|
||||
"pluginVersion": "9.1.0-pre",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "SQLite Grafana2",
|
||||
"uid": "sqlite-2",
|
||||
"type": "sqlite-datasource"
|
||||
},
|
||||
{
|
||||
"uid": "SQLite Grafana",
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
]
|
||||
|
||||
Vendored
+8
-8
@@ -6,13 +6,13 @@
|
||||
"dsVariable"
|
||||
],
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "gdev-testdata",
|
||||
"type": "testdata"
|
||||
},
|
||||
{
|
||||
"uid": "default.uid",
|
||||
"type": "default.type"
|
||||
},
|
||||
{
|
||||
"uid": "PD8C576611E62080A",
|
||||
"type": "testdata"
|
||||
}
|
||||
],
|
||||
"panels": [
|
||||
@@ -22,13 +22,13 @@
|
||||
"type": "table",
|
||||
"pluginVersion": "9.1.0-pre",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "gdev-testdata",
|
||||
"type": "testdata"
|
||||
},
|
||||
{
|
||||
"uid": "default.uid",
|
||||
"type": "default.type"
|
||||
},
|
||||
{
|
||||
"uid": "PD8C576611E62080A",
|
||||
"type": "testdata"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
],
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "SQLite Grafana",
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
],
|
||||
@@ -19,7 +19,7 @@
|
||||
"pluginVersion": "9.1.0-pre",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "SQLite Grafana",
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user