Fix detailed status for pipeline stage entity
This commit is contained in:
parent
ccea4727a6
commit
b33fd0ab3d
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue