From 1a7c965f7de24329b688cd8fc82989a4d8ffa707 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Mon, 29 Jul 2024 16:27:31 +0100 Subject: [PATCH] E2C: Fix rebuild snapshot not showing while pending upload (#91077) * E2C: Fix rebuild snapshot not showing while pending upload * fix unable to make snapshot after disconnect/reconnect * fix wrap on migration summary --- .../onprem/MigrationSummary.tsx | 52 ++++++++++--------- .../features/migrate-to-cloud/onprem/Page.tsx | 2 +- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/public/app/features/migrate-to-cloud/onprem/MigrationSummary.tsx b/public/app/features/migrate-to-cloud/onprem/MigrationSummary.tsx index 22742acd860..02fa15f267e 100644 --- a/public/app/features/migrate-to-cloud/onprem/MigrationSummary.tsx +++ b/public/app/features/migrate-to-cloud/onprem/MigrationSummary.tsx @@ -63,7 +63,7 @@ export function MigrationSummary(props: MigrationSummaryProps) { alignItems="center" justifyContent="space-between" > - + {snapshot?.created ? ( formatDate(snapshot.created, DATE_FORMAT) @@ -101,32 +101,34 @@ export function MigrationSummary(props: MigrationSummaryProps) { - {showBuildSnapshot && ( - - )} + + {showBuildSnapshot && ( + + )} - {showRebuildSnapshot && ( - - )} + {showRebuildSnapshot && ( + + )} - {showUploadSnapshot && ( - - )} + {showUploadSnapshot && ( + + )} + ); } diff --git a/public/app/features/migrate-to-cloud/onprem/Page.tsx b/public/app/features/migrate-to-cloud/onprem/Page.tsx index af6396ca485..d8a8989d7b3 100644 --- a/public/app/features/migrate-to-cloud/onprem/Page.tsx +++ b/public/app/features/migrate-to-cloud/onprem/Page.tsx @@ -57,7 +57,7 @@ const SHOULD_POLL_STATUSES: Array = [ 'PROCESSING', ]; -const SNAPSHOT_REBUILD_STATUSES: Array = ['PENDING_PROCESSING', 'FINISHED', 'ERROR', 'UNKNOWN']; +const SNAPSHOT_REBUILD_STATUSES: Array = ['PENDING_UPLOAD', 'FINISHED', 'ERROR', 'UNKNOWN']; const SNAPSHOT_BUILDING_STATUSES: Array = ['INITIALIZING', 'CREATING']; const SNAPSHOT_UPLOADING_STATUSES: Array = ['UPLOADING', 'PENDING_PROCESSING', 'PROCESSING'];