From 522573b028568e85648ca08e84feacb32726ec5c Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Fri, 18 Aug 2023 16:30:48 +0200 Subject: [PATCH] SONAR-20023 Disable CCT facets during issue reindexing --- .../__tests__/IssuesApp-Filtering-it.tsx | 4 +- .../main/js/apps/issues/sidebar/Sidebar.tsx | 45 ++++++++++--------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-Filtering-it.tsx b/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-Filtering-it.tsx index 965d39f8913..1cc286451d5 100644 --- a/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-Filtering-it.tsx +++ b/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-Filtering-it.tsx @@ -347,10 +347,10 @@ describe('issues app when reindexing', () => { // Enabled facets expect(ui.inNewCodeFilter.get()).toBeInTheDocument(); expect(ui.typeFacet.get()).toBeInTheDocument(); - expect(ui.cleanCodeAttributeCategoryFacet.get()).toBeInTheDocument(); - expect(ui.softwareQualityFacet.get()).toBeInTheDocument(); // Disabled facets + expect(ui.cleanCodeAttributeCategoryFacet.query()).not.toBeInTheDocument(); + expect(ui.softwareQualityFacet.query()).not.toBeInTheDocument(); expect(ui.assigneeFacet.query()).not.toBeInTheDocument(); expect(ui.authorFacet.query()).not.toBeInTheDocument(); expect(ui.codeVariantsFacet.query()).not.toBeInTheDocument(); diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx index 82f02d48729..ad2a4340e02 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx @@ -182,31 +182,32 @@ export class SidebarClass extends React.PureComponent { /> )} - - + {!needIssueSync && ( + <> + - + - + + + - {!needIssueSync && ( - <>