Commit Graph

1259 Commits

Author SHA1 Message Date
Rostislav Wolny
503283fa63 Provide array cache implementation
doctrine/cache 2.0 no longer provides implementations of caches. It provides only interfaces.
We need only PHP array cache so I chose to implement this simple cache instead of introducing
new cache library.
[MAILPOET-3892]
2021-10-28 15:44:18 +02:00
Pavel Dohnal
f1101f22dd Delete duplicities in the code
The old model did update already created data
But doctrine tried to create a new row but it failed
because of duplicity. We create a subscriber row
using a hook.

[MAILPOET-3821]
2021-10-28 15:19:27 +02:00
Jan Lysý
6e6ba3e7a1 Use new signature of the dynamicSegmentFilterData constructor
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Jan Lysý
cc05b945b4 Use new properties in repository
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Jan Lysý
8d2eed4f71 Add integration test
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Pavel Dohnal
c4037776f7 Fix newly found phpstan errors
[MAILPOET-3792]
2021-10-27 13:29:12 +02:00
wxa
188657a5fb Move StatisticsUnsubscribeEntity creation to tests
[MAILPOET-3819]
2021-10-27 11:24:22 +02:00
wxa
bacfd3c4dc Remove usages of StatisticsUnsubscribes model
[MAILPOET-3819]
2021-10-27 11:24:22 +02:00
Rodrigo Primo
ba15b9b251 Move ScheduledTask::findFutureScheduledByType() to ScheduledTasksRepository
Now that all other methods that use ScheduledTask::findByTypeAndStatus()
were moved to ScheduledTasksRepository, we can move
findFutureScheduledByType() as well and delete
ScheduledTask::findByTypeAndStatus().

[MAILPOET-3845]
2021-10-26 16:50:27 +02:00
Pavel Dohnal
0d70174737 Only do validation if MSS is active
[MAILPOET-3857]
2021-10-26 16:11:32 +02:00
Pavel Dohnal
813d43f857 Validate if newsletter has an unsubscribe link
[MAILPOET-3857]
2021-10-26 16:11:32 +02:00
Rodrigo Primo
2a269edb40 Add assertInstanceOf() check to remove @phpstan-ignore-line comments
[MAILPOET-3844]
2021-10-25 14:17:21 +02:00
Rodrigo Primo
498ceabc8c Refactor CronWorkerRunner to use Doctrine instead of Paris
[MAILPOET-3844]
2021-10-25 14:17:21 +02:00
Rodrigo Primo
2c78db9e04 Refactor ScheduledTasks::rescheduleProgressively() to use Doctrine
[MAILPOET-3844]
2021-10-25 14:17:21 +02:00
Rodrigo Primo
82d4b8cb23 Stop using the old ScheduledTask model in CronWorkerSchedulerTest.php
[MAILPOET-3844]
2021-10-25 14:17:21 +02:00
Rodrigo Primo
c6b008ba66 Refactor CronWorkerScheduler::reschedule() to use Doctrine
[MAILPOET-3844]
2021-10-25 14:17:21 +02:00
Pavel Dohnal
aec965f4f7 Refactor WooCommercePurchasesTest to Doctrine
[MAILPOET-3814]
2021-10-25 13:08:17 +02:00
Pavel Dohnal
c93ffb1fc3 Refactor WooCommerceOrdersTest to Doctrine
[MAILPOET-3814]
2021-10-25 13:08:17 +02:00
Pavel Dohnal
aaa24d086b Use Doctrine in WooCommercePurchases class
[MAILPOET-3814]
2021-10-25 13:08:17 +02:00
Pavel Dohnal
cfa87a165d Remove old outdated code
[MAILPOET-3814]
2021-10-25 13:08:17 +02:00
Rostislav Wolny
47840f9dfc Enqueue re-engagement subscribers list by list
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
af7c9d27ba Add condition for cases when subscribers received only one email
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
9aae441d99 Update queue counts or delete scheduled task
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
bafb41c94e Refactor re-engagement scheduling code to more methods
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
3c5a368c2c Add scheduling of re-engagement emails
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
23278bd785 Add re-engagement email scheduling cron job and dummy scheduler
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Brezo Cordero
00e901cbea Add back check on tests
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Brezo Cordero
cea0e98422 Add back check on tests
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Brezo Cordero
ff372667c2 Do not subscribe on synchronizeGuestCustomer
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Brezo Cordero
910e8fb3a7 Add optin option to test synchronize guest
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Jan Lysý
1701229a10 Add a full stop to messages where was missing
[MAILPOET-3846]
2021-10-18 11:03:50 +02:00
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
7d87b042e8 Add factory method to create ScheduledTasks
[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
Pavel Dohnal
709b4d8fcd Add more checks to the test
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Pavel Dohnal
1aa93d1b3c Add a new test for creating a custom field
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Pavel Dohnal
04c2061c12 Move the tests to a separate file
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Pavel Dohnal
518c33187f Move custom fields methods to a separate file
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Jan Lysý
76ff8bba1a Add test for replacing paragraph class
[MAILPOET-3474]
2021-10-04 10:19:39 +02:00
Brezo Cordero
7f7903e55c Allow reply-to with only address
[MAILPOET-3812]
2021-10-04 09:36:29 +02:00
Jan Lysý
8aad2a8126 Refactor InactiveSubscribersControllerTest to Doctrine
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Jan Lysý
93e038371d Delete redundant test
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Jan Lysý
2175a096e4 Add setting last_engagement_at
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Jan Lysý
0c0349c5aa Fix returned data from stubs
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00