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
+3
View File
@@ -204,6 +204,9 @@ type Panel struct {
Options map[string]any `json:"options,omitempty"`
// Field options allow you to change how the data is displayed in your visualizations.
FieldConfig *FieldConfigSource `json:"fieldConfig,omitempty"`
// 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 `json:"autoMigrateFrom,omitempty"`
}
// NewPanel creates a new Panel object.