Fix detailed status for pipeline stage entity

This commit is contained in:
Grzegorz Bizon 2016-12-15 15:59:18 +01:00
parent ccea4727a6
commit b33fd0ab3d

View file

@ -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(