Ivan Ortega Alba
a72e02f88a
Fix dashboard migration discrepancies between backend and frontend implementations (use toEqual) (#110268)
**Highlights**
* **Single-version migrations**: add `targetVersion` to migrator & model, separate outputs, enforce exact version.
* **Datasource fixes**: include `apiVersion` in tests, empty-string → `{}`, preserve `{}` refs, drop unwanted defaults.
* **Panel defaults & nesting**: only top-level panels get defaults; preserve empty `transformations` context-aware; filter repeated panels.
* **Migration parity**
* V16: collapsed rows, grid height parsing (`px`).
* V17: omit `maxPerRow` when `minSpan=1`.
* V19–V20: cleanup defaults (`targetBlank`, style).
* V23–V24: template vars + table panel consistency.
* V28: full singlestat/stat parity, mappings & color.
* V30–V36: threshold logic, empty refs, nested targets.
* **Save-model cleanup**: replicate frontend defaults/filtering, drop null IDs, metadata, unused props.
* **Testing**: unified suites, dev dashboards (v42), full unit coverage for major migrations.
Co-authored-by: Ivan Ortega [ivanortegaalba@gmail.com](mailto:ivanortegaalba@gmail.com)
Co-authored-by: Dominik Prokop [dominik.prokop@grafana.com](mailto:dominik.prokop@grafana.com)
2025-09-24 12:20:25 +02:00
..
2025-08-21 16:44:14 -06:00
2025-09-24 12:20:25 +02:00
2025-08-20 19:01:45 +00:00
2025-09-24 12:20:25 +02:00
2025-08-20 17:31:32 +00:00
2025-08-18 08:02:37 -06:00
2025-08-13 15:01:50 -06:00
2025-08-13 13:51:19 -06:00
2025-08-08 09:46:34 +00:00
2025-08-08 08:55:32 +00:00
2025-08-08 08:03:02 +00:00
2025-08-07 22:41:42 +00:00
2025-08-07 14:14:39 -06:00
2025-08-07 14:14:39 -06:00
2025-08-06 17:00:48 +00:00
2025-08-06 16:22:11 +00:00
2025-08-06 17:51:55 +02:00
2025-08-06 16:22:11 +00:00
2025-08-06 17:51:55 +02:00
2025-07-15 17:27:04 +00:00
2025-07-15 16:44:11 +00:00
2025-07-15 15:28:48 +00:00
2025-07-15 15:28:48 +00:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-07-03 12:23:51 +02:00
2025-09-05 15:07:30 +02:00