diff --git a/app/serializers/pipeline_stage_entity.rb b/app/serializers/pipeline_stage_entity.rb index e4681a0a633..5ef39bafdc1 100644 --- a/app/serializers/pipeline_stage_entity.rb +++ b/app/serializers/pipeline_stage_entity.rb @@ -2,7 +2,11 @@ class PipelineStageEntity < Grape::Entity include RequestAwareEntity expose :name - expose :detailed_status, as: :status, using: StatusEntity + expose :status do |stage, options| + StatusEntity.represent( + stage.detailed_status(request.user), + options) + end expose :path do |stage| namespace_project_pipeline_path(