From: Viktor Vorona Date: Thu, 4 Jan 2024 10:04:39 +0000 (+0100) Subject: SONAR-21243 Do not fetch Standards facet X-Git-Tag: 10.4.0.87286~230 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d111595d5a4e508d5f4108474825c22ae6424b99;p=sonarqube.git SONAR-21243 Do not fetch Standards facet --- diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx index a417dcfc2ed..29509e3b0e3 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx @@ -864,11 +864,13 @@ export class App extends React.PureComponent { const { openFacets } = this.state; // The idea is once issue is handle by a react-query we would update only // the facet affected by the issue change. Right now it is too complexe to do so. - Object.entries(openFacets).forEach(([facet, isOpen]) => { - if (isOpen) { - this.fetchFacet(facet); - } - }); + Object.entries(openFacets) + .filter(([facet]) => facet !== STANDARDS) + .forEach(([facet, isOpen]) => { + if (isOpen) { + this.fetchFacet(facet); + } + }); this.setState((state) => ({ issues: state.issues.map((candidate) => (candidate.key === issue.key ? issue : candidate)), })); diff --git a/server/sonar-web/src/main/js/apps/web-api-v2/components/ApiFilterContext.tsx b/server/sonar-web/src/main/js/apps/web-api-v2/components/ApiFilterContext.tsx index 5c669dc0213..15ee749833a 100644 --- a/server/sonar-web/src/main/js/apps/web-api-v2/components/ApiFilterContext.tsx +++ b/server/sonar-web/src/main/js/apps/web-api-v2/components/ApiFilterContext.tsx @@ -1,6 +1,6 @@ /* * SonarQube - * Copyright (C) 2009-2023 SonarSource SA + * Copyright (C) 2009-2024 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or diff --git a/server/sonar-web/src/main/js/apps/web-api-v2/components/RestMethodPill.tsx b/server/sonar-web/src/main/js/apps/web-api-v2/components/RestMethodPill.tsx index 8387e0adf73..b2984e01341 100644 --- a/server/sonar-web/src/main/js/apps/web-api-v2/components/RestMethodPill.tsx +++ b/server/sonar-web/src/main/js/apps/web-api-v2/components/RestMethodPill.tsx @@ -1,6 +1,6 @@ /* * SonarQube - * Copyright (C) 2009-2023 SonarSource SA + * Copyright (C) 2009-2024 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or