aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2022-02-22 11:54:01 +0100
committersonartech <sonartech@sonarsource.com>2022-02-22 20:02:46 +0000
commitcbe82255c366a66bba7efefed68f3198b2e7c73c (patch)
tree56a91649c2dd7e09cdecbb5eb10af086f31b129c /server
parent830c88ade29dfdd2c9edb60bf1398403f2f0d72b (diff)
downloadsonarqube-cbe82255c366a66bba7efefed68f3198b2e7c73c.tar.gz
sonarqube-cbe82255c366a66bba7efefed68f3198b2e7c73c.zip
SONAR-11718 increased page size param max value to 500 for tags endpoints
Diffstat (limited to 'server')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/TagsAction.java5
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/TagsAction.java6
2 files changed, 7 insertions, 4 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/TagsAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/TagsAction.java
index 2268f6dad8a..5ca592bc87c 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/TagsAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/TagsAction.java
@@ -80,9 +80,10 @@ public class TagsAction implements IssuesWsAction {
.setSince("5.1")
.setDescription("List tags matching a given query")
.setResponseExample(Resources.getResource(getClass(), "tags-example.json"))
- .setChangelog(new Change("7.4", "Result doesn't include rules tags anymore"));
+ .setChangelog(new Change("7.4", "Result doesn't include rules tags anymore"),
+ new Change("9.4", "Max page size increased to 500"));
action.createSearchQuery("misra", "tags");
- action.createPageSize(10, 100);
+ action.createPageSize(10, 500);
action.createParam(PARAM_PROJECT)
.setDescription("Project key")
.setRequired(false)
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/TagsAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/TagsAction.java
index a3bb1f7379d..73b712ef493 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/TagsAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/TagsAction.java
@@ -21,6 +21,7 @@ package org.sonar.server.rule.ws;
import com.google.common.io.Resources;
import java.util.List;
+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;
@@ -44,10 +45,11 @@ public class TagsAction implements RulesWsAction {
.setDescription("List rule tags")
.setSince("4.4")
.setHandler(this)
- .setResponseExample(Resources.getResource(getClass(), "tags-example.json"));
+ .setResponseExample(Resources.getResource(getClass(), "tags-example.json"))
+ .setChangelog(new Change("9.4", "Max page size increased to 500"));
action.createSearchQuery("misra", "tags");
- action.createPageSize(10, 100);
+ action.createPageSize(10, 500);
}
@Override