Rostislav Wolny
dd0a19a314
Add BC for importing older exported templates
...
We allow exporting templates as JSON and templates exported from the older plugin versions use thumbnail key for storing the image data.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b10bb31321
Add cron job for generating/re-generating template thumbnail files
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
58bcca67ed
Allow saving only base64 encoded jpeg
...
The tool that we use on the frontend generates jpegs. This check adds a protection against saving different type of data.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
6cfcf4b5b5
Add image compression when saving the newsletter template image
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
aed122f4a2
Update domain of the thumbnail in case the site domain changed
...
This handle cases when admin changes the site URL.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
7fc55cf41c
Fix namespace in NewsletterTemplatesRepository test
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
2bb74c6302
Add service for saving templates base64 data to image files
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b51f7b2d0e
Save new templates image data to the new columns
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
wxa
57f4468efc
Fix 'Enable auto-updates' link missing when Premium is up-to-date
...
[MAILPOET-3921]
2021-11-08 11:40:53 +01:00
Rostislav Wolny
4a76827a77
Fix fetching count of segments with multiple filters
...
We needed to get number of rows which meet the condition.
I couldn't use DQL since it doesn't allow a subquery in FROM
so I rewrote the query using DBAL level query builder.
[MAILPOET-3922]
2021-11-08 11:34:56 +01:00
Brezo Cordero
9da404477b
Improve file path on test
...
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
Brezo Cordero
79021fcd19
Check types on test
...
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
Brezo Cordero
534b8f085d
Do not replace quotes with Unicode in ALC titles
...
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
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ý
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
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
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