diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-21 12:39:46 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-21 16:13:32 +0300 |
commit | 631bd9bf082c396059867d512fcfbdc80445c65e (patch) | |
tree | 65f5c54174b5cf75d9bf0dd660ca4ac7a9585c1b /app/serializers/pipeline_details_entity.rb | |
parent | b113330fab21d3da547cbee057b825f2225676c6 (diff) |
Use persisted stages to load pipelines index table
Diffstat (limited to 'app/serializers/pipeline_details_entity.rb')
-rw-r--r-- | app/serializers/pipeline_details_entity.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/serializers/pipeline_details_entity.rb b/app/serializers/pipeline_details_entity.rb index 130968a44c1..2438a5bbbdf 100644 --- a/app/serializers/pipeline_details_entity.rb +++ b/app/serializers/pipeline_details_entity.rb @@ -1,6 +1,11 @@ class PipelineDetailsEntity < PipelineEntity expose :details do - expose :legacy_stages, as: :stages, using: StageEntity + ## + # TODO consider switching to persisted stages only in pipelines table + # (not necessairly in the show pipeline page because of #23257. + # Hide this behind two feature flags - enabled / disabled and only + # gitlab-ce / everywhere. + expose :stages, as: :stages, using: StageEntity expose :artifacts, using: BuildArtifactEntity expose :manual_actions, using: BuildActionEntity end |