2014-02-25 12:15:08 -05:00
|
|
|
# Finders::Issues class
|
|
|
|
#
|
|
|
|
# Used to filter Issues collections by set of params
|
|
|
|
#
|
|
|
|
# Arguments:
|
|
|
|
# current_user - which user use
|
|
|
|
# params:
|
|
|
|
# scope: 'created-by-me' or 'assigned-to-me' or 'all'
|
|
|
|
# state: 'open' or 'closed' or 'all'
|
|
|
|
# group_id: integer
|
|
|
|
# project_id: integer
|
|
|
|
# milestone_id: integer
|
|
|
|
# assignee_id: integer
|
|
|
|
# search: string
|
|
|
|
# label_name: string
|
|
|
|
# sort: string
|
|
|
|
#
|
2014-09-02 08:28:27 -04:00
|
|
|
class IssuesFinder < IssuableFinder
|
2014-02-25 12:15:08 -05:00
|
|
|
def klass
|
|
|
|
Issue
|
|
|
|
end
|
|
|
|
end
|