5573: The activity page retrieves too much data that it does not need from the server...
authorRadhika Chippada <radhika@curoverse.com>
Fri, 17 Apr 2015 02:15:46 +0000 (22:15 -0400)
committerRadhika Chippada <radhika@curoverse.com>
Fri, 17 Apr 2015 02:15:46 +0000 (22:15 -0400)
apps/workbench/app/controllers/users_controller.rb

index 0ca5a85f018af48187865efe030195bbdeeebdbf..f6d571157d02459f8450478ba42aee71c572e3e5 100644 (file)
@@ -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|