debian-mirror-gitlab/app/finders
2016-06-02 11:05:42 +05:30
..
contributed_projects_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
group_projects_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
groups_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
issuable_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
issues_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
joined_groups_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
merge_requests_finder.rb Imported Upstream version 7.10.0 2015-04-26 09:18:37 +02:00
milestones_finder.rb Imported Upstream version 8.3.0+dfsg 2015-12-23 02:04:40 +05:30
notes_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
personal_projects_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
pipelines_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
projects_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
README.md Imported Upstream version 7.14.3 2015-09-11 14:41:01 +05:30
snippets_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
todos_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
trending_projects_finder.rb Imported Upstream version 8.1.0 2015-10-24 18:46:33 +05:30
union_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30

Finders

This type of classes responsible for collection items based on different conditions. To prevent lookup methods in models like this:

class Project
  def issues_for_user_filtered_by(user, filter)
    # A lot of logic not related to project model itself
  end
end

issues = project.issues_for_user_filtered_by(user, params)

Better use this:

issues = IssuesFinder.new(project, user, filter).execute

It will help keep models thiner.