BigW Consortium Gitlab

Name Last update
..
README.md Loading commit data...
access_requests_finder.rb Loading commit data...
branches_finder.rb Loading commit data...
contributed_projects_finder.rb Loading commit data...
group_projects_finder.rb Loading commit data...
groups_finder.rb Loading commit data...
issuable_finder.rb Loading commit data...
issues_finder.rb Loading commit data...
joined_groups_finder.rb Loading commit data...
labels_finder.rb Loading commit data...
merge_requests_finder.rb Loading commit data...
milestones_finder.rb Loading commit data...
move_to_project_finder.rb Loading commit data...
notes_finder.rb Loading commit data...
personal_projects_finder.rb Loading commit data...
pipelines_finder.rb Loading commit data...
projects_finder.rb Loading commit data...
snippets_finder.rb Loading commit data...
tags_finder.rb Loading commit data...
todos_finder.rb Loading commit data...
union_finder.rb Loading commit data...

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.