Commit Graph

169 Commits

Author SHA1 Message Date
Ján Mikláš
9f21ff1285 Fix checking if post notification email contains any ALC posts
[MAILPOET-2029]
2019-05-16 09:33:00 -04:00
Ján Mikláš
c6c9442588 Make PostsTask method non-static
[MAILPOET-2029]
2019-05-16 09:33:00 -04:00
Pavel Dohnal
3e66e9e1dd Fix phpstan level 6
[MAILPOET-1969]
2019-04-10 09:55:13 -04:00
Ján Mikláš
5621d1df25 Set newsletter's ID when sending preview or actual newsletter
[MAILPOET-1882]
2019-03-21 13:15:29 -04:00
Amine Ben hammou
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
wxa
fb77167a1f Remove unused imports [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
Ján Mikláš
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Rostislav Wolny
ff238bf69a Refactor MailPoet\Cron to use new settings
[MAILPOET-1757]
2019-01-31 15:57:58 +01:00
Amine Ben hammou
8b602bd947 Move WPHooks methods to WPFunctions 2019-01-31 13:25:00 +01:00
M. Shull
0e3f27add3 Merge pull request #1728 from mailpoet/stats-notifications
Stats notifications [ MAILPOET-1571]
2019-01-28 13:22:21 -05:00
Pavel Dohnal
96f2f79d48 Refactor Stats notifications to spearate classes
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
1d34613b17 Schedule a notification
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Tautvidas Sipavičius
44bc27df90 Define default variable values in cases when they can be undefined 2019-01-23 21:29:46 +02:00
Tautvidas Sipavičius
9f13f68e39 Fix "Access to undefined property" rule violations 2019-01-23 11:33:47 +02:00
wxa
0573a7915e Merge pull request #1689 from mailpoet/wp-functions
Encapsulating WP calls
2018-12-27 11:05:08 +03:00
wxa
a1fa3dcd28 Use a default subject if a rendered newsletter subject is empty [MAILPOET-1462] 2018-12-13 22:13:01 +03:00
Amine Ben hammou
a46d98ec44 Refactor WPFunctions to be injectable with DI 2018-12-12 16:43:52 +01:00
Pavel Dohnal
fd893cec0e Remove newsletter logging where is no newsletter
[MAILPOET-1595]
2018-10-18 09:07:32 +02:00
Pavel Dohnal
e4db455a47 Add post notification logging
[MAILPOET-1536]
2018-10-01 15:02:12 +02:00
Rostislav Wolny
665fce9dbb Temporarily set every sending error to hard
This is temporary solution until we implement follow-up feature https://mailpoet.atlassian.net/browse/MAILPOET-1155

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
624c6d900e Add processing of soft errors
When processing soft error we only save error to particular subscriber and continue sending.

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
ea4c5f46fb Refactor sendingQueue to distinguish bulk/individual sending method
[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
3ae8763837 Refactor sending error handling to extra class
The SendigQueue worker is already a very complex class and handles a lot of things.
Since we want to make error handling more sophisticated it is better to move the error handling responsibility
to a new class.

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
223c2e1562 Add subscriber errors passing via MailerError object
We want to process errors for individual subscribers.
Subscriber errors were inlined into error message string.
This commit changes this so that we are now able to get
subscriber errors as a data which are easy to process further.

[MAILPOET-1154]
2018-09-13 09:48:54 +02:00
Rostislav Wolny
0923c892c1 Refactor sending methods to use error mappers
We want to add some logic to error handling.
This commit extracts error handling code from sending methods classes,
which already do a lot of other stuff, to error mappers which are responsible
for creating proper error object (MailerError). This error object is a replacement
for assoc. array which already had some special keys for certain usecases and
can not be properly type hinted.

[MAILPOET-1154]
2018-09-13 09:33:26 +02:00
Rostislav Wolny
8cf5d17cfd Refactor sending task variable name and add typehint
[MAILPOET-1154]
2018-09-13 09:33:26 +02:00
Pavel Dohnal
27b9857e6a Improve error reporting for MSS sending
[MAILPOET-1445]
2018-07-19 16:21:23 +01:00
Pavel Dohnal
2c290c6e4c Rotate sending queues
This should prevent sending queues to be stuck when a newsletter cannot be send.

[MAILPOET-1391]
2018-06-05 11:05:59 +01:00
Vlad
28651227d5 Uses rendered subject from queue when preparing newsletter for sending 2018-05-07 20:06:03 -04:00
Tautvidas Sipavičius
a588e95762 Add a limit to fetch 5 scheduled tasks at a time [MAILPOET-1366] 2018-05-02 23:27:30 +03:00
Vlad
afefa89466 Ensures that queues are instance of the scheduled task class 2018-04-11 18:58:29 -04:00
Vlad
d317eb4fbd Adds unit test 2018-03-20 16:30:28 -04:00
Vlad
44b96aa9a7 Uses WP time to schedule migration task 2018-03-20 15:48:21 -04:00
Michelle Shull
a3cabad752 Merge pull request #1268 from mailpoet/sending_queue_refactoring
Refactor sending queues to use scheduled task and task subscriber tables [MAILPOET-903]
2018-03-20 08:47:26 -04:00
Vlad
4469cef647 Fixes cast statement format 2018-03-13 11:28:25 +00:00
Vlad
4c4f6be59b Passes object as value instead of reference 2018-03-13 11:28:25 +00:00
stoletniy
e0f989f6a8 Revert "Migrate subscribers for all tasks types [MAILPOET-903]"
This reverts commit f1f69c9835.
2018-03-01 21:17:40 +03:00
stoletniy
f1f69c9835 Migrate subscribers for all tasks types [MAILPOET-903] 2018-02-28 11:21:23 +03:00
stoletniy
03015c0bde Fix code review syntax remarks [MAILPOET-903] 2018-02-26 16:30:53 +03:00
stoletniy
be6647d763 Fix unit tests [MAILPOET-903] 2018-02-13 11:39:50 +03:00
stoletniy
c0c57f6b67 Sending queue refactoring WIP [MAILPOET-903] 2018-02-13 11:39:50 +03:00
Vlad
a7a8cd2be4 Updates filter name 2018-01-16 08:20:29 -05:00
Vlad
3bf800b51d Adds filter to set custom batch processing size 2018-01-14 12:39:16 -05:00
Vlad
19c7efc9ef Pauses sending if processed subscribers list can't be updated 2018-01-09 12:25:04 +00:00
stoletniy
8afe7f5d97 Make rendering error during sending more descriptive [MAILPOET-1232] 2017-11-30 19:45:53 +03:00
Pavel Dohnal
0271675cd0 Use dynamic segments for sending queue
[PREMIUM-38]
2017-10-18 10:08:04 +01:00
stoletniy
cc5227ca0d Don't track sent ALC posts for welcome and standard emails (always send the latest posts) [MAILPOET-1069] 2017-08-25 15:51:45 +03:00
Amine Ben hammou
de261d6179 Added confirmation when 'edit' is clicked 2017-08-15 12:55:05 +00:00
Amine Ben hammou
a587b0a966 Links are not re-hashed when re-rendering the same newsletter 2017-08-15 12:55:05 +00:00