Commit f05ea33d authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'dc-use-fast-path-helpers' into 'master'

Use fast path helpers in BuildDetailsEntity

See merge request gitlab-org/gitlab!58824
parents d8ce7260 e77721cb
......@@ -28,15 +28,15 @@ class BuildDetailsEntity < JobEntity
expose :artifact, if: -> (*) { can?(current_user, :read_job_artifacts, build) } do
expose :download_path, if: -> (*) { build.locked_artifacts? || build.artifacts? } do |build|
download_project_job_artifacts_path(project, build)
fast_download_project_job_artifacts_path(project, build)
end
expose :browse_path, if: -> (*) { build.locked_artifacts? || build.browsable_artifacts? } do |build|
browse_project_job_artifacts_path(project, build)
fast_browse_project_job_artifacts_path(project, build)
end
expose :keep_path, if: -> (*) { (build.has_expired_locked_archive_artifacts? || build.has_expiring_archive_artifacts?) && can?(current_user, :update_build, build) } do |build|
keep_project_job_artifacts_path(project, build)
fast_keep_project_job_artifacts_path(project, build)
end
expose :expire_at, if: -> (*) { build.artifacts_expire_at.present? } do |build|
......
---
title: Use fast path helpers in BuildDetailsEntity
merge_request: 58824
author:
type: performance
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