Commit Graph

21439 Commits

Author SHA1 Message Date
01afa2ef31 Update Sender Domain page banners
Remove unused notices displayed before enforcement date.

[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
3f8c0f2bc6 Remove restrictionsApply function
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
bd75f74cb5 Remove Enable Automations notice
[MAILPOET-5883]
2024-02-05 08:56:34 +02:00
41dff5f95a Move tabConfig so translations work
[MAILPOET-5852]
2024-02-02 13:16:44 +01:00
b3bd371a27 Make domain authentication notices translateable
[MAILPOET-5852]
2024-02-02 13:16:44 +01:00
f09ddaff1e Disable how-to instructions under the FormTokenField
These strings are not translateable for us at the moment. Therefore I disabled them

[MAILPOET-5852]
2024-02-02 13:16:44 +01:00
4a96f3dfea Make shortcode text translateable
[MAILPOET-5852]
2024-02-02 13:16:44 +01:00
bc7fbd2469 Extract shared detachAll/refreshAll logic to a method
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
8450e1bb1b Clear entity manager for every cron run
This avoids using stale data and prevents memory leaks.

[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
2b5135474e Save deleted newsletter in woocommerce purchase stats as NULL
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
877c736190 Add a missing detachAll() helper to a batch delete
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
a947dd36cd Use refreshAll() helper for batch updates
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
d6da2af55b Extract newsletter bulk delete logic to a controller
Repositories shouldn't inject other repositories. Also, this solves circular DI dependency.

[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
82d5621caf Extract newsletter entity deletion to a method
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
cb803d6f4b Use epxlicit transaction demarcation
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
082ab78f90 Remove no longer needed cleanup
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
d1f48b6772 Detach deleted newsletters, simplify code
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
f5e1ae9fba Avoid unnecessary JOIN
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
4454dd6203 Delete stats notifications and tasks using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
ddfde2059e Delete newsletter data from woocommerce purchase stats using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
682527cd1b Add a helper method to refresh all (or some) entities of a given class
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
aa13c8956d Delete newsletter segments using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
18b227429f Delete sending queues using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
98d46f2fdb Delete scheduled tasks using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
bcc96d27bb Delete scheduled tasks subscribers using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
9aaffd9ceb Delete newsletter links using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
115616620e Delete newsletter options using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
bca9101921 Delete newsletter posts using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
1221a64d3d Delete statistics clicks using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
17168643c9 Delete statistics opens using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
c492ff4d8d Delete statistics newsletters using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
6f844e2bea Use typed properties
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
5646464853 Refactor Mailer::formatSubscriberNameAndEmailAddress() to use Doctrine
[MAILPOET-5758]
2024-01-31 12:44:58 +01:00
42b5efda1b Remove Tasks\Sending
This class is not used anymore and can be removed.

[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
a1017c4380 Remove last use of the Tasks\Sending class
I was not able to figure out a easy replacement for this use. As far as
I could check, Newsletter::getQueue() is only called inside
Newsletter::withSendingQueue() and the later is not used anywhere. That
is why I opeted to simply remove the call to
SendingTask::getByNewsletterId().

This could break third-party code using Newsletter::getQueue(). At least they
will get a deprecation notice and won't get a fatal error.

[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
0409747216 Remove outdated code comment
This class doesn't use MailPoet\Tasks\Sending anymore.

[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
4ab07621b3 Refactor API\NewsletterTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
881a971b8e Refactor Models\NewsletterTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
5b913f7fe8 Refactor UnsubscribesTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
756160abc5 Refactor ViewInBrowserRendererTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
ee04736a88 Refactor ViewInBrowserControllerTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
6f5e22c54c Refactor WelcomeTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
7c2065bcbf Refactor NewsletterRepositoryTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
19b33e15f5 Refactor SendingQueue::add() to use Doctrine instead of Tasks\Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
62db03d95b Update findOneByNewsletterAndTaskStatus() to work with null status
This commits updates the method findOneByNewsletterAndTaskStatus() so
that it can retrieve SendingQueues when the task status is null.

[MAILPOET-5737]
2024-01-31 12:21:54 +01:00
8734d9762b Expand intregration test coverage for API/JSON/v1/SendingQueue.php
Doing this before refactoring this class to use Doctrine instead of
Paris.

[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
4d021eeceb Release 4.42.1 2024-01-30 15:34:51 +01:00
aa88b73d28 Update tests
[MAILPOET-5856]
2024-01-30 10:40:33 +01:00
5113e65949 Reduce sender domain authentication limits
[MAILPOET-5856]
2024-01-30 10:40:33 +01:00
32bd334e9e Make showModal optional
[MAILPOET-5857]
2024-01-29 14:13:52 -06:00