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:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-05-29 10:58:20 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-05-31 22:56:18 +0300
commit8a9a62e3294d92f4e70be6f427c17241a2b7a232 (patch)
tree2337d1455c8fb9ebadbe73e872dbdc388a627315 /app/serializers/pipeline_details_entity.rb
parent68569584b728ac2dd5100593e9db302f362994f5 (diff)
Incorporate review
Diffstat (limited to 'app/serializers/pipeline_details_entity.rb')
-rw-r--r--app/serializers/pipeline_details_entity.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/serializers/pipeline_details_entity.rb b/app/serializers/pipeline_details_entity.rb
index e80685dd4e3..d58572a5f87 100644
--- a/app/serializers/pipeline_details_entity.rb
+++ b/app/serializers/pipeline_details_entity.rb
@@ -1,21 +1,7 @@
class PipelineDetailsEntity < PipelineEntity
- expose :yaml_errors, if: -> (pipeline, _) { pipeline.has_yaml_errors? }
-
expose :details do
- expose :detailed_status, as: :status, with: StatusEntity
- expose :duration
- expose :finished_at
expose :stages, using: StageEntity
expose :artifacts, using: BuildArtifactEntity
expose :manual_actions, using: BuildActionEntity
end
-
- expose :flags do
- expose :latest?, as: :latest
- expose :triggered?, as: :triggered
- expose :stuck?, as: :stuck
- expose :has_yaml_errors?, as: :yaml_errors
- expose :can_retry?, as: :retryable
- expose :can_cancel?, as: :cancelable
- end
end