diff options
Diffstat (limited to 'app/finders/issuable_finder.rb')
-rw-r--r-- | app/finders/issuable_finder.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb index 2409dc9d77d..8642ea11a57 100644 --- a/app/finders/issuable_finder.rb +++ b/app/finders/issuable_finder.rb @@ -125,14 +125,14 @@ 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_group(items) items = by_scope(items) items = by_created_at(items) items = by_updated_at(items) items = by_closed_at(items) items = by_state(items) - items = by_group(items) items = by_assignee(items) items = by_author(items) items = by_non_archived(items) @@ -320,11 +320,6 @@ class IssuableFinder end end - def by_group(items) - # Selection by group is already covered by `by_project` and `projects` - items - end - # rubocop: disable CodeReuse/ActiveRecord def by_project(items) if params.project? |