Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/group_descendants_finder.rb')
-rw-r--r--app/finders/group_descendants_finder.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/finders/group_descendants_finder.rb b/app/finders/group_descendants_finder.rb
index 07f39f98b12..72ab30cf567 100644
--- a/app/finders/group_descendants_finder.rb
+++ b/app/finders/group_descendants_finder.rb
@@ -109,11 +109,7 @@ class GroupDescendantsFinder
group_ids = base_for_ancestors.except(:select, :sort).select(:id)
groups = Group.where(id: group_ids)
- if Feature.enabled?(:linear_group_descendants_finder_upto, current_user)
- groups.self_and_ancestors(upto: parent_group.id)
- else
- Gitlab::ObjectHierarchy.new(groups).base_and_ancestors(upto: parent_group.id)
- end
+ groups.self_and_ancestors(upto: parent_group.id)
end
# rubocop: enable CodeReuse/ActiveRecord