debian-mirror-gitlab/app/finders
2017-09-10 17:25:29 +05:30
..
admin New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
concerns New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
access_requests_finder.rb New upstream version 8.13.3+dfsg1 2016-11-03 12:29:30 +05:30
branches_finder.rb Imported Upstream version 8.10.5+dfsg 2016-08-24 12:49:21 +05:30
contributed_projects_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
environments_finder.rb New upstream version 9.2.10+dfsg 2017-08-17 22:00:37 +05:30
events_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
group_finder.rb New upstream version 9.2.10+dfsg 2017-08-17 22:00:37 +05:30
group_members_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
group_projects_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
groups_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
issuable_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
issues_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
joined_groups_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
labels_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
members_finder.rb New upstream version 9.2.10+dfsg 2017-08-17 22:00:37 +05:30
merge_requests_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
milestones_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
move_to_project_finder.rb New upstream version 8.12.1+dfsg1 2016-09-29 09:46:39 +05:30
notes_finder.rb New upstream version 9.2.10+dfsg 2017-08-17 22:00:37 +05:30
personal_access_tokens_finder.rb New upstream version 9.2.10+dfsg 2017-08-17 22:00:37 +05:30
personal_projects_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
pipeline_schedules_finder.rb New upstream version 9.2.10+dfsg 2017-08-17 22:00:37 +05:30
pipelines_finder.rb New upstream version 9.2.10+dfsg 2017-08-17 22:00:37 +05:30
projects_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
README.md Imported Upstream version 7.14.3 2015-09-11 14:41:01 +05:30
snippets_finder.rb New upstream version 9.2.10+dfsg 2017-08-17 22:00:37 +05:30
tags_finder.rb New upstream version 8.12.1+dfsg1 2016-09-29 09:46:39 +05:30
todos_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +05:30
union_finder.rb Imported Upstream version 8.8.2+dfsg 2016-06-02 11:05:42 +05:30
users_finder.rb New upstream version 9.5.4+dfsg 2017-09-10 17:25:29 +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.