Closed eecavanna closed 1 week ago
I issued the above Mongo query on a database containing data migrated using this migrator, and get 0 documents as a result; which I think is what the person that gave me that query said would be indicative of a correct migration.
Update migrator_from_10_3_0_to_10_4_0.py as follows.
For each document in the
nom_analysis_activity_set
collection, check itshas_output
field (which is a list). Its value will be a list ofid
values ofdata_object_set
documents. For each of thosedata_object_set
documents, update itswas_generated_by
field (which is a string) (if the field exists and the value is doesn't already match.[0-9]+$
) so it contains theid
of thatnom_analysis_activity_set
document (that was pointing to it).~There could be something in the
assets
folder that checks the referential integrity of this.~We can use the following mongosh query from @aclum to validate the transformed result (expecting 0 documents to be present in the result).
CC: @JamesTessmer @aclum