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:
- Go to page '...'
- Click on button '...'
- 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.
Closing the issue based on comment shared in https://docs.google.com/spreadsheets/d/14Rh3Q1l_d1tqcxZy6wploMXQV_kSiBfamkaJzwgjt8E/edit#gid=0