gitlab-org--gitlab-foss/app/finders
2020-02-03 15:08:45 +00:00
..
admin
autocomplete
boards
clusters Add latest changes from gitlab-org/gitlab@master 2020-01-08 06:08:13 +00:00
concerns
projects Add latest changes from gitlab-org/gitlab@master 2020-01-30 15:09:15 +00:00
abuse_reports_finder.rb
access_requests_finder.rb
applications_finder.rb
artifacts_finder.rb
award_emojis_finder.rb
branches_finder.rb
cluster_ancestors_finder.rb
clusters_finder.rb
container_repositories_finder.rb
context_commits_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-29 15:08:59 +00:00
contributed_projects_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-24 12:09:01 +00:00
deployments_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-17 21:08:29 +00:00
environments_finder.rb Add latest changes from gitlab-org/gitlab@master 2019-12-18 18:08:04 +00:00
events_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-20 15:09:18 +00:00
fork_projects_finder.rb
git_refs_finder.rb
group_descendants_finder.rb
group_finder.rb
group_labels_finder.rb
group_members_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-16 15:08:41 +00:00
group_projects_finder.rb Add latest changes from gitlab-org/gitlab@master 2019-12-07 18:07:50 +00:00
groups_finder.rb Add latest changes from gitlab-org/gitlab@master 2019-12-17 09:07:48 +00:00
issuable_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-28 15:08:36 +00:00
issues_finder.rb Add latest changes from gitlab-org/gitlab@master 2019-12-17 09:07:48 +00:00
jobs_finder.rb
joined_groups_finder.rb
keys_finder.rb Add latest changes from gitlab-org/gitlab@master 2019-12-17 09:07:48 +00:00
labels_finder.rb
license_template_finder.rb
members_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-31 12:08:33 +00:00
merge_request_target_project_finder.rb Add latest changes from gitlab-org/gitlab@master 2019-12-17 09:07:48 +00:00
merge_requests_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-13 21:07:39 +00:00
milestones_finder.rb
notes_finder.rb
pending_todos_finder.rb
personal_access_tokens_finder.rb Add latest changes from gitlab-org/gitlab@master 2019-12-17 09:07:48 +00:00
personal_projects_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-24 12:09:01 +00:00
pipeline_schedules_finder.rb
pipelines_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-02-03 15:08:45 +00:00
projects_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-27 21:08:47 +00:00
prometheus_metrics_finder.rb
README.md
releases_finder.rb
resource_label_event_finder.rb
runner_jobs_finder.rb
sentry_issue_finder.rb Add latest changes from gitlab-org/gitlab@master 2020-01-16 21:08:24 +00:00
snippets_finder.rb
starred_projects_finder.rb
tags_finder.rb
template_finder.rb
todos_finder.rb
union_finder.rb
user_finder.rb
user_recent_events_finder.rb
users_finder.rb
users_star_projects_finder.rb
users_with_pending_todos_finder.rb

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.