BigW Consortium Gitlab

Name Last update
..
README.md Loading commit data...
base_finder.rb Loading commit data...
issues_finder.rb Loading commit data...
merge_requests_finder.rb Loading commit data...
notes_finder.rb Loading commit data...
projects_finder.rb Loading commit data...

Finders

This type of classes responsible for collectiong 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.execute(project, user, filter)

It will help keep models thiner