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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-01 13:57:04 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-01 13:57:04 +0300
commit0532883622dde885ec2a120616b31aadaad4c5d2 (patch)
tree90bfeb1827fefa65f224bc82e94ea0d8b8b693c0 /app/serializers
parent78b2f65cb5320a6a28c1e26bb6ee792a54e1b674 (diff)
Fix exposing legacy stages in pipeline entity
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/pipeline_entity.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/serializers/pipeline_entity.rb b/app/serializers/pipeline_entity.rb
index ea57cc97a7e..d03e65b52b4 100644
--- a/app/serializers/pipeline_entity.rb
+++ b/app/serializers/pipeline_entity.rb
@@ -15,11 +15,11 @@ class PipelineEntity < Grape::Entity
expose :details do
expose :detailed_status, as: :status, with: StatusEntity
- expose :duration
- expose :finished_at
- expose :stages, using: StageEntity
+ expose :legacy_stages, as: :stages, using: StageEntity
expose :artifacts, using: BuildArtifactEntity
expose :manual_actions, using: BuildActionEntity
+ expose :duration
+ expose :finished_at
end
expose :flags do