From 78cc0c9fb04061194baa985d07648239f2b66002 Mon Sep 17 00:00:00 2001 From: Le Roux Bodenstein Date: Tue, 14 Jan 2025 11:08:04 +0000 Subject: [PATCH 1/2] Show the autoupdate installed toast even when we downgrade --- packages/compass/src/app/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/compass/src/app/index.tsx b/packages/compass/src/app/index.tsx index 96e7f11a8c6..620442ed9b6 100644 --- a/packages/compass/src/app/index.tsx +++ b/packages/compass/src/app/index.tsx @@ -379,9 +379,15 @@ const app = { }); } + log.info(mongoLogId(1_001_000_338), 'Main Window', 'Recent version info', { + previousVersion: state.previousVersion, + highestInstalledVersion: state.highestInstalledVersion, + APP_VERSION, + }); + if ( - semver.gt(APP_VERSION, state.previousVersion) && - state.previousVersion !== DEFAULT_APP_VERSION + state.previousVersion !== DEFAULT_APP_VERSION && + APP_VERSION !== state.previousVersion ) { // Wait a bit before showing the update toast. setTimeout(() => { From c91a221420dc9f9b7131d9e51cc91098a24f460f Mon Sep 17 00:00:00 2001 From: Le Roux Bodenstein Date: Tue, 14 Jan 2025 11:13:54 +0000 Subject: [PATCH 2/2] add data-testids to the toasts needed for testing --- packages/compass/src/app/components/update-toasts.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/compass/src/app/components/update-toasts.tsx b/packages/compass/src/app/components/update-toasts.tsx index 71cf6116429..4f5df1ecaf6 100644 --- a/packages/compass/src/app/components/update-toasts.tsx +++ b/packages/compass/src/app/components/update-toasts.tsx @@ -53,6 +53,7 @@ const RestartCompassToastContent = ({ @@ -83,6 +84,7 @@ export function onAutoupdateExternally({ Compass features.