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
107cf715
Commit
107cf715
authored
Oct 26, 2021
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allowlist scope to remove spec-based list item
parent
b32663dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/models/ci/runner.rb
app/models/ci/runner.rb
+3
-1
spec/support/database/cross-join-allowlist.yml
spec/support/database/cross-join-allowlist.yml
+0
-1
No files found.
app/models/ci/runner.rb
View file @
107cf715
...
...
@@ -103,7 +103,9 @@ module Ci
project_groups
=
::
Group
.
joins
(
:projects
).
where
(
projects:
{
id:
project_id
})
hierarchy_groups
=
Gitlab
::
ObjectHierarchy
.
new
(
project_groups
).
base_and_ancestors
joins
(
:groups
).
where
(
namespaces:
{
id:
hierarchy_groups
})
joins
(
:groups
)
.
where
(
namespaces:
{
id:
hierarchy_groups
})
.
allow_cross_joins_across_databases
(
url:
'https://gitlab.com/gitlab-org/gitlab/-/issues/336433'
)
}
scope
:owned_or_instance_wide
,
->
(
project_id
)
do
...
...
spec/support/database/cross-join-allowlist.yml
View file @
107cf715
...
...
@@ -16,7 +16,6 @@
-
"
./spec/migrations/associate_existing_dast_builds_with_variables_spec.rb"
-
"
./spec/migrations/disable_job_token_scope_when_unused_spec.rb"
-
"
./spec/migrations/schedule_copy_ci_builds_columns_to_security_scans2_spec.rb"
-
"
./spec/models/ci/runner_spec.rb"
-
"
./spec/presenters/packages/detail/package_presenter_spec.rb"
-
"
./spec/requests/api/graphql/group/packages_spec.rb"
-
"
./spec/requests/api/graphql/packages/composer_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