]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4453 Override default page size for bulk permission insertions to set it to 500
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Tue, 23 Jul 2013 15:09:33 +0000 (17:09 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Tue, 23 Jul 2013 15:09:33 +0000 (17:09 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb

index b981e0b726eeeed6065d19a2b19304b976db9cd3..4bc03f900c2d6bcd932e491f40665ae9600a15be 100644 (file)
@@ -83,6 +83,8 @@ class RolesController < ApplicationController
     @permission_templates = Internal.permission_templates.selectAllPermissionTemplates().sort_by {|t| t.name.downcase}.collect {|pt| [pt.name, pt.key]}
 
     params['qualifiers'] ||= 'TRK'
+    params['pageSize'] = 500
+
     @query_result = Internal.component_api.find(params).components().to_a
     @projects_ids = @query_result.collect{|component| component.getId()}