[ARVADOS] created: e9be782d70efaf8c9bf3fc0043d8a17dfe776bfc
git at public.curoverse.com
git at public.curoverse.com
Thu Apr 16 22:16:55 EDT 2015
at e9be782d70efaf8c9bf3fc0043d8a17dfe776bfc (commit)
commit e9be782d70efaf8c9bf3fc0043d8a17dfe776bfc
Author: Radhika Chippada <radhika at curoverse.com>
Date: Thu Apr 16 22:15:46 2015 -0400
5573: The activity page retrieves too much data that it does not need from the server. Added a limit clause on the request to server.
diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb
index 0ca5a85..f6d5711 100644
--- a/apps/workbench/app/controllers/users_controller.rb
+++ b/apps/workbench/app/controllers/users_controller.rb
@@ -52,15 +52,15 @@ class UsersController < ApplicationController
1.month.ago.beginning_of_month,
Time.now.beginning_of_month]]
@spans.each do |span, threshold_start, threshold_end|
- @activity[:logins][span] = Log.
+ @activity[:logins][span] = Log.select(%w(uuid modified_by_user_uuid)).
filter([[:event_type, '=', 'login'],
[:object_kind, '=', 'arvados#user'],
[:created_at, '>=', threshold_start],
[:created_at, '<', threshold_end]])
- @activity[:jobs][span] = Job.
+ @activity[:jobs][span] = Job.select(%w(uuid modified_by_user_uuid)).
filter([[:created_at, '>=', threshold_start],
[:created_at, '<', threshold_end]])
- @activity[:pipeline_instances][span] = PipelineInstance.
+ @activity[:pipeline_instances][span] = PipelineInstance.select(%w(uuid modified_by_user_uuid)).
filter([[:created_at, '>=', threshold_start],
[:created_at, '<', threshold_end]])
@activity.each do |type, act|
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list