-
Notifications
You must be signed in to change notification settings - Fork 144
add action scheduler package via composer #3557
Conversation
4e95339
to
414b70f
Compare
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.
[15-Jan-2020 22:01:55 UTC] 3.0.2
[15-Jan-2020 22:02:02 UTC] 3.0.2
[15-Jan-2020 22:02:07 UTC] 3.0.2
[15-Jan-2020 22:02:07 UTC] 3.0.1
Testing well for me, and again really liked the messaging updates during the queue migration in AS 👏
I want to run some more tests on this branch, like do some historical imports and such, but so far this is looking and working great.
@@ -107,7 +107,7 @@ public function test_import_params() { | |||
$order_2->save(); | |||
|
|||
// Delete order stats so we can test import API. | |||
$wpdb->query( "DELETE FROM {$wpdb->posts} WHERE post_type = 'scheduled-action'" ); | |||
ReportsSync::clear_queued_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.
Nice!
@rrennick just saw the label change, is this good to test further or were you going to do some more work? |
I need to address the issue with the unit tests not passing. |
1d1b0f6
to
09af8bc
Compare
a77cb54
to
dc8fc7e
Compare
dc8fc7e
to
5f0e889
Compare
Adding a note here on the reasons for the changes to the unit tests:
@timmyc This is ready for another review. Can we add a February release to Zenhub to move this PR to? |
bin/composer-package-update.sh
Outdated
output 3 "Updating package textdomains..." | ||
|
||
# Replace text domains within packages with woocommerce | ||
find ./vendor/action-scheduler -iname '*.php' -exec sed -i.bak -e "s/'action-scheduler' /'woocommerce-admin' /g" -e "s/\"action-scheduler\" /'woocommerce-admin' /g" {} \; |
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.
We are improving it on WooCommerce core, so we avoid replacing non-translatable strings: woocommerce/woocommerce#25536
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.
@claudiosanches Thanks for pinging us with this. In case you find it useful, I added a --no-warnings
to the node command in our implementation so it wouldn't output a line for every text domain it updated.
ec36e35
to
7d6aba1
Compare
@timmyc This is updated to AS 3.1 and ready for another review. |
Is a specific version of WC required for this? I'm getting these errors after disabling the AS plugin:
|
Did you run |
Yes I ran |
@jeffstieler To proceed with this PR we would need to include |
Can you elaborate on why the autoloader isn't able to handle this use case? |
|
@rrennick guessing we might be closing this one out? |
Due to the issue with composer autoloading we didn't have time in the core release schedule to implement this. |
This PR loads Action Scheduler 3.1.0 via composer.
It removes the custom AS post store which had the priority setting code.
Detailed test instructions:
master
- https://github.com/woocommerce/action-scheduler3.1.1
https://github.com/woocommerce/action-scheduler/blob/master/action-scheduler.php#L39 (This works because plugins are loaded in alphabetical order.)composer install
Changelog Note:
Dev: Add Action Scheduler 3.1.0