From 331ccafc87fe637f140add3e71919cbdf3f3ed77 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki 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 b1d20d25..eb847c1c 100644 --- a/assets/scripts/app/models/job.coffee +++ b/assets/scripts/app/models/job.coffee @@ -158,7 +158,7 @@ require 'travis/model' filtered = Ember.FilteredRecordArray.create( modelClass: Travis.Job filterFunction: (job) -> - job.get('state') == 'started' + ['started', 'received'].indexOf(job.get('state')) != -1 filterProperties: ['state'] )