Commit a22aea49 authored by Thong Kuah's avatar Thong Kuah Committed by Kamil Trzciński

Add url for allowlists

parent 67591afb
...@@ -32,7 +32,7 @@ module Security ...@@ -32,7 +32,7 @@ module Security
end end
def execute def execute
::Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification.allow_cross_database_modification_within_transaction(url: 'URL TODO') do ::Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification.allow_cross_database_modification_within_transaction(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/350092') do
ApplicationRecord.transaction do ApplicationRecord.transaction do
TASKS.each { |task| execute_task(task) } TASKS.each { |task| execute_task(task) }
end end
......
...@@ -14,7 +14,7 @@ module Gitlab ...@@ -14,7 +14,7 @@ module Gitlab
# It also adds some logic around Group Labels/Milestones for edge cases. # It also adds some logic around Group Labels/Milestones for edge cases.
class ObjectBuilder < Base::ObjectBuilder class ObjectBuilder < Base::ObjectBuilder
def self.build(*args) def self.build(*args)
::Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification.allow_cross_database_modification_within_transaction(url: 'URL TODO') do ::Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification.allow_cross_database_modification_within_transaction(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/350091') do
::Project.transaction do ::Project.transaction do
super super
end end
......
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