diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-10 17:50:55 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-10 17:50:55 +0100 |
commit | 8012abf4ccee90d02f3ff386115f73eb24a87c20 (patch) | |
tree | 70385c49212286a17922112919b86475b49b5bc5 /app/serializers/pipeline_entity.rb | |
parent | 6f6119b7389ef7b5e13f2800611d5d7a806e41a5 (diff) | |
download | gitlab-ce-8012abf4ccee90d02f3ff386115f73eb24a87c20.tar.gz |
Fix failures [ci skip]
Diffstat (limited to 'app/serializers/pipeline_entity.rb')
-rw-r--r-- | app/serializers/pipeline_entity.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/serializers/pipeline_entity.rb b/app/serializers/pipeline_entity.rb index 7afce8fd15b..c57c08b4830 100644 --- a/app/serializers/pipeline_entity.rb +++ b/app/serializers/pipeline_entity.rb @@ -4,12 +4,14 @@ class PipelineEntity < Grape::Entity expose :id expose :user, if: -> (pipeline, opts) { created?(pipeline, opts) }, using: UserEntity - expose :status - expose :duration - expose :finished_at - expose :stages_with_statuses, as: :stages, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineStageEntity - expose :artifacts, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineArtifactEntity - expose :manual_actions, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineActionEntity + expose :details, if: -> (pipeline, opts) { updated?(pipeline, opts) } do + expose :status + expose :duration + expose :finished_at + expose :stages_with_statuses, as: :stages, using: PipelineStageEntity + expose :artifacts, using: PipelineArtifactEntity + expose :manual_actions, using: PipelineActionEntity + end expose :flags, if: -> (pipeline, opts) { created?(pipeline, opts) } do expose :latest?, as: :latest |