Search: support datasource template variables when parsing dashboard JSON models (#51587)
* init * support template variables * support variables without curly braces * add todo for `__all` case * fix `$__all` case for non-multivalue * extract some functions * fix flakinesss * support `$__all` and `default` template variables * add todo * compilation fix Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
+61
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"id": 209,
|
||||
"title": "ds-variables",
|
||||
"tags": null,
|
||||
"templateVars": [
|
||||
"sqllite"
|
||||
],
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "sqlite-2",
|
||||
"type": "sqlite-datasource"
|
||||
},
|
||||
{
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
],
|
||||
"panels": [
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Panel Title",
|
||||
"type": "timeseries",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "sqlite-2",
|
||||
"type": "sqlite-datasource"
|
||||
},
|
||||
{
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Row title",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"title": "usersss!",
|
||||
"type": "table",
|
||||
"pluginVersion": "9.1.0-pre",
|
||||
"datasource": [
|
||||
{
|
||||
"uid": "sqlite-2",
|
||||
"type": "sqlite-datasource"
|
||||
},
|
||||
{
|
||||
"uid": "sqlite-1",
|
||||
"type": "sqlite-datasource"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"schemaVersion": 36,
|
||||
"linkCount": 0,
|
||||
"timeFrom": "now-6h",
|
||||
"timeTo": "now",
|
||||
"timezone": ""
|
||||
}
|
||||
Reference in New Issue
Block a user