From d6a779d1f8532fab8876ad3196fc8d44c8288517 Mon Sep 17 00:00:00 2001 From: Darshana Venkatesh Date: Mon, 13 Oct 2025 14:07:50 -0700 Subject: [PATCH] fix missing banner --- .../src/components/indexes/indexes.tsx | 12 ++++++++++-- .../view-version-incompatible-banners.tsx | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/compass-indexes/src/components/indexes/indexes.tsx b/packages/compass-indexes/src/components/indexes/indexes.tsx index 35395784230..1f5f8cdf632 100644 --- a/packages/compass-indexes/src/components/indexes/indexes.tsx +++ b/packages/compass-indexes/src/components/indexes/indexes.tsx @@ -230,10 +230,17 @@ export function Indexes({ const getBanner = () => { if (isReadonlyView) { - if ( + const viewVersionIncompatibleCompass = !VIEW_PIPELINE_UTILS.isVersionSearchCompatibleForViewsCompass( serverVersion - ) + ) && enableAtlasSearchIndexes; + const viewVersionIncompatibleDataExplorer = + !VIEW_PIPELINE_UTILS.isVersionSearchCompatibleForViewsDataExplorer( + serverVersion + ) && !enableAtlasSearchIndexes; + if ( + viewVersionIncompatibleCompass || + viewVersionIncompatibleDataExplorer ) { return ( ); } + if (!isViewPipelineSearchQueryable) { return ( Upgrade Cluster