BigW Consortium Gitlab

Commit 8012abf4 by Kamil Trzcinski

Fix failures [ci skip]

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