Rostislav Wolny
0113402bce
Schedule template images check/regeneration within activation
...
[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
797f1d76ae
Update templates API to save template images as files
...
[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
Rostislav Wolny
f5e4bab40b
Migrate base64 template images data to new column
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
bd222a4c32
Add column for storing template thumbnail data
...
We will use the current column for saving URL of the image, but we want to keep base64 data so that we are able to re-create the image file. Base64 image is generated on the frontend and we can't regenerate it on the backend.
[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
534b8f085d
Do not replace quotes with Unicode in ALC titles
...
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
Jan Lysý
7ecddae1f5
Improve error message
...
[MAILPOET-3865]
2021-11-08 10:15:35 +01:00
Pavel Dohnal
b30a8de9ca
Fix default confirmation message missing in new forms
...
[MAILPOET-3853]
2021-11-08 09:58:06 +01:00
Jan Lysý
4d32cf2f5d
Add BC compatibility for getters
...
If a migration to new columns wasn't executed correctly, we want to be sure that getters return the correct value.
[MAILPOET-3910]
2021-11-04 12:03:24 +01:00
Jan Lysý
22288431b7
Fix version for migration data for dynamic filters
...
[MAILPOET-3910]
2021-11-04 12:03:24 +01:00
wxa
d8bfcb64bb
Replace wrong placeholders in translatable strings
...
[MAILPOET-3863]
2021-11-03 23:11:11 +01:00
Jan Lysý
657b80badc
Allow loading CSS for Woo Payments
...
[MAILPOET-3854]
2021-11-03 13:36:09 +01:00
Jan Lysý
83d3931d63
Allow loading CSS for Automate Woo
...
[MAILPOET-3854]
2021-11-03 13:36:09 +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ý
69da013483
Fix condition in Scheduler
...
[MAILPOET-3818]
2021-11-03 13:34:35 +01:00
Jan Lysý
fdd8926991
Add check if scheduled time is out of MySQL timestamp range
...
[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ý
4fc03376fd
Make EntityManagerFactory public
...
[MAILPOET-3833]
2021-11-03 13:34:15 +01:00
Jan Lysý
8d2cd8e476
Add listeners cleanup
...
[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
Rostislav Wolny
7951d4b07b
Add logging of failed stats updates
...
[MAILPOET-3868]
2021-11-03 13:31:29 +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
8028ce9283
Add stats worker tasks checks to WordPress cron type trigger
...
[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
oluwaseun Olorunsola
2d32e5013e
Fixed uncheck status not saved in Manage subscriptions page
...
Please note: Mandatory (required) checkbox Fields can not be Empty. This means the checkbox field can not be uncheck by the user. The admin can still control the status of the checkbox
[MAILPOET-3858]
2021-11-03 11:30:52 +01:00
Brezo Cordero
be77666105
Modify API re-engagement disabled message
...
[MAILPOET-3840]
2021-11-02 09:12:02 +01:00
Brezo Cordero
ea6eb0993d
Disable activate button if tracking is disable
...
[MAILPOET-3840]
2021-11-02 09:12:02 +01:00
Brezo Cordero
f42d3aac5e
Do not allow activation with toggle if no tracking
...
[MAILPOET-3743]
2021-11-02 09:12:02 +01:00
Brezo Cordero
21b9ae9f2e
Show re-engagement emails notice after saving
...
[MAILPOET-3743]
2021-11-02 09:12:02 +01:00
Jan Lysý
e828546fa9
Fix getting segment count with multiple filters for empty table
...
Method getSingleScalarResult throws an exception when a query returns no rows.
I used the method getOneOrNullResult instead.
[MAILPOET-3902]
2021-11-02 09:07:42 +01:00
Pavel Dohnal
39fe83b49c
Create a re-engagement page
...
[MAILPOET-3856]
2021-11-01 16:10:04 +01:00
Pavel Dohnal
49e98ea88e
Add settings for re-engagement page
...
[MAILPOET-3856]
2021-11-01 16:10:04 +01:00
Rostislav Wolny
04052d7d9c
Schedule last engagement detection again for the new update
...
[MAILPOET-3892]
2021-11-01 10:54:43 +01:00
Rostislav Wolný
586443e13c
Fix scheduling tasks on activation
...
[MAILPOET-2686]
Co-authored-by: brezocordero <brezo.cordero@automattic.com >
2021-11-01 10:54:43 +01:00
Rostislav Wolny
5490b9e2a2
Fix PHPStan error
...
We create $values array in the same method and its count is always multiple of 3
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
73a9bed483
Replace deprecated doctrine methods in lib directory
...
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
86e938b46e
Provide PSR array cache and switch annotation reader to it
...
The annotation reader was using CachedReader which has been deprecated so we need to switch to PsrCachedReader
Since 2.0 doctrine/cache no longer provides implementations of caches so I also needed to implement a simple PSR array cache.
[MAILPOET-3892]
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
Jan Lysý
81bfcc4247
Remove code for backward compatibility
...
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00