From: David Cho-Lerat Date: Wed, 19 Jul 2023 10:22:17 +0000 (+0200) Subject: SONAR-19972 Keep global issues locked if the re-indexing resulted in failures X-Git-Tag: 10.2.0.77647~342 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c470a582ef582096a0fe8b0f10fa91650519fbb5;p=sonarqube.git SONAR-19972 Keep global issues locked if the re-indexing resulted in failures --- 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 5eced96ea2e..f506e9d1a64 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 @@ -1335,8 +1335,14 @@ export default withRouter( withIndexationContext( withIndexationGuard({ Component: App, - showIndexationMessage: ({ component, indexationContext }) => - (!component && indexationContext.status.isCompleted === false) || + showIndexationMessage: ({ + component, + indexationContext: { + status: { completedCount, hasFailures, isCompleted, total }, + }, + }) => + (!component && + (isCompleted === false || hasFailures === true || completedCount !== total)) || (component?.qualifier !== ComponentQualifier.Project && component?.needIssueSync === true), })