Commit Graph

21722 Commits

Author SHA1 Message Date
Jan Jakes
f5e1ae9fba Avoid unnecessary JOIN
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
4454dd6203 Delete stats notifications and tasks using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
ddfde2059e Delete newsletter data from woocommerce purchase stats using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
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
Jan Jakes
aa13c8956d Delete newsletter segments using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
18b227429f Delete sending queues using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
98d46f2fdb Delete scheduled tasks using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
bcc96d27bb Delete scheduled tasks subscribers using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
9aaffd9ceb Delete newsletter links using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
115616620e Delete newsletter options using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
bca9101921 Delete newsletter posts using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
1221a64d3d Delete statistics clicks using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
17168643c9 Delete statistics opens using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
c492ff4d8d Delete statistics newsletters using a repository
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Jan Jakes
6f844e2bea Use typed properties
[MAILPOET-5845]
2024-02-02 12:48:40 +01:00
Rodrigo Primo
5646464853 Refactor Mailer::formatSubscriberNameAndEmailAddress() to use Doctrine
[MAILPOET-5758]
2024-01-31 12:44:58 +01:00
Rodrigo Primo
42b5efda1b Remove Tasks\Sending
This class is not used anymore and can be removed.

[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
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
Rodrigo Primo
0409747216 Remove outdated code comment
This class doesn't use MailPoet\Tasks\Sending anymore.

[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
4ab07621b3 Refactor API\NewsletterTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
881a971b8e Refactor Models\NewsletterTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
5b913f7fe8 Refactor UnsubscribesTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
756160abc5 Refactor ViewInBrowserRendererTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
ee04736a88 Refactor ViewInBrowserControllerTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
6f5e22c54c Refactor WelcomeTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
7c2065bcbf Refactor NewsletterRepositoryTest to use Doctrine instead of Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
19b33e15f5 Refactor SendingQueue::add() to use Doctrine instead of Tasks\Sending
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
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
Rodrigo Primo
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
Rostislav Wolny
4d021eeceb Release 4.42.1 2024-01-30 15:34:51 +01:00
Brezo Cordero
aa88b73d28 Update tests
[MAILPOET-5856]
2024-01-30 10:40:33 +01:00
Brezo Cordero
5113e65949 Reduce sender domain authentication limits
[MAILPOET-5856]
2024-01-30 10:40:33 +01:00
Brezo Cordero
32bd334e9e Make showModal optional
[MAILPOET-5857]
2024-01-29 14:13:52 -06:00
John Oleksowicz
f5aba4ebee Ensure invalid tasks don't prevent new post notifications
MAILPOET-5853
2024-01-29 17:16:12 +01:00
David Remer
4ba3e95cbf Return early when senderDomainsConfig is null
The value can be null according to the definition. This happens when
another sending method is active or the API key is not able to send through
MSS.

[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
74a8a0aefc Modify context for Automations
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
31f973409f Add option to only show email rewritten warnings
This is for Automations where we don't block sending

[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
f1852684a5 Use useSelect for senderDomainsConfig
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
7e110bcce9 Use props instead of window in inline notice
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
8177c3819c Fix PHP error warning on createAuthorizedSenderDomain
And reload cache

[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
d0f72b3b0e Adjust inline notice display for automations
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
4b912bbafb Add SenderDomainNotice to email Panel
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
d2715b5367 Add reducer-action to update the context
Needed for automations with more than one email step where one step can authorize an email or sender domain. Not expected to be a common action.

[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
1a7a424936 Add Sender Domain Data to MailPoet Context
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
alex-mpoet
b8c9233c29 Add sender domain auth task
[MAILPOET-5781]
2024-01-29 13:27:49 +01:00
alex-mpoet
d137ad1430 Fetch data necessary for new task in Homepage controller
[MAILPOET-5781]
2024-01-29 13:27:49 +01:00
alex-mpoet
88d2eaa736 Trigger settings domain authorization modal by URL param
[MAILPOET-5781]
2024-01-29 13:27:49 +01:00
alex-mpoet
a86f75a1e7 Update CodeSniffer ignores
[MAILPOET-5781]
2024-01-29 13:27:49 +01:00
John Oleksowicz
e303804352 Increase limits for legacy emails
MAILPOET-5850
2024-01-29 12:12:44 +01:00
Rostislav Wolny
2012621791 Improve code comment when adding block editor class
[MAILPOET-5854]
2024-01-29 10:52:41 +01:00