Closed thvitt closed 5 years ago
The use of pickle
in combination with the model that treats references as quasi-singletons is problematic here. Unpickling an object creates the object in a way that doesn’t pass the URIs and assigns the field values later. Calling Witness.get(uri)
as is done when reading the order creates a different instance of the same object.
To reproduce,
macrogen
to createtarget/macrogenesis/macrogenesis-info.zip
OTOH, the URIs in macrogenesis-info.zip/order.json do not contain duplicates. So what is wrong here?