Commit 0a3f158c authored by James Lopez's avatar James Lopez

Merge branch '231467-reduce-cached-query-jobscontroller-show' into 'master'

Reduce cached SQL for JobsController#show

Closes #231467

See merge request gitlab-org/gitlab!43559
parents 950ee58e 617d4f99
...@@ -82,7 +82,9 @@ class PipelineEntity < Grape::Entity ...@@ -82,7 +82,9 @@ class PipelineEntity < Grape::Entity
end end
expose :failed_builds, if: -> (*) { can_retry? }, using: JobEntity do |pipeline| expose :failed_builds, if: -> (*) { can_retry? }, using: JobEntity do |pipeline|
pipeline.failed_builds pipeline.failed_builds.each do |build|
build.project = pipeline.project
end
end end
private private
......
---
title: Reduce cached SQL for JobsController#show
merge_request: 43559
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