Skip to content

Commit

Permalink
Merge pull request #4616 from sanger/Y24-190-support-v2-searches
Browse files Browse the repository at this point in the history
Y24-190: Support v2 searches
  • Loading branch information
StephenHulme authored Feb 11, 2025
2 parents f1b2dde + d86470e commit b90395d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/transfer/state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def self.included(base) # rubocop:todo Metrics/MethodLength
states = Array(states).map(&:to_s)

# If all of the states are present there is no point in actually adding this set of conditions because
# we're basically looking for all of the plates.
# we're basically looking for all of the tubes.
if states.sort != ALL_STATES.sort
join_options = [
# rubocop:todo Layout/LineLength
Expand Down
1 change: 1 addition & 0 deletions app/resources/api/v2/shared_behaviour/labware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module Labware
filter :updated_at_gt,
apply: lambda { |records, value, _options| records.where('labware.updated_at > ?', value[0].to_date) }
filter :include_used, apply: ->(records, value, _options) { records.include_labware_with_children(value) }
filter :state, apply: ->(records, value, _options) { records.in_state(value.flatten) }
end

# Custom methods
Expand Down

0 comments on commit b90395d

Please sign in to comment.