Ver código fonte

SONAR-21243 Do not fetch Standards facet

tags/10.4.0.87286
Viktor Vorona 5 meses atrás
pai
commit
d111595d5a

+ 7
- 5
server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx Ver arquivo

@@ -864,11 +864,13 @@ export class App extends React.PureComponent<Props, State> {
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)),
}));

+ 1
- 1
server/sonar-web/src/main/js/apps/web-api-v2/components/ApiFilterContext.tsx Ver arquivo

@@ -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

+ 1
- 1
server/sonar-web/src/main/js/apps/web-api-v2/components/RestMethodPill.tsx Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar