Commit Graph

3851 Commits

Author SHA1 Message Date
oluwaseun Olorunsola
95f7e427f9 Use __ without using the WPFunctions wrapper
MAILPOET-3852
2021-11-03 13:35:18 +01:00
oluwaseun Olorunsola
1cdbf31b50 Include list column for excel subscribers export
MAILPOET-3852
2021-11-03 13:35:18 +01:00
Jan Lysý
8df2accf2e Add unit test for Scheduler
[MAILPOET-3818]
2021-11-03 13:34:35 +01:00
Jan Lysý
6a6dad5e67 Throw error when premium doesn't contain service
[MAILPOET-3833]
2021-11-03 13:34:15 +01:00
Jan Lysý
777a1bd90d Recreate entityManager in LogHandler when is closed
[MAILPOET-3833]
2021-11-03 13:34:15 +01:00
Jan Lysý
7003e8dcb7 Add test for resistance to sql error
[MAILPOET-3833]
2021-11-03 13:34:15 +01:00
Rostislav Wolny
f52d58f09d Add declare(strict_types=1); to newly added PHP files
[MAILPOET-3868]
2021-11-03 13:31:29 +01:00
Rostislav Wolny
1c0d505f27 Reintroduce reporting subscribers on settings save
It might be useful to have the count reported right after activation
so that we could potentially use those data in the shop.
[MAILPOET-3868]
2021-11-03 13:31:29 +01:00
Rostislav Wolny
95fb8bc893 Add test for SubscribersStastsReport worker
[MAILPOET-3868]
2021-11-03 13:31:29 +01:00
Rostislav Wolny
ffe291c521 Add cron worker for reporting subscriber stats
[MAILPOET-3868]
2021-11-03 13:31:29 +01:00
Rostislav Wolny
b07326aaa4 Remove reporting of subscribers count on settings save
We will report regularly once a day within a new cron worker.
[MAIPOET-3868]
2021-11-03 13:31:29 +01:00
Rostislav Wolny
c02cf639db Remove subscriber count reporting from MSS key check worker
[MAILPOET-3868]
2021-11-03 13:31:29 +01:00
Brezo Cordero
ea6eb0993d Disable activate button if tracking is disable
[MAILPOET-3840]
2021-11-02 09:12:02 +01:00
Rostislav Wolny
4ec737617b Update vlucas/phpdotenv
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
b8d72522a2 Replace deprecated doctrine methods in tests directory
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
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
09242031f8 Remove code that is not used any more
[MAILPOET-3821]
2021-10-28 15:19:27 +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
Pavel Dohnal
6ecc0c3350 Refactor IntegrationTester to Doctrine
[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
d841ca7255 Add a footer to testing email
[MAILPOET-3857]
2021-10-26 16:11:32 +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
Rostislav Wolny
a5272d58e7 Fix eslint errors in newsletter tests helper files
[MAILPOET-3752]
2021-10-18 11:09:09 +02:00
Jan Lysý
59833927b9 Increase default wait time for acceptance tests
[MAILPOET-3508]
2021-10-18 11:06:02 +02:00