sanger / unified_warehouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DPL-304 [BUG] Stock resources don't allow sample removal [C=?, V=?]

JamesGlover opened this issue · comments

Describe the bug
Given a stock_resource (eg a well) with id 60278017 registered with samples, the broadcast of the following message (assumign a more recent timestamp than existing records) should result in the records being removed. (Note the empty sample array)

{"stock_resource"=>{"stock_resource_uuid"=>"93860e6e-940f-11ec-89a3-fa163eea3084", "stock_resource_id"=>60278017, "created_at"=>Tue, 22 Feb 2022 18:45:16 GMT +00:00, "updated_at"=>Wed, 23 Feb 2022 13:12:50 GMT +00:00, "labware_type"=>"well", "labware_coordinate"=>"A1", "machine_barcode"=>"DN928960C", "human_barcode"=>"DN928960C", "concentration"=>nil, "initial_volume"=>nil, "current_volume"=>nil, "snp_count"=>nil, "pico_pass"=>"ungraded", "gel_pass"=>nil, "samples"=>[]}, "lims"=>"SQSCP"}

However this does not appear to be the case, and the existing record remain untouched.

RT Ticket Number
If applicable

To Reproduce
Steps to reproduce the behaviour:

  1. Go to page '...'
  2. Click on button '...'
  3. See error

Expected behaviour
What was expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Windows or Mac?
  • Browser Chrome, Firefox, Safari or other?
  • Browser version (use 'About' to look up)?

Additional context
Add any other context about the problem here.