Rostislav Wolny
3fbff8c83f
Optimize newsletter reactivation
...
When reactivating a newsletter with many queues (e.g., a welcome email with a long history)
NewsletterEntity::getQueues may fail because it attempts to fetch all queues and instantiate
many entity objects.
In this commit, I optimize this by looking only into unfinished queues.
getUnfinishedQueues look for where countToProcess is higher than 0.
We set the count for welcome emails when we create a new queue
see f1ffc77bf3/mailpoet/lib/Newsletter/Scheduler/WelcomeScheduler.php (L140)
[MAILPOET-6310]
2024-11-11 12:21:22 +01:00
Pavel Dohnal
55f21e8cd7
Fix inactive notifications clog sending queue
...
[MAILPOET-6259]
2024-10-28 11:09:57 +01:00
alex-mpoet
b77cd11c02
Update tests
...
[MAILPOET-6164]
2024-08-22 14:11:26 +02:00
Rostislav Wolny
5fdba0e170
Replace current_time usage in tests
...
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
alex-mpoet
268330f1a0
Disallow activating emails without list specified in listing
...
[MAILPOET-5352]
2024-07-15 14:04:12 +02:00
Mike Jolley
0d6fe6e5eb
Apply rules to tests and tasks
2024-03-21 16:57:59 +01:00
Jan Jakes
4b3744717f
Revert "Unify responses of newsletter editing API methods with get()"
...
This reverts commit e0b6cf7b41
.
In the next commit, I will add a different fix for this issue.
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
Rodrigo Primo
4ab07621b3
Refactor API\NewsletterTest to use Doctrine instead of Sending
...
[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Brezo Cordero
ab23a01423
Modify the check for sender address
...
to implement rule for existing campaigns.
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Jan Jakes
e0b6cf7b41
Unify responses of newsletter editing API methods with get()
...
[MAILPOET-5779]
2024-01-16 18:15:35 +01:00
Brezo Cordero
1162b5aca1
Verify sender Address on newsletter activation
...
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Rodrigo Primo
8bc4d78c68
Replace expect()->regExp() with verify()->stringMatchesRegExp()
...
codeception/verify 2.1 removed support for expect()->regExp() so we need
to replace it with verify()->stringMatchesRegExp().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
a1f57361c5
Replace expect()->array() with verify()->isArray()
...
codeception/verify 2.1 removed support for expect()->array() so we need
to replace it with verify()->isArray().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
525495409c
Replace expect()->notNull() with verify()->notNull()
...
codeception/verify 2.1 removed support for expect()->notNull() so we need
to replace it with verify()->notNull().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
9b56fdc688
Replace expect()->count() with verify()->arrayCount()
...
codeception/verify 2.1 removed support for expect()->count() so we need
to replace it with verify()->arrayCount().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
e4136fee8c
Replace expect()->isEmpty() with verify()->empty()
...
codeception/verify 2.1 removed support for expect()->isEmpty() so we need
to replace it with verify()->empty().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
5bc5b5ebd2
Replace expect()->notEmpty() with verify()->notEmpty()
...
codeception/verify 2.1 removed support for expect()->notEmpty() so we need
to replace it with verify()->notEmpty().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
a70067a34c
Replace expect()->hasKey() with verify()->arrayHasKey()
...
codeception/verify 2.1 removed support for expect()->hasKey() so we need
to replace it with verify()->arrayHasKey().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
eba025a345
Replace expect()->stringNotContainsString() with verify()->stringNotContainsString()
...
codeception/verify 2.1 removed support for expect()->stringNotContainsString() so we need
to replace it with verify()->stringNotContainsString().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
709be1d541
Replace expect()->null() with verify()->null()
...
codeception/verify 2.1 removed support for expect()->null() so we need
to replace it with verify()->null().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
997f635d4a
Replace expect()->false() with verify()->false()
...
codeception/verify 2.1 removed support for expect()->false() so we need
to replace it with verify()->false().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
9adbf81a78
Replace expect()->true() with verify()->true()
...
codeception/verify 2.1 removed support for expect()->true() so we need
to replace it with verify()->true().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
afe378ba22
Replace expect()->equals() with verify()->equals()
...
codeception/verify 2.1 removed support for expect()->equals() so we need
to replace it with verify()->equals().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rostislav Wolny
3ff4ba0c86
Delete WP Posts when deleting Newsletter Entities
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
John Oleksowicz
c75bc388c9
Remove unnecessary cleanup code
...
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Sam Najian
0795c2ffff
Expose the log for corrupted newsletter on listing page
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Jan Jakes
82aeb89854
Use strict types in tests
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
7db40b27b5
Fix errors automatically with phpcbf
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
d2ec7bba42
Replace instance_of asserts in integration tests
...
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Jan Lysý
f1b59173dd
Add filters into newsletter response
...
[MAILPOET-4583]
2022-10-05 14:14:34 +02:00
Rodrigo Primo
c3ab2fffec
Replace old models with Doctrine code in NewslettersTest
...
[MAILPOET-4378]
2022-09-20 15:54:19 +01:00
Jan Lysý
8399f37860
Reuse NewsletterOption factory
...
[MAILPOET-4440]
2022-07-12 13:35:00 +02:00
David Remer
445d07ac68
Prevent segmentation of automation emails
...
[MAILPOET-4432]
2022-07-04 14:04:16 +03:00
John Oleksowicz
c98f3bba29
Refactor mock service creation to use new helper
...
MAILPOET-4236
2022-05-16 11:17:29 +02:00
John Oleksowicz
ab609c8867
Remove subscriber check from newsletter validator
...
Checking the subscriber limit has nothing to do with the newsletter
itself, so it makes more sense to continue to perform that check as
needed elsewhere in the codebase.
MAILPOET-4236
2022-05-16 11:17:29 +02:00
John Oleksowicz
8983d5e3f7
Move subscriber limit check into validator
...
[MAILPOET-4236]
2022-05-16 11:17:29 +02:00
John Oleksowicz
9bfe2b2ca1
Newsletter validation updates
...
- Rename validator to newsletterValidator for clarity
- Add validation for ALC content
- Refactor tests to use data factory for consistency and to avoid
validation issues
- Add separate tests for NewsletterValidator service
- Add test helper for retrieving service with private properties
overridden by name
[MAILPOET-4236]
2022-05-16 11:17:29 +02:00
John Oleksowicz
a5103f9596
Move reengagement validations into validator
...
[MAILPOET-4236]
2022-05-16 11:17:29 +02:00
John Oleksowicz
27a86d2ca6
Check validity on activating newsletters
...
This prevents users from activating automatic emails from listing pages
that are not valid.
This also adds more checks for the content of a newsletter, requiring
that a newsletter have at least one content block in order to be valid.
This change makes the server side validation check match what we're
checking in the editor in mailpoet/assets/js/src/newsletter_editor
/components/save.js and mailpoet/assets/js/src/newsletters/send.jsx
[MAILPOET-4236]
2022-05-16 11:17:29 +02:00
Rodrigo Primo
ed164ac397
Replace Paris code with Doctrine in NewslettersResponseBuilder.php
...
[MAILPOET-4138]
2022-05-09 13:04:56 +02:00
David Remer
ca3f8bdc43
Make Scheduler non-static
...
[MAILPOET-4252]
2022-04-25 12:08:18 +02:00
Jan Jakes
9f790efbf0
Move plugin files to a subfolder
...
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00