Dashboards: Cover the Switch variable in schema transformations - part 2. (#114549)

* feat: add v2alpha_1 conversion for the switch variable

* chore: gofmt fixes

* chore: update comments in tests

* chore: fix gofmt

* Update specs

* tests: update the v2alpha1 openapi snapshot

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
This commit is contained in:
Levente Balogh
2025-11-28 14:21:33 +01:00
committed by GitHub
parent c75137b2d3
commit 930f7ce489
16 changed files with 809 additions and 148 deletions
@@ -318,6 +318,19 @@
"description": "Group results by field"
}
},
{
"kind": "SwitchVariable",
"spec": {
"name": "switch_var",
"current": "false",
"enabledValue": "true",
"disabledValue": "false",
"label": "Enable Feature",
"hide": "dontHide",
"skipUrlSync": false,
"description": "Toggle feature on/off"
}
},
{
"kind": "QueryVariable",
"spec": {