Commit 7f302947 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'cablett-remove-unneeded-group-filter' into 'master'

Remove unneeded group filter

See merge request gitlab-org/gitlab!57080
parents 21d276b1 864bb697
...@@ -125,14 +125,14 @@ class IssuableFinder ...@@ -125,14 +125,14 @@ class IssuableFinder
end end
def filter_items(items) 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_project(items)
items = by_group(items)
items = by_scope(items) items = by_scope(items)
items = by_created_at(items) items = by_created_at(items)
items = by_updated_at(items) items = by_updated_at(items)
items = by_closed_at(items) items = by_closed_at(items)
items = by_state(items) items = by_state(items)
items = by_group(items)
items = by_assignee(items) items = by_assignee(items)
items = by_author(items) items = by_author(items)
items = by_non_archived(items) items = by_non_archived(items)
...@@ -320,11 +320,6 @@ class IssuableFinder ...@@ -320,11 +320,6 @@ class IssuableFinder
end end
end end
def by_group(items)
# Selection by group is already covered by `by_project` and `projects`
items
end
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def by_project(items) def by_project(items)
if params.project? if params.project?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment