woocommerce/plugins
Vedanshu Jain c6d6a271c0
[HPOS] Backfill to post table only after order has persisted in orders table. (#39196)
* Save order object before persisting data.

Earlier we were backfilling order before updating them in the orders table. This would cause an issue where if there is any method that reads the DB again before backfilling it would read the stale record. Additionally, there is risk of data not being written to order table, but still backfilled.

Changing the order to backfill later fix this issue since if something reads the DB again during backfill, it will still read the latest record.

* Add changelog.

* Add unit tests.

* Coding standard fixes.
2023-07-12 14:41:15 -07:00
..
woo-ai Incorporate additional product data to generate AI description (#39150) 2023-07-10 23:35:03 +03:00
woocommerce [HPOS] Backfill to post table only after order has persisted in orders table. (#39196) 2023-07-12 14:41:15 -07:00
woocommerce-admin Introduce the add and edit view Tracks events in the new form (#39186) 2023-07-12 16:01:06 -04:00
woocommerce-beta-tester Update `wp-env` to `8.2.0` (#39100) 2023-07-06 10:06:39 -07:00
woocommerce-docs WooCommerce Docs: Support Gutenberg block conversion with CommonMark, add some basic unit tests. (#39096) 2023-07-12 19:29:15 +12:00