ouhft / COPE

Project Repository for Work Package 4 of the COPE Transplant Trial
https://cope.nds.ox.ac.uk
1 stars 0 forks source link

WP7 Rematch sample data on update #296

Closed marshalc closed 7 years ago

marshalc commented 7 years ago

Add a method by which WP4 sample records are relinked to WP7 data when updated. Presently matching is only done when WP7 data is uploaded.

marshalc commented 7 years ago

Working through the logic of this, realising that relinking may mean unlinking if a barcode is deleted; We don't account for samples being deleted from the WP7 data in the import - rather we assume it is cumulative. This means we're also doing a slower get_or_create() call in the import.

Smarter option is to:

marshalc commented 7 years ago

Rework of the import process done. Tested CLI and UI paths. Of note (and obviously) the IDs that display in the Unmatched Samples report are ramping up dramatically.

Now to fix the save and relink process

marshalc commented 7 years ago

Relink process working for all sample types