From 2a44a4683120af3aaa41c07c3d144c3a96d55879 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki <drogus@gmail.com> Date: Fri, 23 Jan 2015 10:36:41 +0100 Subject: [PATCH] Put jobs with 'received' status to the running jobs list The problem with running jobs list was that it didn't show jobs that went to the worker. The result was a confusing UI - when you look at the running jobs list you want to know how many concurrent jobs you are using, including jobs that are still waiting for a VM to boot. --- assets/scripts/app/models/job.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/app/models/job.coffee b/assets/scripts/app/models/job.coffee index 17a28280..77d5628f 100644 --- a/assets/scripts/app/models/job.coffee +++ b/assets/scripts/app/models/job.coffee @@ -164,7 +164,7 @@ compact = Travis.Helpers.compact filtered = Ember.FilteredRecordArray.create( modelClass: Travis.Job filterFunction: (job) -> - job.get('state') == 'started' + ['started', 'received'].indexOf(job.get('state')) != -1 filterProperties: ['state'] )