Commit 67e46e6f authored by Grzegorz Bizon's avatar Grzegorz Bizon 🔴

Integrate new stages into ci pipeline serializer

parent 0f40ae5f
Pipeline #5335170 failed with stages
in 5508 minutes and 48 seconds
......@@ -15,7 +15,7 @@ class PipelineEntity < Grape::Entity
expose :detailed_status, as: :status, using: StatusEntity
expose :duration
expose :finished_at
expose :stages_with_statuses, as: :stages, using: PipelineStageEntity
expose :stages, using: PipelineStageEntity
expose :artifacts, using: PipelineArtifactEntity
expose :manual_actions, using: PipelineActionEntity
end
......
class PipelineStageEntity < Grape::Entity
include RequestAwareEntity
expose :name do |stage|
stage.name
end
expose :status do |stage|
stage.status || 'not found'
end
expose :name
expose :detailed_status, as: :status, using: StatusEntity
expose :url do |stage|
expose :path do |stage|
namespace_project_pipeline_path(
stage.pipeline.project.namespace,
stage.pipeline.project,
......
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