749c4e5e43
Prevent deleting and further changes in detached tasks during sending
...
When a post notification history is deleted in
MailPoet\Cron\Workers\SendingQueue\Tasks\Newsletter::preProcessNewsletter
it is also detached from EntityManager.
Any further attempt to manipulate the entity via EntityManager (remove or flush) causes
errors like "ERROR: A new entity was found through the relationship 'MailPoet\Entities\ScheduledTaskEntity#sendingQueue'"
In this commit we prevent doing such changes.
[MAILPOET-5880]
2024-02-05 15:16:11 +01:00
6a86dfc7c0
Throw an exception when preprocessing a newsletter without a queue
...
The goal of this commit is to change the preProcessNewsletter method
to return false only in case when it deleted the newsletter and
all associated entities. So that we know for sure that false means all was deleted.
[MAILPOET-5880]
2024-02-05 15:16:11 +01:00
ac6cc881d1
Fix error when permanently deleting a legacy automation
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
7bfcf4bd67
Move redirect to useEffect
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
f24184fe16
Add automation name also to URL-based notices
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
6994afebb7
Remove unused URL-based notices
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
bf8e0f344a
Unify automation listing notices, include automation name
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
f4157947c4
Fix and improve automation listing table footer and pagination styles
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
2665ca65ae
Use real number of automations for table placeholder
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
bf70c24511
Remove no longer needed welcome email setup code
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
e3a194a1dd
Remove no longer needed notices (it redirects to automations)
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
c388c2ae9b
Fix not waiting until a template is saved (and causing error in FF)
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
646d8dbea4
Fix updating legacy automation status on trash, restore, and delete
...
[MAILPOET-5833]
2024-02-05 13:28:15 +01:00
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
5824905f18
Independently update existing subscribers info and status in import
...
[MAILPOET-5617]
2024-02-05 12:54:02 +01:00
de1fc6601c
Always display small sender notices
...
in the places where we always rewrite the emails (Automations).
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
d65fdd7a6d
Reset currentRecords only when needed
...
And reloadCache after domain verification.
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
928c100839
Rename constant
...
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
1e373ab7e0
Update Sender Domain inline notice
...
Remove unused notices displayed before enforcement date.
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
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