diff --git a/pkg/services/cloudmigration/api/dtos.go b/pkg/services/cloudmigration/api/dtos.go index 0d6dae53306..270eab0952f 100644 --- a/pkg/services/cloudmigration/api/dtos.go +++ b/pkg/services/cloudmigration/api/dtos.go @@ -119,9 +119,10 @@ type MigrateDataResponseItemDTO struct { type MigrateDataType string const ( - DashboardDataType MigrateDataType = "DASHBOARD" - DatasourceDataType MigrateDataType = "DATASOURCE" - FolderDataType MigrateDataType = "FOLDER" + DashboardDataType MigrateDataType = "DASHBOARD" + DatasourceDataType MigrateDataType = "DATASOURCE" + FolderDataType MigrateDataType = "FOLDER" + LibraryElementDataType MigrateDataType = "LIBRARY_ELEMENT" ) // swagger:enum ItemStatus diff --git a/pkg/services/cloudmigration/gmsclient/dtos.go b/pkg/services/cloudmigration/gmsclient/dtos.go index 91c305ce7c3..1cb7a24d2c1 100644 --- a/pkg/services/cloudmigration/gmsclient/dtos.go +++ b/pkg/services/cloudmigration/gmsclient/dtos.go @@ -4,12 +4,6 @@ import "time" type MigrateDataType string -const ( - DashboardDataType MigrateDataType = "DASHBOARD" - DatasourceDataType MigrateDataType = "DATASOURCE" - FolderDataType MigrateDataType = "FOLDER" -) - type MigrateDataRequestDTO struct { Items []MigrateDataRequestItemDTO `json:"items"` } diff --git a/pkg/services/cloudmigration/model.go b/pkg/services/cloudmigration/model.go index 0ea1b8b7525..ac899a434e2 100644 --- a/pkg/services/cloudmigration/model.go +++ b/pkg/services/cloudmigration/model.go @@ -79,9 +79,10 @@ type CloudMigrationResource struct { type MigrateDataType string const ( - DashboardDataType MigrateDataType = "DASHBOARD" - DatasourceDataType MigrateDataType = "DATASOURCE" - FolderDataType MigrateDataType = "FOLDER" + DashboardDataType MigrateDataType = "DASHBOARD" + DatasourceDataType MigrateDataType = "DATASOURCE" + FolderDataType MigrateDataType = "FOLDER" + LibraryElementDataType MigrateDataType = "LIBRARY_ELEMENT" ) type ItemStatus string diff --git a/public/api-enterprise-spec.json b/public/api-enterprise-spec.json index cfcba3e9b58..ac04c23d278 100644 --- a/public/api-enterprise-spec.json +++ b/public/api-enterprise-spec.json @@ -5434,7 +5434,8 @@ "enum": [ "DASHBOARD", "DATASOURCE", - "FOLDER" + "FOLDER", + "LIBRARY_ELEMENT" ] } } diff --git a/public/api-merged.json b/public/api-merged.json index 203197677a4..b3664b756c6 100644 --- a/public/api-merged.json +++ b/public/api-merged.json @@ -16886,7 +16886,8 @@ "enum": [ "DASHBOARD", "DATASOURCE", - "FOLDER" + "FOLDER", + "LIBRARY_ELEMENT" ] } } diff --git a/public/app/features/migrate-to-cloud/api/endpoints.gen.ts b/public/app/features/migrate-to-cloud/api/endpoints.gen.ts index c5eebb2a30a..447ba395491 100644 --- a/public/app/features/migrate-to-cloud/api/endpoints.gen.ts +++ b/public/app/features/migrate-to-cloud/api/endpoints.gen.ts @@ -157,7 +157,7 @@ export type MigrateDataResponseItemDto = { message?: string; refId: string; status: 'OK' | 'WARNING' | 'ERROR' | 'PENDING' | 'UNKNOWN'; - type: 'DASHBOARD' | 'DATASOURCE' | 'FOLDER'; + type: 'DASHBOARD' | 'DATASOURCE' | 'FOLDER' | 'LIBRARY_ELEMENT'; }; export type SnapshotResourceStats = { statuses?: { diff --git a/public/app/features/migrate-to-cloud/onprem/NameCell.tsx b/public/app/features/migrate-to-cloud/onprem/NameCell.tsx index b69d622dcd1..b95c7403267 100644 --- a/public/app/features/migrate-to-cloud/onprem/NameCell.tsx +++ b/public/app/features/migrate-to-cloud/onprem/NameCell.tsx @@ -35,6 +35,8 @@ function ResourceInfo({ data }: { data: ResourceTableItem }) { return ; case 'FOLDER': return ; + case 'LIBRARY_ELEMENT': + return null; } } diff --git a/public/openapi3.json b/public/openapi3.json index 4a6e0fa3ad4..df22bf2188d 100644 --- a/public/openapi3.json +++ b/public/openapi3.json @@ -7112,7 +7112,8 @@ "enum": [ "DASHBOARD", "DATASOURCE", - "FOLDER" + "FOLDER", + "LIBRARY_ELEMENT" ], "type": "string" }