Files
grafana/apps/dashboard/pkg/migration/testdata/input/v13.graph_thresholds.json
Haris Rozajac 4d3c5d1550 Dashboard Migrations: V13 no-op, remove 28 and v24 as they are autoMigrations; and remove dead code from DashboardMigrator (#110008)
* migrate to v19

* migrate to v18

* Migration to be verified: v17 Convert minSpan to maxPerRow in panels

* Migration to be verified: 16 Grid layout migration

* Refactor v17 and v19 migrations to use shared helper functions

* Migration to be verified: 15 No-op migration for schema consistency

* Migration to be verified: 14 Shared crosshair to graph tooltip migration

* cleanup

* wip

* complete migration

* fix lint issues

* refactor and test with minimal graph config

* update tests

* extract defaults outside the func

* lint

* lint

* add missing showValues prop

* add context and fix latest version

* generate snapshots

* v13 should be no-op

* clean up

* remove v28

* remove singlestat migraiton from frontend migrator because this is an automigration

* remove unused function

* Remove v24 table plugin logic

* cleanup

* remove plugin version for automigrate as it was used only in v24 and v28 that have been removed

* cleanup

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2025-10-09 11:14:02 -06:00

63 lines
1.3 KiB
JSON

{
"title": "V13 Graph Thresholds Migration Test",
"schemaVersion": 12,
"panels": [
{
"type": "graph",
"id": 1,
"title": "Graph with Line Thresholds",
"grid": {
"threshold1": 200,
"threshold2": 400,
"threshold1Color": "yellow",
"threshold2Color": "red",
"thresholdLine": true
}
},
{
"type": "graph",
"id": 2,
"title": "Graph with Fill Thresholds",
"grid": {
"threshold1": 100,
"threshold2": 300,
"threshold1Color": "green",
"threshold2Color": "blue",
"thresholdLine": false
}
},
{
"type": "graph",
"id": 3,
"title": "Graph with Single Threshold",
"grid": {
"threshold1": 150,
"threshold1Color": "orange",
"thresholdLine": true
}
},
{
"type": "graph",
"id": 4,
"title": "Graph with Existing Thresholds",
"thresholds": [
{
"value": 50,
"color": "purple",
"colorMode": "custom"
}
],
"grid": {
"threshold1": 200,
"threshold1Color": "yellow",
"thresholdLine": false
}
},
{
"type": "singlestat",
"id": 5,
"title": "Non-Graph Panel"
}
]
}