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:
Artur Wierzbicki
2022-07-08 01:59:24 +04:00
committed by GitHub
parent 2aff83d4e1
commit 63366615bb
26 changed files with 1948 additions and 112 deletions
@@ -0,0 +1,21 @@
{
"id": 209,
"title": "ds-variables",
"tags": null,
"templateVars": [
"sqllite"
],
"panels": [
{
"id": 1,
"title": "usersss!",
"type": "table",
"pluginVersion": "9.1.0-pre"
}
],
"schemaVersion": 36,
"linkCount": 0,
"timeFrom": "now-6h",
"timeTo": "now",
"timezone": ""
}