Skip to content
Snippets Groups Projects
Commit 3f86fa46 authored by Manoj M J's avatar Manoj M J :speech_balloon:
Browse files

Simplify query for authorized groups

Simplify query for authorized groups
parent 2a756851
No related branches found
No related tags found
1 merge request!122323Simplify query for `authorized_groups_without_shared_membership`
......@@ -2403,9 +2403,10 @@ def group_callouts_by_feature_name
def authorized_groups_without_shared_membership
Group.from_union(
[
groups.select(Namespace.default_select_columns),
authorized_projects.joins(:namespace).select(Namespace.default_select_columns)
])
groups,
Group.id_in(authorized_projects.select(:namespace_id))
]
)
end
def authorized_groups_with_shared_membership
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment