Pavel Dohnal
9229ed77d8
Refactor to doctrine
...
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
f5614ed2bd
Refactor test to doctrine
...
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Oluwaseun Olorunsola
274abc09fc
Fixed failing test and default select uncheck not saving
...
[MAILPOET-3894]
2021-11-10 09:42:15 +01:00
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
oluwaseun Olorunsola
7dea96cb90
Restore deleted UnitTester.php file due to lint check failing on Circleci
...
We discovered that Codeception will regenerate the file during unit testing. Unfortunately, the regenerated file fails lint check which prevents the build from passing on Circleci
We restored the file and left it empty
[MAILPOET-3822]
2021-11-08 11:26:23 +01:00
oluwaseun Olorunsola
1db12e5ce2
Deleted UnitTester.php file due to it not been used
...
[MAILPOET-3822]
2021-11-08 11:26:23 +01:00
oluwaseun Olorunsola
d5c510cd08
Remove the method \UnitTester::generateSubscribers
...
[MAILPOET-3822]
2021-11-08 11:26:23 +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
Pavel Dohnal
b30a8de9ca
Fix default confirmation message missing in new forms
...
[MAILPOET-3853]
2021-11-08 09:58:06 +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ý
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