Class: MergeRequestsFinder

Inherits:
IssuableFinder show all
Defined in:
app/finders/merge_requests_finder.rb

Overview

Finders::MergeRequest class

Used to filter MergeRequests 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

Constant Summary

Constants inherited from IssuableFinder

IssuableFinder::NONE

Instance Attribute Summary

Attributes inherited from IssuableFinder

#current_user, #params

Instance Method Summary collapse

Methods inherited from IssuableFinder

#assignee, #assignee?, #author, #author?, #execute, #filter_by_no_label?, #filter_by_no_milestone?, #group, #initialize, #labels, #labels?, #milestones, #milestones?, #project, #project?, #projects, #search

Constructor Details

This class inherits a constructor from IssuableFinder

Instance Method Details

#klassObject


19
20
21
# File 'app/finders/merge_requests_finder.rb', line 19

def klass
  MergeRequest
end