mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CloudMigrations: Store parent folder name in cloud_migration_resource table (#94009)
* use name in fe * store parent folder name in local db * clean up * tiny test * trial react * rename to parent name * go lint * generate api and ts * go tests * rearrange * clean * update with suggestions from josh * make library elements work * updates from comments * global migration types * parent name for alter table
This commit is contained in:
@@ -75,6 +75,7 @@ type CloudMigrationResource struct {
|
||||
Error string `xorm:"error_string" json:"error"`
|
||||
|
||||
SnapshotUID string `xorm:"snapshot_uid"`
|
||||
ParentName string `xorm:"parent_name" json:"parentName"`
|
||||
}
|
||||
|
||||
type MigrateDataType string
|
||||
@@ -185,7 +186,8 @@ type Base64HGInstance struct {
|
||||
// GMS domain structs
|
||||
|
||||
type MigrateDataRequest struct {
|
||||
Items []MigrateDataRequestItem
|
||||
Items []MigrateDataRequestItem
|
||||
ItemParentNames map[MigrateDataType]map[string](string)
|
||||
}
|
||||
|
||||
type MigrateDataRequestItem struct {
|
||||
|
||||
Reference in New Issue
Block a user