From 9573ffcfb52ae30c76d5595fbb67005ef50b95fd Mon Sep 17 00:00:00 2001 From: radhika Date: Thu, 4 Feb 2016 10:45:26 -0500 Subject: [PATCH] 8183: set limit on my_toplevel_projects --- apps/workbench/app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb index ace9276e37..fc3b9594b6 100644 --- a/apps/workbench/app/controllers/application_controller.rb +++ b/apps/workbench/app/controllers/application_controller.rb @@ -836,7 +836,7 @@ class ApplicationController < ActionController::Base helper_method :my_toplevel_projects def my_toplevel_projects @my_toplevel_projects ||= Group. - filter([['group_class','=','project'], ['owner_uuid', '=', current_user.uuid]]).order('name') + filter([['group_class','=','project'], ['owner_uuid', '=', current_user.uuid]]).order('name').limit(200) end helper_method :my_project_tree -- 2.30.2