Fix N+1 query in loading pipelines in merge requests
From Bullet failures in !10263
This commit is contained in:
parent
9fc17f6f4a
commit
66f91aac70
|
@ -210,7 +210,7 @@ module Ci
|
||||||
end
|
end
|
||||||
|
|
||||||
def stuck?
|
def stuck?
|
||||||
builds.pending.any?(&:stuck?)
|
builds.pending.includes(:project).any?(&:stuck?)
|
||||||
end
|
end
|
||||||
|
|
||||||
def retryable?
|
def retryable?
|
||||||
|
|
Loading…
Reference in New Issue