Fix the disjuction of panels (#39412)

[As code] Correct trim apply defaults when import/export dashboards
This commit is contained in:
ying-jeanne
2021-10-06 11:39:23 +02:00
committed by GitHub
parent ccd6a2eae3
commit 227c8403b5
25 changed files with 27834 additions and 131 deletions
+35
View File
@@ -0,0 +1,35 @@
Verifies common usecases for trimdefault/applydefault functions:
* Basic cases
* Real dashboard
-- CUE --
{
id?: number
uid: string
gnetId?: string
style: *"light" | "dark"
timezone?: *"browser" | "utc"
editable: bool | *true
schemaVersion: number | *25
version?: number
graphTooltip: >=0 & <=2 | *0
}
-- Full --
{
"editable": true,
"graphTooltip": 0,
"id": 42,
"schemaVersion": 27,
"style": "light",
"uid": "emal8gQMz",
"version": 2
}
-- Trimmed --
{
"id": 42,
"schemaVersion": 27,
"uid": "emal8gQMz",
"version": 2
}