Commit 617d4f99 authored by Qingyu Zhao's avatar Qingyu Zhao

Reduce cached SQL for JobsController#show

parent 2c22cf0e
......@@ -82,7 +82,9 @@ class PipelineEntity < Grape::Entity
end
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
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