Dashboard: Support Angular panel migrations in v2 schema (#115368)

* V2: Support angular panel migrations

* Add autoMigrateFrom and update ensureV2

* Remove context files

* Simplify angular migration handler

* linter

* Only include angular options in angular panel data
This commit is contained in:
Ivan Ortega Alba
2025-12-16 22:39:21 +01:00
committed by GitHub
parent c647140475
commit dfd396b06c
142 changed files with 37679 additions and 653 deletions
@@ -706,6 +706,10 @@ lineage: schemas: [{
// Field options allow you to change how the data is displayed in your visualizations.
fieldConfig?: #FieldConfigSource
// When a panel is migrated from a previous version (Angular to React), this field is set to the original panel type.
// This is used to determine the original panel type when migrating to a new version so the plugin migration can be applied.
autoMigrateFrom?: string
} @cuetsy(kind="interface") @grafana(TSVeneer="type") @grafanamaturity(NeedsExpertReview)
// The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.
@@ -706,6 +706,10 @@ lineage: schemas: [{
// Field options allow you to change how the data is displayed in your visualizations.
fieldConfig?: #FieldConfigSource
// When a panel is migrated from a previous version (Angular to React), this field is set to the original panel type.
// This is used to determine the original panel type when migrating to a new version so the plugin migration can be applied.
autoMigrateFrom?: string
} @cuetsy(kind="interface") @grafana(TSVeneer="type") @grafanamaturity(NeedsExpertReview)
// The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.