]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19972 Keep global issues locked if the re-indexing resulted in failures
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>
Wed, 19 Jul 2023 10:22:17 +0000 (12:22 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 19 Jul 2023 20:03:05 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx

index 5eced96ea2e646afe40b947cf980a94e02a879d9..f506e9d1a647c9c2188deb78601f64f6dc590c30 100644 (file)
@@ -1335,8 +1335,14 @@ export default withRouter(
         withIndexationContext(
           withIndexationGuard<Props & WithIndexationContextProps>({
             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),
           })