Commit 1a614fb8 authored by Thong Kuah's avatar Thong Kuah

Allowlist another cross-database query callsite

parent 6073309b
...@@ -29,6 +29,7 @@ module Ci ...@@ -29,6 +29,7 @@ module Ci
# Fetch all pipelines without permission check. # Fetch all pipelines without permission check.
def all def all
::Gitlab::Database.allow_cross_joins_across_databases(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/336891') do
strong_memoize(:all_pipelines) do strong_memoize(:all_pipelines) do
next Ci::Pipeline.none unless source_project next Ci::Pipeline.none unless source_project
...@@ -42,6 +43,7 @@ module Ci ...@@ -42,6 +43,7 @@ module Ci
sort(pipelines) sort(pipelines)
end end
end end
end
private private
......
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