summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-15 14:06:00 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-02-16 22:25:01 +0000
commit0f36cfd7f58977becea9d3ecf410d3669440fbe9 (patch)
tree823283da83e245917a56208dfbe28111b2879a9a /app/finders
parentb632bdddee8a0801c61186e2dbe8188304df40ef (diff)
downloadgitlab-ce-0f36cfd7f58977becea9d3ecf410d3669440fbe9.tar.gz
Adds Pending and Finished tabs to pipelines page
Fix broken test
Diffstat (limited to 'app/finders')
-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'