Commit Graph

13768 Commits

Author SHA1 Message Date
Jan Lysý
44f08cd068 Use validation for time intervals
[MAILPOET-3818]
2021-11-03 13:34:35 +01:00
Jan Lysý
024f04750a Add Parsley validator for email scheduling
[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
Jan Lysý
7003e8dcb7 Add test for resistance to sql error
[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
95fb8bc893 Add test for SubscribersStastsReport worker
[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
Rostislav Wolny
62cf852691 Replace PHP8 version of TypedCacheItem class with PHP7 compatible code
WordPress plugin repository prevents committing files that contains syntax introduced in PHP8.
[MAILPOET-3904]
2021-11-02 16:35:40 +01:00
Brezo Cordero
be77666105 Modify API re-engagement disabled message
[MAILPOET-3840]
2021-11-02 09:12:02 +01:00
Brezo Cordero
04e5905099 Fix rebase mistake
[MAILPOET-3840]
2021-11-02 09:12:02 +01:00
Brezo Cordero
54c8170b86 Use typographic apostrophe for notice
[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
Brezo Cordero
0c72f41b8d Show note if tracking is disabled
[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
c13ad00e64 Add reEngagement to settings normalisation
[MAILPOET-3856]
2021-11-01 16:10:04 +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
4fe8e54180 Update attributes removal script
We need to strip PHP8 attributes from 3rd party libraries because after minification that we do during the build
they cause that PHP code is invalid. This commit updates the regular expression used for stripping attributes
so that it covers also attributes like this one: #[\ReturnTypeWillChange].
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
4ec737617b Update vlucas/phpdotenv
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
247f90d1c2 Update consolidation/robo
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
962f233dcf Update codeception and lucatume packages
[MAILPOET-3889]
2021-10-28 15:44:18 +02: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
c8ce0d96ac Update PHPStan packages
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
8335e59a50 Add temp to ignored folders for code sniffer
The folder is created by PHPStan and contains PHPStan cache.
It doesn't cause any errors but including it makes the check much longer.

[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
64b591f70b Update php code sniffer packages
[MAILPOER-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
6824f04605 Update tools (composer and tracy)
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
b4c2c55ffd Update symfony/validator
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
352ac07d04 Update symfony/dependency-injection
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
bf13737873 Update swiftmailer/swiftmailer
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
da718b9f8e Update nesbot/carbon
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
414135bc14 Update doctrine/orm
Updating doctrine/orm required update of symfony/polyfill-php72
[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
73a9bed483 Replace deprecated doctrine methods in lib directory
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Rostislav Wolny
efde80b5c4 Update doctrine/dbal
[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
Rostislav Wolny
35271bcaf9 Update doctrine/common package
The updated sub-dependency doctrine/cache no longer contains cache implementations
so we could remove the cleanup code.
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00