]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11411 Detection of inactive projects should take into account branches and PRs
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 21 Jul 2021 19:02:46 +0000 (14:02 -0500)
committersonartech <sonartech@sonarsource.com>
Thu, 22 Jul 2021 20:03:05 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/BulkDeleteAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/SearchAction.java

index bdf03a08326ada5562a5ee14dcfc9c74ab6eb49f..e09ad8e8068b301953e2bd3d01e8adfd5d61cbcc 100644 (file)
@@ -87,7 +87,9 @@ public class BulkDeleteAction implements ProjectsWsAction {
         parameterRequiredMessage)
       .setSince("5.2")
       .setHandler(this)
-      .setChangelog(new Change("7.8", parameterRequiredMessage));
+      .setChangelog(new Change("7.8", parameterRequiredMessage))
+      .setChangelog(new Change("9.1", "The parameter '" + PARAM_ANALYZED_BEFORE + "' "
+        + "takes into account the analysis of all branches and pull requests, not only the main branch."));
 
     action
       .createParam(PARAM_PROJECTS)
index 2a05e6637015917163d3a1484c2fa03af4a8582e..db05ee99b1b2339fe5fc5b6dd96ab48a1797e80c 100644 (file)
@@ -25,6 +25,7 @@ import java.util.Map;
 import java.util.Set;
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
+import org.sonar.api.server.ws.Change;
 import org.sonar.api.server.ws.Request;
 import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
@@ -83,6 +84,8 @@ public class SearchAction implements ProjectsWsAction {
         "Requires 'Administer System' permission")
       .addPagingParams(100, MAX_PAGE_SIZE)
       .setResponseExample(getClass().getResource("search-example.json"))
+      .setChangelog(new Change("9.1", "The parameter '" + PARAM_ANALYZED_BEFORE + "' and the field 'lastAnalysisDate' of the returned projects "
+        + "take into account the analysis of all branches and pull requests, not only the main branch."))
       .setHandler(this);
 
     action.createParam(Param.TEXT_QUERY)
@@ -99,7 +102,7 @@ public class SearchAction implements ProjectsWsAction {
 
     action.createParam(PARAM_VISIBILITY)
       .setDescription("Filter the projects that should be visible to everyone (%s), or only specific user/groups (%s).<br/>" +
-        "If no visibility is specified, the default project visibility will be used.",
+          "If no visibility is specified, the default project visibility will be used.",
         Visibility.PUBLIC.getLabel(), Visibility.PRIVATE.getLabel())
       .setRequired(false)
       .setInternal(true)