Fix detailed status for pipeline stage entity
This commit is contained in:
parent
ccea4727a6
commit
b33fd0ab3d
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue