diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-12 15:11:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-12 15:11:33 +0300 |
commit | 0127158127cb4f21b06ea39cc243d8ac17fc3e41 (patch) | |
tree | fa430e57fd398272df6fda9bbf9a8dd19af063f9 /app/serializers/build_details_entity.rb | |
parent | fab43fda656e091104f79668db65f7c5e2a2e68c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/serializers/build_details_entity.rb')
-rw-r--r-- | app/serializers/build_details_entity.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/build_details_entity.rb b/app/serializers/build_details_entity.rb index a34f329e9ec..741643f7989 100644 --- a/app/serializers/build_details_entity.rb +++ b/app/serializers/build_details_entity.rb @@ -57,6 +57,10 @@ class BuildDetailsEntity < Ci::JobEntity using: JobArtifactReportEntity, if: -> (*) { can?(current_user, :read_build, build) } + expose :job_annotations, + as: :annotations, + using: Ci::JobAnnotationEntity + expose :erased_by, if: -> (*) { build.erased? }, using: UserEntity expose :erase_path, if: -> (*) { build.erasable? && can?(current_user, :erase_build, build) } do |build| erase_project_job_path(project, build) |