Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d857c53f
Commit
d857c53f
authored
Oct 13, 2021
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use allow_cross_joins_across_databases helper
parent
cf8a0521
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ee/lib/ee/gitlab/background_migration/populate_status_column_of_security_scans.rb
...und_migration/populate_status_column_of_security_scans.rb
+4
-1
spec/support/database/cross-join-allowlist.yml
spec/support/database/cross-join-allowlist.yml
+0
-1
No files found.
ee/lib/ee/gitlab/background_migration/populate_status_column_of_security_scans.rb
View file @
d857c53f
...
...
@@ -40,7 +40,10 @@ module EE
def
update_batch
(
batch_start
)
sql
=
format
(
UPDATE_SQL
,
start_id:
quote
(
batch_start
),
end_id:
quote
(
batch_start
+
UPDATE_BATCH_SIZE
-
1
))
result
=
execute
(
sql
)
result
=
::
Gitlab
::
Database
.
allow_cross_joins_across_databases
(
url:
'https://gitlab.com/gitlab-org/gitlab/-/issues/340017'
)
do
execute
(
sql
)
end
log_info
(
'Records have been updated'
,
count:
result
.
cmd_tuples
)
end
...
...
spec/support/database/cross-join-allowlist.yml
View file @
d857c53f
...
...
@@ -13,7 +13,6 @@
-
"
./ee/spec/lib/ee/gitlab/background_migration/migrate_security_scans_spec.rb"
-
"
./ee/spec/lib/ee/gitlab/background_migration/populate_latest_pipeline_ids_spec.rb"
-
"
./ee/spec/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column_spec.rb"
-
"
./ee/spec/lib/ee/gitlab/background_migration/populate_status_column_of_security_scans_spec.rb"
-
"
./ee/spec/lib/ee/gitlab/background_migration/populate_uuids_for_security_findings_spec.rb"
-
"
./ee/spec/lib/ee/gitlab/background_migration/populate_vulnerability_feedback_pipeline_id_spec.rb"
-
"
./ee/spec/lib/ee/gitlab/usage_data_spec.rb"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment