David Remer
19c6f777fc
Schedule transactional emails to all subscribers who are not bounced
...
[MAILPOET-4999]
2023-04-17 13:59:39 +02:00
Rostislav Wolny
cbd5c443f2
Ensure that subscriber stats are sent even for valid underprivileged keys
...
[MAILPOET-5165]
2023-04-04 18:45:41 +02:00
Sam Najian
397232e932
Set status of scheduled_task to invalid if it has not subs
...
[MAILPOET-5134]
2023-04-03 11:53:49 +02:00
Jan Lysý
2547f4bfbd
Replace old model usages by Doctrine
...
[MAILPOET-4303]
2023-03-22 09:20:11 +01:00
Jan Lysý
2ead4214cd
Move query with inserting task subscribers to repository
...
[MAILPOET-4303]
2023-03-22 09:20:11 +01:00
Sam Najian
9ca259d1d0
Exclude corrupt emails when fetching queue newsletters
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
fdf0875905
Pause sending queue when encountering a corrupt newsletter
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
93110826e7
Log when processing the queue for corrupt newsletter
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
John Oleksowicz
8c0854ab47
Consider image src when calculating campaignIds
...
MAILPOET-5034
2023-02-26 15:20:48 +01:00
John Oleksowicz
49c85c05ed
Move campaignId generation to more logical place
...
MAILPOET-5034
2023-02-26 15:20:48 +01:00
John Oleksowicz
a6824cce36
Add tests for campaignId generation
...
[MAILPOET-5033]
2023-02-26 15:20:48 +01:00
John Oleksowicz
fc8436ba74
Provide campaignId to sending methods via meta
...
[MAILPOET-5033]
2023-02-26 15:20:48 +01:00
John Oleksowicz
0435c09c53
Calculate and store campaign IDs on sending queues
...
[MAILPOET-5033]
2023-02-26 15:20:48 +01:00
Brezo Cordero
49b2f5528f
Remove Migration class
...
Remove from container, test factory and PHPStan baselines.
[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Brezo Cordero
6bc58e23c9
Remove Migration worker
...
[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Jan Lysý
5c453fcd54
Add list of simple workers
...
To avoid code repetition I added a const with a list of simple workers that was used in a loop.
[MAILPOET-3995]
2023-01-02 12:07:24 +01:00
Rostislav Wolny
78446d174a
Fix quotes in a queries processed by $wpdb
...
These queries failed when ANSI_QUOTES mode is enabled
[MAILPOET-4887]
2022-12-12 13:59:09 +01:00
Sam Najian
ea7971cb3b
Translate the shortcode for instance unsubscribe link
...
The [link:subscription_instant_unsubscribe_url] shown on
stats page was not translated
[MAILPOET-4862]
2022-12-07 10:52:07 +01:00
Jan Jakes
926620e8f8
Ignore strict types rule in all existing files that don't have it
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
c67c58709b
Unify spacing of declare statements
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
2557171953
Fix assert() in lib
...
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Sam Najian
9204f37560
Remove redundant injection
...
[MAILPOET-4703]
2022-11-11 09:21:30 +01:00
Sam Najian
50b613365f
Make sure one-click unsubscribe url won't redirect internally
...
[MAILPOET-4703]
2022-11-11 09:21:30 +01:00
Rostislav Wolny
918a4d7c74
Refresh the sending queue entity when fetching it from the old model
...
By moving the refresh code into the method used for getting sending queue entity for the old model object
we want to make our code better protected from working with inconsistent sending queue data.
[MAILPOET-4750]
2022-10-27 12:08:31 +02:00
David Remer
522629eeff
Update other instances where SendingTask and Entity get out of sync
...
[MAILPOET-4708]
2022-10-10 17:13:17 +02:00
David Remer
2298b5b061
Be more restrictive when deleting a queue task
...
getNewsletterFromQueue() has too many conditions under which it returns null. Therefore we can not rely on that method when we wont to delete running tasks with no associated newsletter.
[MAILPOET-4708]
2022-10-10 17:13:17 +02:00
David Remer
94da004454
Refresh newsletterEntity and taskEntity.
...
We need to refresh those, because the database values have
changed and Doctrine needs to clear its internal cache.
[MAILPOET-4708]
2022-10-10 17:13:17 +02:00
David Remer
307989a0c6
Delete task when no newsletter was found
...
When no corresponding newsletter was found the task can be deleted. The behavior
before meant that such a task would remain forever in the database with the
status 'running'.
[MAILPOET-4699]
2022-10-06 12:06:13 +02:00
Rodrigo Primo
54ea394f82
Deprecate filter as part of a Doctrine refactor
...
This commit deprecates the filter
mailpoet_sending_newsletter_render_after and replaces it with
mailpoet_sending_newsletter_render_after_pre_process. This was necessary
because as part of a Doctrine refactor one of the parameters passed to
the old filter changed from a Newsletter model to a Newsletter entity.
[MAILPOET-4680]
2022-10-04 14:41:00 +02:00
Rodrigo Primo
d39440f1dc
Refactor Newsletter::preProcessNewsletter() to use Doctrine
...
This commit also removes almost all the usages of the old Newsletter
model from NewsletterTest.
[MAILPOET-4680]
2022-10-04 14:41:00 +02:00
Rodrigo Primo
095cddc67e
Change Posts::getAlcPostsCount() to use Doctine instead of Paris
...
[MAILPOET-4680]
2022-10-04 14:41:00 +02:00
Rodrigo Primo
83319949ef
Use WooCommerce code instead of direct query to get highest order ID
...
[MAILPOET-4570]
2022-10-03 09:30:42 +02:00
Jan Lysý
58d32a68fb
Use processedAt from the correct model
...
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Jan Lysý
0551d02815
Add refreshing sending queue
...
Because we are still working with old model on some places, it's necessary to refresh both sides of the relation.
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Jan Lysý
2cf3f37f5c
Fix creation notification history records
...
[MAILPOET-4679]
2022-09-26 13:23:28 +02:00
Rostislav Wolny
45257b7b99
Simplify subscribers last engagement migration by ignoring Woo data
...
[MAILPOET-4578]
2022-09-26 10:20:32 +02:00
Rodrigo Primo
2c159b1694
Document the types of two SendingQueue properties that were undocumented
...
It was also necessary to add an if condition to check the type of a
variable before calling one of the methods of one of the documented
properties.
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
f578f3f16a
Remove method Tasks\Newsletter\getNewsletterSegments()
...
This method was used only once inside SendingQueue and it can be
replaced by NewsletterEntity::getSegmentIds() to simplify the code.
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
d79cecbef2
Replace some of the uses of SendingQueue model with Doctrine
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
ccbdbd3e93
Refactor getNewsletterFromQueue() to use Doctrine instead of Paris
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
4ca656a217
Rename $queue to $sendingTask
...
Doing this for consistency and to make it more clear that $sendingTask
contains an instance of \MailPoet\Tasks\Sending and not an instance of
\MailPoet\Models\SendingQueue.
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
a7d0ad6568
Set the type of all the Newsletter parameters that use the Sending class
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
168ce20a40
Use NewsletterEntity instead of Newsletter model in Links
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
9a92068d5b
Refactor Newsletter to use Doctrine instead of the Newsletter model
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
f6afe987c8
Add return type declaration for Newsletter::prepareNewsletterForSending()
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
68c3277195
Replace Subscriber model with Doctrine in Tasks\Newsletter
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
fd0acbd6cf
Refactor Newsletter to use Doctrine instead of the NewsletterSegment model
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Rodrigo Primo
05664a0c6a
Refactor markNewsletterAsSent() to use Doctrine instead of Paris
...
[MAILPOET-4363]
2022-09-21 16:03:21 +02:00
Jan Lysý
bc8be524fb
Use ScheduledTaskEntity instead of Sending
...
[MAILPOET-4367]
2022-09-19 11:07:16 +02:00
Jan Lysý
97801cfe25
Remove usage of Sending::getScheduledQueues
...
[MAILPOET-4367]
2022-09-19 11:07:16 +02:00