From: Duarte Meneses Date: Wed, 21 Jul 2021 19:02:46 +0000 (-0500) Subject: SONAR-11411 Detection of inactive projects should take into account branches and PRs X-Git-Tag: 9.1.0.47736~210 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3f5a5b43fb91986c3347804fb0f3947c8600e09;p=sonarqube.git SONAR-11411 Detection of inactive projects should take into account branches and PRs --- diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/BulkDeleteAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/BulkDeleteAction.java index bdf03a08326..e09ad8e8068 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/BulkDeleteAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/BulkDeleteAction.java @@ -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) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/SearchAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/SearchAction.java index 2a05e663701..db05ee99b1b 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/SearchAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/SearchAction.java @@ -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).
" + - "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)