]> source.dussan.org Git - sonarqube.git/commitdiff
Set page size of active rules WS to 500
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 29 Sep 2015 11:42:32 +0000 (13:42 +0200)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 30 Sep 2015 14:28:08 +0000 (16:28 +0200)
sonar-batch/src/main/java/org/sonar/batch/rule/DefaultActiveRulesLoader.java
sonar-batch/src/test/java/org/sonar/batch/rule/DefaultActiveRulesLoaderTest.java

index 449cba0ccbc1ca18220bf1dd1e7cce3e30bb9abc..c752b2f387101f559c65210ef673fcf975e98775 100644 (file)
@@ -35,7 +35,7 @@ import java.io.InputStream;
 import java.util.List;
 
 public class DefaultActiveRulesLoader implements ActiveRulesLoader {
-  private static final String RULES_SEARCH_URL = "/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params&activation=true";
+  private static final String RULES_SEARCH_URL = "/api/rules/search.protobuf?ps=500&f=repo,name,severity,lang,internalKey,templateKey,params&activation=true";
 
   private final WSLoader wsLoader;
 
index 766ad91ab81934a0b7dbc41e4f500ed686f6c566..9e96042319f1ff443b7dbc29333b4d1ad63f62fc 100644 (file)
@@ -55,7 +55,7 @@ public class DefaultActiveRulesLoaderTest {
     Collection<Rule> activeRules = loader.load("java-sonar-way-26368", null);
     assertThat(activeRules).hasSize(100);
 
-    verify(ws).loadStream("/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params&activation=true&qprofile=java-sonar-way-26368");
+    verify(ws).loadStream("/api/rules/search.protobuf?ps=500&f=repo,name,severity,lang,internalKey,templateKey,params&activation=true&qprofile=java-sonar-way-26368");
     verifyNoMoreInteractions(ws);
 
   }