Rodrigo Primo
e7416c247c
Fix error after refactor of SendingErrorHandler
...
In 862c395d3263f30057aef73a14704345e181dde3, SendingErrorHandler was
refactored to replace the `\MailPoet\Tasks\Sending` class with Doctrine
code. Inside `processSoftError()`, a call to
`$sendingTask->saveSubscriberError()` was replaced with a call to
`$this->scheduledTaskSubscribersRepository->saveError()`. The problem is
that the former updates the processed and unprocessed counts in the
QueueEntity while the later doesn't.
This commit fixes this issue by calling
`$this->sendingQueuesRepository->updateCounts()` inside
`processSoftError()`.
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
7bb40664cc
Replace ScheduledTask model with Doctrine in SendingQueueTest
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
5891e09418
Replace simple uses of Newsletter and Subscriber models with Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
90b56d3aa8
Replace model ScheduledTaskSubscriber with Doctrine in SendingQueueTest
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
d2e226a932
Fix SendingQueueTests after Doctrine refactor
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
3b38b3034a
Update calls to SendingQueue worker constructor in SendingQueueTest
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
9c0eea54f8
Rewrite NewsletterTest using Doctrine
...
testItLogsErrorWhenExistingRenderedNewsletterBodyIsInvalid() was removed
because since 0e13cd02c31baef706f852664570e3ddb014f56d,
preProcessNewsletter() doesn't throw an exception anymore for an invalid
newsletter body:
0e13cd02c3 (diff-449c06813489ce1e60006fdd40b4f23eb3a0cf290ff84b703dcee44b04435eadL142)
Presumably, this is because Doctrine won't allow the code to save an
invalid body.
testItLogsErrorWhenNewlyRenderedNewsletterBodyIsInvalid() was removed
because it doesn't seem to test what it was supposed to test and it is
not trivial to make it work. Even on trunk this test was passing because
`self::fail('Sending error exception was not thrown.')` throwns an
exception and not because preProcessNewsletter() was throwing an
exception.
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
af43185373
Improve SendingQueue factory
...
This commit improves the SendingQueue factory by refreshing the
associated ScheduledTaskEntity. Without this, calling
ScheduledTaskEntity::getSendingQueue() returns null which is not
correct.
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
70085c40bb
Rewrite SendingErrorHandlerTest using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Rodrigo Primo
cd7a5c7943
Rewrite LinksTest using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
e3ff7ccaca
Remove remaining usages of MailPoet\Task\Sending from SendingQueue::processSending()
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
fa266dadcd
Rewrite SendingErrorHandler using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
7e45fb1c79
Rewrite SendingQueue::sendNewsletter(), sendNewsletters(), and processSendResult() using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
586ef334b0
Rewrite SendingQueue\Tasks\Newsletter::prepareNewsletterForSending() using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
44c5ae5664
Pass Doctrine entity into SendingQueue::processQueue(), replace simple usages
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
ec792b30df
Rewrite SendingQueue\Tasks\Newsletter::preProcessNewsletter() using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
c31cbb73c0
Rewrite SendingQueue\Tasks\Links::process() using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
16b2817ce6
Rewrite SendingQueue\Tasks\Newsletter::getNewsletterFromQueue() using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
737c80f953
Rewrite SendingQueue::deleteTaskIfNewsletterDoesNotExist() and deleteTask() using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
ff9b2a1adb
Pass Doctrine entity into SendingQueue::processSending(), replace simple usages
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Jakes
6307f6c155
Rewrite SendingQueue::process() and progress/timeout functions using Doctrine
...
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Brezo Cordero
18bfa1bf2e
Release 4.41.2
2024-01-11 11:45:49 -06:00
John Oleksowicz
efe4c47568
Display different notices before Feb 1st
...
MAILPOET-5819
2024-01-11 20:13:59 +05:00
Jan Lysý
b68df77aee
Simplify ListBlock renderer
...
Because for nesting is better to doesn't have any wrapper, we add configured styles directly to the list tag
[MAILPOET-5790]
2024-01-11 14:39:08 +01:00
Jan Jakes
c88da4a86c
Add test checks for legacy automatic email stats
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
632e2d6405
Add acceptance test for legacy automatic emails listing
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
324097fcfa
Add acceptance test for automation listing
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
3f0a81aecc
Update tests to reflect removed email types
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
874c3cac18
Use buttons from @wordpress/components, use secondary variants
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
b3a8ac4f1d
Remove close button from newsletter types component
...
This is now handled using page header component with a back button.
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
298ee505f8
Add header and heading to new email page
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
ef8d7bf264
Remove automation hiding logic
...
This was introduced in:
https://github.com/mailpoet/mailpoet/pull/4917
https://github.com/mailpoet/mailpoet/pull/5171
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
7fbcf3a67d
Add notice for legacy automatic emails in automation listing
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
b774fff3b9
Add legacy automation count to automation total count
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
25a51b0b7b
Add stats for legacy automatic emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
92aef9ea05
Add description for legacy automatic emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
29430db641
Add description for legacy welcome emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
0655efb686
Implement delete action for legacy automatic emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
a6c3da174c
Implement restore action for legacy automatic emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
9a5bad5e78
Implement trash action for legacy automatic emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
94c895d1ac
Add link to legacy automatic emails analytics
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
f7f7598591
Add link to edit legacy automatic emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
d427b128f4
Load legacy automatic emails on listing page
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
d315e1a11f
Add legacy automatic emails to automation listing store
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
abe7c0e49c
Add notice about legacy automatic emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
4e1200e887
Sort email types and mark legacy ones
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
c041eeeb00
Add automations info tooltip
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
4ffc311698
Remove WooCommerce email customizer from new email screen
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
0aa144344e
Remove legacy WooCommerce emails
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
12f7dc2321
Replace welcome email card with automations
...
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00