aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-07-23 17:09:33 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-07-23 17:09:33 +0200
commit3eb59f11b07109392445d96ddd4e03ee2def12b9 (patch)
tree03cdd7ae9f8e1b0fdb0add2050075ad80b2fbe79
parent5b9f2e0b139f02b22c109611c456f78c57790ec3 (diff)
downloadsonarqube-3eb59f11b07109392445d96ddd4e03ee2def12b9.tar.gz
sonarqube-3eb59f11b07109392445d96ddd4e03ee2def12b9.zip
SONAR-4453 Override default page size for bulk permission insertions to set it to 500
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb
index b981e0b726e..4bc03f900c2 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb
@@ -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()}