Commit Graph

263 Commits

Author SHA1 Message Date
Rodrigo Primo
77ca869d02 Refactor UnsubscribeTokens::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
9041fdc0f8 Refactor SubscribersLastEngagement::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
857dc95058 Refactor KeyCheckWorker::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
8fcd84e03a Refactor InactiveSubscribers::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
963da3bf16 Refactor the method processTaskStrategy() of some SimpleWorker child classes
This commit refactors the method processTaskStrategy() of some
SimpleWorker child classes to use Doctrine instead of Paris. In this
commit are included all the classes that it was only necessary to change
the method signature as they were receiving a ScheduledTask object as
the first parameter but didn't use it. Now they receive a
ScheduledTaskEntity object as the first param.

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
5803fef8cd Refactor Cron\Workers\Bounce to use ScheduledTaskEntity
[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
57c80ea763 Change SimpleWorker::prepareTaskStrategy() to use Doctrine
This commit changes the method prepareTaskStrategy() in the class
SimpleWorker and all its child classes to use ScheduledTaskEntity
instead of ScheduledTask.

[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Rodrigo Primo
e69a3f9a53 Migrate method findCompletedByType() to Doctrine
[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Jan Lysý
0c0349c5aa Fix returned data from stubs
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Pavel Dohnal
5ef1f9afa1 Add an integration test
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
a303b4f04e Process queues to save statistics
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
db04687f3c Refactor to Doctrine
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
731b5e7448 Refactor to Doctrine
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
6f28228c55 Stop using a deprecated function
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Rostislav Wolny
c2c383e0b5 Add method for immediate scheduling/rescheduling cron tasks
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Rostislav Wolny
b9815c609f Refactor cron worker scheduler test to Doctrine
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Rostislav Wolny
1c4eb15f93 Refactor CronWorkerScheduler to Doctrine
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Rostislav Wolny
ebf4773eb8 Process adding last engagement time in batches
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
bb806613d7 Update last engagement time also from latest Woo order
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
8dd7c240bb Add worker for updating last engagement from opens and clicks
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Jan Lysý
7e7038deb3 Fix integration test fot DaemonHttpRunner
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Rostislav Wolny
65b834a9ff Update renamed NotCamelCaps rule
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Jan Lysý
4c67e97206 Fix parameters in integration tests
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
c9636ebf1b Use Newsletter\Links as service
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
4449f76901 Remove static calling from Links
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
2e6e042914 Add test cases for SendingThrottlingHandler
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Jan Lysý
aba99b84f2 Remove reading batch size from constructor
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Jan Lysý
3126998212 Add integration test for SendingThrottlingHandler
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Jan Lysý
9cba4efcee Fix dependecies in tests
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Jan Lysý
6a9e692f64 Add service for automatic decrease sending batch size
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Pavel Dohnal
025d588591 Fix tests
[MAILPOET-3525]
2021-04-26 13:46:23 +02:00
Rostislav Wolny
3d2c62fc16 Unify list vs segment naming with a rest of codebase
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
bbd4cb98f8 Skip empty subscribers batches during sending
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
5331d76c79 Add error notice for sending newsletter with deleted list
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
b3da3ec1bc Pause running tasks that have deleted or trashed segments
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
605005dc08 Use doctrine for cleanup in SendingQueueWorker test
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
de210991a4 Refactor creation of sending queue worker in test
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Pavel Dohnal
98ee40a203 Use doctrine entity in newsletter task test
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Pavel Dohnal
82bf183a6c Use doctrine entity in posts test
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Pavel Dohnal
caad80a09c Use doctrine entity to truncate table in tests
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Jan Lysý
cd776fe0cf Add tries when CronHelpes ping ends with timeout
[MAILPOET-3413]
2021-02-15 09:34:38 +01:00
Jan Lysý
c9004553c3 Remove phpstan errors from integration Cron tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
84f2d5de0b Add test on nextRunDate in KeyCheckWorker
[MAILPOET-3271]
2021-01-18 10:26:59 +01:00
Jan Lysý
e66ad88146 Set newsletter Entity when stdClass instance given
[MAILPOET-3356]
2021-01-11 11:15:33 +01:00
Pavel Dohnal
fcbfd6fb68 Refactor shortcode categories to doctrine
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
Rostislav Wolny
645f888186 Refactor WP Users segment controller to injectable service
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
0bbe65fab7 Remove default form
[MAILPOET-3238]
2020-10-27 17:34:43 +01:00
Rostislav Wolny
8d6855a0f0 Update integration tests verification method call
[MAILPOET-3203]
2020-10-21 16:16:42 +02:00
Rostislav Wolny
2352b08a3b Update Carbon usage in tests
[MAILPOET-3232]
2020-10-21 12:33:50 +02:00
Rostislav Wolny
54727ad9a2 Fix integration tests to work with updated codeception/verify
[MAILPOET-3203]
2020-10-20 13:18:43 +02:00