Commit b33fd0ab authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix detailed status for pipeline stage entity

parent ccea4727
...@@ -2,7 +2,11 @@ class PipelineStageEntity < Grape::Entity ...@@ -2,7 +2,11 @@ class PipelineStageEntity < Grape::Entity
include RequestAwareEntity include RequestAwareEntity
expose :name 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| expose :path do |stage|
namespace_project_pipeline_path( namespace_project_pipeline_path(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment