Fix the disjuction of panels (#39412)
[As code] Correct trim apply defaults when import/export dashboards
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user