The order migration logic lacked proper support for populating addresses. The long-term fix is to pull the address information from the shopify export but the quick fix is to pull it from the User model directly. The if-else logic for populating addresses was also faulty and caused silent exceptions which caused a new (usually duplicate) address to be created when the order was saved (not sure how this was even possible...)
... order and fixes address population logic
What's this PR do?
The order migration logic lacked proper support for populating addresses. The long-term fix is to pull the address information from the shopify export but the quick fix is to pull it from the User model directly. The if-else logic for populating addresses was also faulty and caused silent exceptions which caused a new (usually duplicate) address to be created when the order was saved (not sure how this was even possible...)