From b64228f1f547c720b79a242d6d8d368a64923885 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 12 Jun 2014 11:29:01 -0400 Subject: [PATCH] 2872: Show projectless jobs/pipelines in "recent" list too. --- apps/workbench/app/controllers/application_controller.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb index 6457cd0013..3a9ccf2044 100644 --- a/apps/workbench/app/controllers/application_controller.rb +++ b/apps/workbench/app/controllers/application_controller.rb @@ -587,9 +587,8 @@ class ApplicationController < ActionController::Base helper_method :recent_jobs_and_pipelines def recent_jobs_and_pipelines - in_my_projects = ['owner_uuid','in',my_projects.collect(&:uuid)] - (Job.limit(10).filter([in_my_projects]) | - PipelineInstance.limit(10).filter([in_my_projects])). + (Job.limit(10) | + PipelineInstance.limit(10)). sort_by do |x| x.finished_at || x.started_at || x.created_at rescue x.created_at end -- 2.30.2