]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13398 fail with 503 api/security_reports/show WS if needIssueSync is set to...
authorJacek <jacek.poreda@sonarsource.com>
Tue, 9 Jun 2020 13:35:11 +0000 (15:35 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 26 Jun 2020 20:04:57 +0000 (20:04 +0000)
server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java

index 0b0fbab5ed81048cca5d59c88cacd14d0224d77e..b638e3ba2cf1a0547dddc36b761ef94712f26234 100644 (file)
@@ -55,7 +55,11 @@ public class IssueIndexSyncProgressChecker {
   }
 
   public void checkIfComponentNeedIssueSync(DbSession dbSession, String componentKey) {
-    checkIfAnyComponentsNeedIssueSync(dbSession, Collections.singletonList(componentKey), null, null);
+    checkIfComponentNeedIssueSync(dbSession, componentKey, null);
+  }
+
+  public void checkIfComponentNeedIssueSync(DbSession dbSession, String componentKey, @Nullable String branchKey) {
+    checkIfAnyComponentsNeedIssueSync(dbSession, Collections.singletonList(componentKey), branchKey, null);
   }
 
   /**