debian-mirror-gitlab/app/finders
2021-01-30 21:13:34 +05:30
..
admin New upstream version 13.1.0 2020-06-23 00:09:42 +05:30
alert_management New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
autocomplete New upstream version 12.10.0 2020-04-22 19:07:51 +05:30
boards New upstream version 12.1.11 2019-09-30 21:07:59 +05:30
ci New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
clusters New upstream version 13.0.0 2020-05-24 23:13:21 +05:30
concerns New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
design_management New upstream version 13.4.6 2020-11-24 15:15:51 +05:30
issuable_finder New upstream version 13.2.1 2020-08-09 17:44:08 +05:30
issues_finder New upstream version 13.2.1 2020-08-09 17:44:08 +05:30
merge_requests New upstream version 13.5.5 2021-01-30 21:13:32 +05:30
metrics New upstream version 13.0.0 2020-05-24 23:13:21 +05:30
packages New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
projects New upstream version 13.0.0 2020-05-24 23:13:21 +05:30
security New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
abuse_reports_finder.rb New upstream version 12.5.4 2019-12-26 22:10:19 +05:30
access_requests_finder.rb New upstream version 11.4.9+dfsg 2018-12-05 23:21:45 +05:30
applications_finder.rb New upstream version 11.5.3+dfsg 2018-12-13 13:39:08 +05:30
award_emojis_finder.rb New upstream version 12.9.2 2020-04-08 14:13:33 +05:30
branches_finder.rb New upstream version 13.2.1 2020-08-09 17:44:08 +05:30
cluster_ancestors_finder.rb New upstream version 11.7.5 2019-02-15 15:39:39 +05:30
clusters_finder.rb New upstream version 11.5.3+dfsg 2018-12-13 13:39:08 +05:30
container_repositories_finder.rb New upstream version 13.0.0 2020-05-24 23:13:21 +05:30
context_commits_finder.rb New upstream version 13.3.8 2020-10-24 23:57:45 +05:30
contributed_projects_finder.rb New upstream version 12.8.6 2020-03-13 15:44:24 +05:30
deployments_finder.rb New upstream version 12.8.6 2020-03-13 15:44:24 +05:30
environment_names_finder.rb New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
environments_finder.rb New upstream version 12.10.0 2020-04-22 19:07:51 +05:30
events_finder.rb New upstream version 13.2.1 2020-08-09 17:44:08 +05:30
feature_flags_finder.rb New upstream version 13.4.6 2020-11-24 15:15:51 +05:30
feature_flags_user_lists_finder.rb New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
fork_projects_finder.rb New upstream version 11.4.9+dfsg 2018-12-05 23:21:45 +05:30
fork_targets_finder.rb New upstream version 13.4.6 2020-11-24 15:15:51 +05:30
freeze_periods_finder.rb New upstream version 13.0.0 2020-05-24 23:13:21 +05:30
git_refs_finder.rb New upstream version 12.5.4 2019-12-26 22:10:19 +05:30
group_descendants_finder.rb New upstream version 12.5.4 2019-12-26 22:10:19 +05:30
group_finder.rb New upstream version 11.4.9+dfsg 2018-12-05 23:21:45 +05:30
group_members_finder.rb New upstream version 13.5.5 2021-01-30 21:13:32 +05:30
group_projects_finder.rb New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
groups_finder.rb New upstream version 13.5.5 2021-01-30 21:13:32 +05:30
issuable_finder.rb New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
issues_finder.rb New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
joined_groups_finder.rb New upstream version 11.3.10+dfsg 2018-11-20 20:47:30 +05:30
keys_finder.rb New upstream version 13.5.5 2021-01-30 21:13:32 +05:30
labels_finder.rb New upstream version 13.4.6 2020-11-24 15:15:51 +05:30
license_template_finder.rb New upstream version 12.10.0 2020-04-22 19:07:51 +05:30
members_finder.rb New upstream version 13.4.6 2020-11-24 15:15:51 +05:30
merge_request_target_project_finder.rb New upstream version 12.6.1 2020-01-01 13:55:28 +05:30
merge_requests_finder.rb New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
milestones_finder.rb New upstream version 13.5.5 2021-01-30 21:13:32 +05:30
notes_finder.rb New upstream version 13.2.1 2020-08-09 17:44:08 +05:30
pending_todos_finder.rb New upstream version 11.5.3+dfsg 2018-12-13 13:39:08 +05:30
personal_access_tokens_finder.rb New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
personal_projects_finder.rb New upstream version 12.8.6 2020-03-13 15:44:24 +05:30
projects_finder.rb New upstream version 13.5.5 2021-01-30 21:13:32 +05:30
prometheus_metrics_finder.rb New upstream version 12.5.4 2019-12-26 22:10:19 +05:30
protected_branches_finder.rb New upstream version 12.8.6 2020-03-13 15:44:24 +05:30
README.md New upstream version 13.5.5 2021-01-30 21:13:32 +05:30
releases_finder.rb New upstream version 13.5.5 2021-01-30 21:13:32 +05:30
resource_milestone_event_finder.rb New upstream version 13.2.1 2020-08-09 17:44:08 +05:30
resource_state_event_finder.rb New upstream version 13.2.1 2020-08-09 17:44:08 +05:30
sentry_issue_finder.rb New upstream version 12.8.6 2020-03-13 15:44:24 +05:30
serverless_domain_finder.rb New upstream version 12.9.2 2020-04-08 14:13:33 +05:30
snippets_finder.rb New upstream version 13.2.1 2020-08-09 17:44:08 +05:30
starred_projects_finder.rb New upstream version 13.4.7 2020-12-08 15:28:05 +05:30
tags_finder.rb New upstream version 12.5.4 2019-12-26 22:10:19 +05:30
template_finder.rb New upstream version 13.3.8 2020-10-24 23:57:45 +05:30
todos_finder.rb New upstream version 13.3.8 2020-10-24 23:57:45 +05:30
union_finder.rb New upstream version 11.4.9+dfsg 2018-12-05 23:21:45 +05:30
uploader_finder.rb New upstream version 13.1.0 2020-06-23 00:09:42 +05:30
user_finder.rb New upstream version 12.6.1 2020-01-01 13:55:28 +05:30
user_group_notification_settings_finder.rb New upstream version 13.4.6 2020-11-24 15:15:51 +05:30
user_groups_counter.rb New upstream version 13.6.5 2021-01-30 21:13:34 +05:30
user_recent_events_finder.rb New upstream version 13.2.8 2020-09-03 11:15:55 +05:30
users_finder.rb New upstream version 13.4.6 2020-11-24 15:15:51 +05:30
users_star_projects_finder.rb New upstream version 12.2.8 2019-10-12 21:52:04 +05:30
users_with_pending_todos_finder.rb New upstream version 11.5.3+dfsg 2018-12-13 13:39:08 +05:30

Finders

These types of classes are responsible for retrieving collection items based on different conditions. They prevent lookup methods in models like this:

class Project < ApplicationRecord
  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)

The GitLab approach is to use a Finder:

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

It will help keep models thinner.