diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2017-05-06 16:45:46 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2017-05-06 16:45:46 +0000 |
commit | c17e6a6c68b0412b3433632802b852db474a7b30 (patch) | |
tree | a7e6b1ec2e0e5f691aa6fd7585f5b63a15131114 /lib | |
parent | 1186dcabbfb8e885351c1ef05d4583fd474732e9 (diff) | |
download | gitlab-ce-c17e6a6c68b0412b3433632802b852db474a7b30.tar.gz |
Real time pipeline show action
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/status/group/common.rb | 21 | ||||
-rw-r--r-- | lib/gitlab/ci/status/group/factory.rb | 13 | ||||
-rw-r--r-- | lib/gitlab/etag_caching/router.rb | 6 |
3 files changed, 39 insertions, 1 deletions
diff --git a/lib/gitlab/ci/status/group/common.rb b/lib/gitlab/ci/status/group/common.rb new file mode 100644 index 00000000000..cfd4329a923 --- /dev/null +++ b/lib/gitlab/ci/status/group/common.rb @@ -0,0 +1,21 @@ +module Gitlab + module Ci + module Status + module Group + module Common + def has_details? + false + end + + def details_path + nil + end + + def has_action? + false + end + end + end + end + end +end diff --git a/lib/gitlab/ci/status/group/factory.rb b/lib/gitlab/ci/status/group/factory.rb new file mode 100644 index 00000000000..d118116cfc3 --- /dev/null +++ b/lib/gitlab/ci/status/group/factory.rb @@ -0,0 +1,13 @@ +module Gitlab + module Ci + module Status + module Group + class Factory < Status::Factory + def self.common_helpers + Status::Group::Common + end + end + end + end + end +end diff --git a/lib/gitlab/etag_caching/router.rb b/lib/gitlab/etag_caching/router.rb index aac210f19e8..692c909d838 100644 --- a/lib/gitlab/etag_caching/router.rb +++ b/lib/gitlab/etag_caching/router.rb @@ -36,7 +36,11 @@ module Gitlab Gitlab::EtagCaching::Router::Route.new( %r(^(?!.*(#{RESERVED_WORDS_REGEX})).*/pipelines\.json\z), 'project_pipelines' - ) + ), + Gitlab::EtagCaching::Router::Route.new( + %r(^(?!.*(#{RESERVED_WORDS})).*/pipelines/\d+\.json\z), + 'project_pipeline' + ), ].freeze def self.match(env) |