grafana/devenv/dev-dashboards
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
..
annotations Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
datasource-elasticsearch Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
datasource-influxdb Schema V2: Adjust quick_ranges in time settings and remove time_options (#100135) 2025-02-12 19:23:09 +00:00
datasource-loki Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
datasource-mssql Schema V2: Adjust quick_ranges in time settings and remove time_options (#100135) 2025-02-12 19:23:09 +00:00
datasource-mysql Schema V2: Adjust quick_ranges in time settings and remove time_options (#100135) 2025-02-12 19:23:09 +00:00
datasource-opentsdb Fix dashboard migration discrepancies between backend and frontend implementations (use `toEqual`) (#110268) 2025-09-24 12:20:25 +02:00
datasource-postgres Schema V2: Adjust quick_ranges in time settings and remove time_options (#100135) 2025-02-12 19:23:09 +00:00
datasource-testdata Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
e2e-repeats Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
extensions Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
feature-templating Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
live Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
migrations Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-barchart Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-bargauge Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-candlestick Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-canvas Canvas: Dynamic connection direction (#108423) 2025-08-21 12:49:42 -05:00
panel-common Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-dashlist Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-datagrid Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-flamegraph Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-gauge Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-geomap Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-graph Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-heatmap Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-histogram Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-library DashboardSchema: Remove old unused legacy props style and timepicker.enable (#73879) 2023-08-28 12:18:17 +02:00
panel-piechart Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-polystat Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-stat Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-table Table: Styling from field (#110991) 2025-09-15 10:34:12 -05:00
panel-text Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-timeline Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-timeseries Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
panel-trend Trend: Add support for a logarithmic x axis (#101433) 2025-08-29 00:02:49 -05:00
panel-xychart Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
scenarios E2E: Add performance monitoring E2E test (#109417) 2025-08-20 19:36:54 +00:00
transforms Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
all-panels.json Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
dashboards.go Chore: Move dev-dashboards jsonnet into separate directory (#58619) 2022-11-11 04:19:29 -05:00
home.json Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00