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/issuable_finder.rb')
-rw-r--r--app/finders/issuable_finder.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb
index 93b7292bb69..2b4e4592020 100644
--- a/app/finders/issuable_finder.rb
+++ b/app/finders/issuable_finder.rb
@@ -130,9 +130,7 @@ class IssuableFinder
end
def filter_items(items)
- # Selection by group is already covered by `by_project` and `projects` for project-based issuables
- # Group-based issuables have their own group filter methods
- items = by_project(items)
+ items = by_parent(items)
items = by_scope(items)
items = by_created_at(items)
items = by_updated_at(items)
@@ -313,7 +311,7 @@ class IssuableFinder
end
# rubocop: disable CodeReuse/ActiveRecord
- def by_project(items)
+ def by_parent(items)
# When finding issues for multiple projects it's more efficient
# to use a JOIN instead of running a sub-query
# See https://gitlab.com/gitlab-org/gitlab/-/commit/8591cc02be6b12ed60f763a5e0147f2cbbca99e1