Commit 8012abf4 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix failures [ci skip]

parent 6f6119b7
......@@ -7,8 +7,8 @@ class PipelineActionEntity < Grape::Entity
expose :url do |build|
play_namespace_project_build_path(
pipeline.project.namespace,
pipeline.project,
build.project.namespace,
build.project,
build)
end
end
......@@ -7,8 +7,8 @@ class PipelineArtifactEntity < Grape::Entity
expose :url do |build|
download_namespace_project_build_artifacts_path(
pipeline.project.namespace,
pipeline.project,
build.project.namespace,
build.project,
build)
end
end
......@@ -4,12 +4,14 @@ class PipelineEntity < Grape::Entity
expose :id
expose :user, if: -> (pipeline, opts) { created?(pipeline, opts) }, using: UserEntity
expose :details, if: -> (pipeline, opts) { updated?(pipeline, opts) } do
expose :status
expose :duration
expose :finished_at
expose :stages_with_statuses, as: :stages, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineStageEntity
expose :artifacts, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineArtifactEntity
expose :manual_actions, if: -> (pipeline, opts) { updated?(pipeline, opts) }, using: PipelineActionEntity
expose :stages_with_statuses, as: :stages, using: PipelineStageEntity
expose :artifacts, using: PipelineArtifactEntity
expose :manual_actions, using: PipelineActionEntity
end
expose :flags, if: -> (pipeline, opts) { created?(pipeline, opts) } do
expose :latest?, as: :latest
......
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