Describe the bug
If a labware has been scanned into LabWhere using both the human and the machine barcodes, Sequencescape does not always show the latest location, but instead shows the latest location associated with the machine barcode. See Fresh Service ticket for example data.
FreshSerivce/RT Ticket Number
#SR-62535 Storage locations not matching
To Reproduce
Steps to reproduce the behaviour:
- Go to labware page in Sequencescape for one of the plates in the Fresh Service ticket
- See incorrect location displayed
Expected behaviour
Location displayed should be the most recent location, when taking into account entries under machine and human barcodes.
Additional context
# app/models/labware.rb
def lookup_labwhere_location
lookup_labwhere(machine_barcode) || lookup_labwhere(human_barcode)
end
Instead of the above, it should lookup location for both machine and human barcodes. If there are locations for both, take the one scanned most recently.
See Barcodes: 1D vs 2D, and 'machine' vs 'human' for context around human / machine barcodes (although mostly about tubes).
Describe the bug
If a labware has been scanned into LabWhere using both the human and the machine barcodes, Sequencescape does not always show the latest location, but instead shows the latest location associated with the machine barcode. See Fresh Service ticket for example data.
FreshSerivce/RT Ticket Number
#SR-62535 Storage locations not matching
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Location displayed should be the most recent location, when taking into account entries under machine and human barcodes.
Additional context
Instead of the above, it should lookup location for both machine and human barcodes. If there are locations for both, take the one scanned most recently.
See Barcodes: 1D vs 2D, and 'machine' vs 'human' for context around human / machine barcodes (although mostly about tubes).