BiologicalRecordsCentre / plantportal

Focused repo for the Plant Portal website
0 stars 0 forks source link

Sample/occurrence importer currently creating duplicate samples on Dev #6

Closed andrewvanbreda closed 1 year ago

andrewvanbreda commented 3 years ago

Using the sample/occurrence importer on the dev site currently results in sample/occurrences being duplicated during import. It doesn't do this on my own machine.

I believe this is due to the importer using two passes on the data, the first pass is supposed to not commit (it is supposed to just report error/validation messages). Essentially behind the scenes, this pass is just a normal import run, but with an extra flag sent to the Warehouse telling it to not commit the data.

I believe the Warehouse is not understanding this flag. The Test Warehouse should be running the latest Master branch which I have checked does include the required code, so am not sure why it is doing this at the moment.

andrewvanbreda commented 1 year ago

Only applies to old version of importer.