New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restore action handling to WC status, use data store to delete actions #487
Conversation
@@ -91,6 +91,7 @@ public function process_admin_ui() { | |||
*/ | |||
public function render_admin_ui() { | |||
$table = new ActionScheduler_ListTable( ActionScheduler::store(), ActionScheduler::logger(), ActionScheduler::runner() ); | |||
$table->process_actions(); |
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.
Should the call to process_actions()
be removed from process_admin_ui()
? It looks like this will fire twice when going to Tools > Scheduled Actions.
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.
@jeffstieler Thanks for the suggestion. The PR has been updated.
Testing now @rrennick - please update the version in EDIT: or remove the version bump if that's just for testing.. |
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.
Code looks good and tests well.
If the version bump was meant to happen in this PR, please update package.json
as well. Otherwise, please revert the version bump in action-scheduler.php
.
@thenbrent That was a typo
@jeffstieler Thanks for catching that. |
Closes #485
This PR restores the action handling to the Scheduled Actions screen under WooCommerce -> Status -> Scheduled Actions. The handling was removed in #354.
While investigating this I noticed that the bulk delete action attempts to delete the actions from the default data store. The PR updates that function to use the data store to delete the actions.
Testing
action-scheduler.php
to artificially bump the versionTools
andWooCommerce -> Status
Scheduled Actions screens work.