Skip to content

Y26-149 - [BUG] Show correct location, when LabWhere has entries under both human and machine barcodes #5761

@KatyTaylor

Description

@KatyTaylor

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:

  1. Go to labware page in Sequencescape for one of the plates in the Fresh Service ticket
  2. 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).

Metadata

Metadata

Assignees

Labels

BugBug in codeSize: SSmall - low effort & risk

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions