From: Wouter Admiraal Date: Fri, 18 Aug 2023 14:30:48 +0000 (+0200) Subject: SONAR-20023 Disable CCT facets during issue reindexing X-Git-Tag: 10.2.0.77647~157 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=522573b028568e85648ca08e84feacb32726ec5c;p=sonarqube.git SONAR-20023 Disable CCT facets during issue reindexing --- 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 && ( - <>