BigW Consortium Gitlab

Name Last update
..
README.md Loading commit data...
contributed_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...
merge_requests_finder.rb Loading commit data...
milestones_finder.rb Loading commit data...
notes_finder.rb Loading commit data...
personal_projects_finder.rb Loading commit data...
projects_finder.rb Loading commit data...
snippets_finder.rb Loading commit data...
trending_projects_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.