grafana/apps/dashboard/pkg/migration/schemaversion
Dominik Prokop 825f8fc7ff
Dashboard migrations: Fix `span: 0` bug and panel ordering in v16 dashboard migration (#112051)
Fix span: 0 bug and panel ordering in v16 dashboard migration

Fix span: 0 handling to match frontend behavior by defaulting to DEFAULT_PANEL_SPAN.
Fix panel ordering issue by using stable sort instead of unstable sort.
Fix collapsed property handling to only set when input row has collapse property.
Add comprehensive test cases for span: 0 bug and collapsed property behavior.
Add sanitized test input file for span: 0 demo dashboard with generic values instead of internal Grafana infrastructure references.

All backend migration tests and frontend comparison tests pass.
2025-10-06 13:29:33 +02:00
..
angular_migration.go Dashboard Migrations: v25 & v24; migrate angular table (#108826) 2025-08-07 14:14:39 -06:00
datasource_utils.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
datasource_utils_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
errors.go Dashboard migration: Add missing metrics registration (#110178) 2025-08-29 18:37:39 -06:00
migration_utils.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
migrations.go Migration v42: HideFrom tooltip consistency migration (#110517) 2025-09-05 15:07:30 +02:00
migrations_test.go Dashboards: Remove panel plugin provider from migrations (#110477) 2025-09-04 14:17:22 +03:00
v14.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v14_test.go Migration v14: Shared crosshair to graph tooltip migration (#109606) 2025-08-21 16:44:14 -06:00
v15.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v15_test.go Migration v15: No-op migration for schema consistency (#109604) 2025-08-20 19:01:45 +00:00
v16.go Dashboard migrations: Fix `span: 0` bug and panel ordering in v16 dashboard migration (#112051) 2025-10-06 13:29:33 +02:00
v16_test.go Dashboard migrations: Fix `span: 0` bug and panel ordering in v16 dashboard migration (#112051) 2025-10-06 13:29:33 +02:00
v17.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v17_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v18.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v18_test.go Dashboard Migrations: v18 - gauge options (#109496) 2025-08-13 15:01:50 -06:00
v19.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v19_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v20.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v20_test.go Dashboard Migrations: V20 variable syntax migration for data links and field options (#109203) 2025-08-08 09:46:34 +00:00
v21.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v21_test.go Dashboard Migrations: V21 data links (#108950) 2025-08-08 08:55:32 +00:00
v22.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v22_test.go Dashboard Migrations: V22 table panel styles - set property to 'auto' (#108949) 2025-08-08 08:03:02 +00:00
v23.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v23_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v24.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v24_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v25.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v25_test.go Dashboard Migrations: v25 & v24; migrate angular table (#108826) 2025-08-07 14:14:39 -06:00
v26.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v26_test.go Dashboard Migrations: v26 text2 to text (#108646) 2025-08-06 17:00:48 +00:00
v27.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v27_test.go Dashboard Migrations: v27 repeated panels and constant variable (#108644) 2025-08-06 16:22:11 +00:00
v28.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v28_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v29.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v29_test.go Dashboard Migrations: V29 query variable refresh property and options (#108088) 2025-07-15 17:27:04 +00:00
v30.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v30_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v31.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v31_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v32.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v32_test.go Dashboard Migrations: V32 no-op migration + V31 LabelsToFields-Merge Migration (#107947) 2025-07-15 15:28:48 +00:00
v33.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v33_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v34.go Dashboard: Backend always set `metricEditorMode: 0` regardless `metricQueryType` and `expression` (#111613) 2025-09-29 11:35:58 +02:00
v34_test.go Dashboard: Backend always set `metricEditorMode: 0` regardless `metricQueryType` and `expression` (#111613) 2025-09-29 11:35:58 +02:00
v35.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v35_test.go Dashboard Migrations: V35 ensures X-axis visibility in timeseries (#106633) 2025-06-17 10:38:48 +02:00
v36.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v36_test.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v37.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v37_test.go Migrations: Compare backend and frontend outputs to ensure feature parity (#106851) 2025-07-03 12:23:51 +02:00
v38.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v38_test.go Migrations: Compare backend and frontend outputs to ensure feature parity (#106851) 2025-07-03 12:23:51 +02:00
v39.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v39_test.go Migrations: Compare backend and frontend outputs to ensure feature parity (#106851) 2025-07-03 12:23:51 +02:00
v40.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v40_test.go Migrations: Compare backend and frontend outputs to ensure feature parity (#106851) 2025-07-03 12:23:51 +02:00
v41.go feat: provides MT Dashboard service (#110447) 2025-09-03 20:41:37 +00:00
v41_test.go Migrations: Compare backend and frontend outputs to ensure feature parity (#106851) 2025-07-03 12:23:51 +02:00
v42.go Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
v42_test.go Migration v42: HideFrom tooltip consistency migration (#110517) 2025-09-05 15:07:30 +02:00