From 3eb59f11b07109392445d96ddd4e03ee2def12b9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Vilain Date: Tue, 23 Jul 2013 17:09:33 +0200 Subject: [PATCH] SONAR-4453 Override default page size for bulk permission insertions to set it to 500 --- .../src/main/webapp/WEB-INF/app/controllers/roles_controller.rb | 2 ++ 1 file changed, 2 insertions(+) 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()} -- 2.39.5