Skip to content

Commit

Permalink
added find_all method for tube rack
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsparkes committed Jan 13, 2025
1 parent 7081e89 commit 67fed60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/sequencescape/sequencescape/api/v2/tube_rack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def self.find_by(params)
Sequencescape::Api::V2::TubeRack.includes(*includes).find(**options).first
end

def self.find_all(options, includes: DEFAULT_INCLUDES)
Sequencescape::Api::V2::TubeRack.includes(*includes).where(**options).all

Check warning on line 64 in app/sequencescape/sequencescape/api/v2/tube_rack.rb

View check run for this annotation

Codecov / codecov/patch

app/sequencescape/sequencescape/api/v2/tube_rack.rb#L64

Added line #L64 was not covered by tests
end

# This method sorts the racked tubes by their coordinate, taking into account both row and column parts.
# Sorts by column first and then by row.
#
Expand Down

0 comments on commit 67fed60

Please sign in to comment.