diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-15 17:59:18 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-15 17:59:18 +0300 |
commit | b33fd0ab3d2b40c91effadc92663a9a618422393 (patch) | |
tree | 5a7ecd13cf8ec25d89c03e3dcb5e24b39206a81f /app/serializers | |
parent | ccea4727a6999d6abaea9e7a43bd1e015e43f1d2 (diff) |
Fix detailed status for pipeline stage entity
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/pipeline_stage_entity.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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( |