Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-15 17:06:00 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-02-17 01:25:01 +0300
commit0f36cfd7f58977becea9d3ecf410d3669440fbe9 (patch)
tree823283da83e245917a56208dfbe28111b2879a9a /app/finders/pipelines_finder.rb
parentb632bdddee8a0801c61186e2dbe8188304df40ef (diff)
Adds Pending and Finished tabs to pipelines page
Fix broken test
Diffstat (limited to 'app/finders/pipelines_finder.rb')
-rw-r--r--app/finders/pipelines_finder.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/finders/pipelines_finder.rb b/app/finders/pipelines_finder.rb
index 32aea75486d..a9172f6767f 100644
--- a/app/finders/pipelines_finder.rb
+++ b/app/finders/pipelines_finder.rb
@@ -10,7 +10,11 @@ class PipelinesFinder
scoped_pipelines =
case scope
when 'running'
- pipelines.running_or_pending
+ pipelines.running
+ when 'pending'
+ pipelines.pending
+ when 'finished'
+ pipelines.finished
when 'branches'
from_ids(ids_for_ref(branches))
when 'tags'