-
Notifications
You must be signed in to change notification settings - Fork 219
Conversation
} else { | ||
// Maybe remove existing cronjob if present because it shouldn't be needed in the environment. | ||
add_action( 'admin_init', [ $this, 'uninstall' ] ); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this part and related things because we don't to remove cron jobs, this was a preventive workaround from the first accident around lost orders.
Size Change: 0 B Total Size: 869 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-approving this.
I only have a minor concern regarding maybe_remove_cronjobs()
, which had been removed. Wouldn't the current change allow a cronjob from being created, but never removed? Even when deactivating Woo Blocks in the future, this rouge cronjob would still be there. Shouldn't we make sure that all cronjobs, which we add, will also be removed, if no longer needed?
@@ -55,7 +55,6 @@ We also have individual features or code blocks behind a feature flag, this is a | |||
|
|||
### Feature plugin flag | |||
|
|||
- Draft order and cleanup process ([PHP flag](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/e167b2c99c68e8113b4e371fefdd6f9a356ed2e8/src/Domain/Services/DraftOrders.php#L42-L51)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
When we moved Store API from the feature flag to the stable flag (so it's enabled in WooCommerce Core), we missed Draft orders, who were still behind a feature flag, this meant that if you tried to create an order via
POST /store/checkout
, in WooCommerce Core (without blocks), the order created will be apending payment
order, messing up the checkout process, and not getting validated by payment gateways.This PR has not testing instructions because we're simply enabling Draft orders in WooCommerce Core, unit tests should cover this.
Changelog