Ivan Ortega Alba
e463781077
Schema: convert dashboards from v1beta1 to v2beta1 ( #109037 )
...
- Implement full conversion pipeline from v1beta1 → v2beta1
- Ensure frontend–backend parity for all dashboard serialization paths
- Add automatic data loss detection for conversions (panels, queries, annotations, links, variables)
- Extract atomic conversion functions for v0 → v1beta1 → v2alpha1 → v2beta1
- Introduce conversion metrics and detailed logging for loss tracking
- Normalize datasource resolution, defaults, and annotation processing
- Improve panel layout serialization and y-coordinate normalization
- Fix inconsistencies in nested panels and collapsed row behavior
- Refine variable handling:
- Filter refId from variable query specs
- Default variable refresh to 'never' (matches frontend)
- Fix constant and interval variable handling for missing queries
- Unify schema defaults (enable, hide, iconColor, editable, liveNow)
- Fix pluginId usage (UID vs type) and datasource references
- Fix metrics.go bug swallowing errors (return nil → return err)
- Add tests for version-specific conversion error handling
- Add data loss detection tests using source/target version comparison
- Clean up lint issues, legacy code, and redundant files
- Update OpenAPI snapshots and migrated dashboards
- Improve backend migrator to reuse datasource provider and match frontend logic
Co-authored-by: Haris Rozajac <haris.rozajac12@gmail.com >
Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com >
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com >
2025-11-12 11:43:46 +01:00
Galen Kistler
8149f586b3
Annotations: Multi-lane annotations rendering (lane per frame) ( #111559 )
...
* feat: support multi-lane annotations panel option
---------
Co-authored-by: Leon Sorokin <leeoniya@gmail.com >
2025-11-05 09:00:28 -06:00
Paul Marbach
867e8bb98f
StatusHistory: Add e2e suite to confirm standard cases ( #113358 )
...
* StatusHistory: Add e2e suite to confirm standard cases
* update dev dashbord tests
* update CODEOWNERS
2025-11-04 16:21:30 -04:00
Paul Marbach
64da716a2e
Heatmap: Fix runtime error when no data is present, add e2e test ( #113242 )
...
* Heatmap: Fix runtime error when no xAxis is present, add e2e test
* update migration test fixture
* updates from review
2025-10-31 18:17:30 +00:00
Paul Marbach
c487952279
Table: Support DataLinks and Actions in SparklineCell ( #112244 )
...
* Table: Support DataLinks in SparklineCell
* add data links to sparkline gdev
* fix migrator test
* Clean up single action use case
2025-10-30 10:04:08 -04:00
Paul Marbach
2a5ce2f031
Gauge: Fix migration version targeting and gdev dashboard ( #112974 )
2025-10-28 09:31:20 -04:00
Paul Marbach
3f02f50cf9
StateTimeline: Complete E2E tests and add simple StateTimelineTooltip unit tests ( #112901 )
...
* StateTimeline: E2E tests for basic rendering, no data, and tooltip interactions
* Add tests for StateTimelineTooltip sub-component
* Remove unused import from state-timeline.spec.ts
* updates from PR review
2025-10-24 10:45:48 -04:00
Torkel Ödegaard
27ac08dd51
NewGauge: Fix segmented gauge with min value != 0 ( #112697 )
...
* NewGauge: Fix segmented gauge with min value != 0
* update gdev dashboard to exercise case
* update gdev dashboard with panel to exercise
* update
---------
Co-authored-by: Paul Marbach <paul.marbach@grafana.com >
2025-10-21 17:49:04 +02:00
Torkel Ödegaard
7df537c9fc
NewGauge: Adds new feature toggle named newGauge ( #112593 )
...
* NewGauge: Feature toggle and fixes
* Gauge: New migration test dashboard
* Update
* Updates
* Tweaked default barWidth
* Fix multi data links
* remove sizing options
* merge fix
* Update
* Restore
* Update
* Tweaked name font size logic
* use file snapshots instead of inline
---------
Co-authored-by: Paul Marbach <paul.marbach@grafana.com >
2025-10-20 18:33:19 +02:00
Torkel Ödegaard
e014f1ba0c
NewGauge: Adds scale labels (threshold labels) ( #112517 )
...
* Progress on scale label
* Progress
* Progress on labels
* Progress
* fix for segments
* Update
* Fix
* Update
* Some basic unit tests
* fixes
* fixes
2025-10-17 13:51:54 +02:00
Todd Treece
30d79476cd
App SDK: Update to v0.47.0 ( #112519 )
2025-10-16 15:41:41 +00:00
Torkel Ödegaard
77e571b079
RadialGauge: ( #111841 )
...
* Radial gauge
* Update
* Update
* Update
* Updated
* Progress
* Spotlight
* Glow
* More effects
* Update
* Update
* Update
* Update
* Fix overflow
* Progress
* Progress
* Barwidth factor
* Update
* segmemnted
* Update
* Update
* Update
* Display processor
* Progress
* Updated
* Update
* rounded bars option
* added option for rounded
* Fixed gauge shape and segments
* Updated text and sparkline placmeent
* progress
* New spotlight effect is working
* refactorings
* Update
* hue working in gauge mode
* Update
* Update
* Progress
* Refactorings and sizing improvements
* Refactorings
* Progress
* Unify arc path
* Thresholdsbar
* Update
* Progress
* Update
* Close to mergable
* Unit tests
* Update
* Update
* Fix
* Update
* update
* simple test
* Fix
* Minor tweak
* added icon to shape
* Progress on color simplification
* progress on new color system
* Simplify color gradient modes around a single auto mode
* Progress on text sizing
* Fixes
* Update
* Update
* Hook up manual font size
* Restore old behavior in old panel
2025-10-16 15:53:38 +02:00
Ivan Ortega Alba
ebd0d334bc
Dashboards: Fix preload field not being persisted via /v1beta1 ( #112475 )
2025-10-16 12:45:29 +02:00
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
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