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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-25 15:10:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-25 15:10:19 +0300
commite5d3d8c323872cb5dee33c5388b3157294c30343 (patch)
tree8d954820c1f876c9df58fc7ac06a181782822db4 /app/models/namespaces/traversal/linear_scopes.rb
parent45760607bc053b7379f81edd5ea91dd2a6471522 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/namespaces/traversal/linear_scopes.rb')
-rw-r--r--app/models/namespaces/traversal/linear_scopes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/namespaces/traversal/linear_scopes.rb b/app/models/namespaces/traversal/linear_scopes.rb
index f4dc69395c8..67c67fc53ed 100644
--- a/app/models/namespaces/traversal/linear_scopes.rb
+++ b/app/models/namespaces/traversal/linear_scopes.rb
@@ -63,7 +63,11 @@ module Namespaces
# Make sure we drop the STI `type = 'Group'` condition for better performance.
# Logically equivalent so long as hierarchies remain homogeneous.
def without_sti_condition
- unscope(where: :type)
+ if Feature.enabled?(:include_sti_condition, default_enabled: :yaml)
+ all
+ else
+ unscope(where: :type)
+ end
end
def order_by_depth(hierarchy_order)