Commit Graph

335 Commits

Author SHA1 Message Date
Rostislav Wolny
a12d0ff4bc Refactor newly added cron workers to use new settings
[MAILPOET-1757]
2019-01-31 15:57:59 +01: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
Pavel Dohnal
9f533ad5c7 Fix undefined method 2019-01-29 08:17:55 +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
d7db761f73 Add text template
[MAILPOET-1571]
2019-01-28 14:16:43 +01:00
Pavel Dohnal
3eb640597b Fix rates
[MAILPOET-1571]
2019-01-28 11:09:06 +01:00
Pavel Dohnal
06370ea245 Fix links
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
9eeda50b07 Render newsletters without clicked links
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
e76f8d5159 Prevent sending stats newsletter if tracking is disabled
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
627088e43d Add condition to WordPress trigger method
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
b66c724c4a Fix tests
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
1db75f40fb Add statistics to template
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
3bd80aecd3 Move dependencies creation to DI container
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
ef5eba31d1 Add test
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
96f2f79d48 Refactor Stats notifications to spearate classes
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
6452e83476 Only schedule notification for standard newsletters
[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
Pavel Dohnal
d346a44974 Use a separate table instead of sending_queue
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
9080b5260e Create a new table for stats notification
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
423341abb0 Add stats notifications email scheduler
[MAILPOET-1571]
2019-01-28 10:56:01 +01:00
Pavel Dohnal
75761d57ed Refactor Daemon to use DI
[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
M. Shull
0e4de4197d Merge pull request #1651 from mailpoet/array-column-fix
User polyfill for array_column [MAILPOET-1618]
2018-11-27 07:51:31 -05:00
Pavel Dohnal
a9f3eeeb0d User polyfill for array_column
[MAILPOET-1618]
2018-11-27 11:13:00 +01:00
wxa
467bef1d61 Do not require pluggable.php [MAILPOET-1650] 2018-11-22 17:01:33 +03:00
Jan Jakeš
8557cbccb1 Refactor SimpleWorker to be more expressive (so PHPStan understands it) 2018-11-15 11:41:04 +01:00
Rostislav Wolny
fff8176a49 Refactor lib/Router to use with container for endpoints
[MAILPOET-1605]
2018-10-31 17:26:47 +01:00
M. Shull
1e7542848a Merge pull request #1556 from mailpoet/arrays-to-objects
Replace entity arrays with objects [MAILPOET-1495]
2018-10-22 14:59:12 -04:00
Pavel Dohnal
fd893cec0e Remove newsletter logging where is no newsletter
[MAILPOET-1595]
2018-10-18 09:07:32 +02:00
Rostislav Wolný
b45c47a9e7 Update SubscriberFinder and Scheduler to use object entities
[MAILPOET-1495]
2018-10-12 11:26:23 +02:00
Michelle Shull
9ec6f52098 Merge pull request #1526 from mailpoet/linux-cron
Linux cron [MAILPOET-1538]
2018-10-08 06:41:57 -04:00
Pavel Dohnal
b2e2087cfc Split cron daemon into 2 classes
[MAILPOET-1538]
2018-10-04 08:27:31 +02:00
Pavel Dohnal
f81323ad52 Rename Daemon to DaemonHttpRunner
[MAILPOET-1538]
2018-10-03 10:28:26 +02:00
Pavel Dohnal
e4db455a47 Add post notification logging
[MAILPOET-1536]
2018-10-01 15:02:12 +02:00
Pavel Dohnal
5d1f3153cd Add Linux Cron Script
[MAILPOET-1538]
2018-09-27 16:51:44 +02:00
Pavel Dohnal
fcd8509cef Add linux cron option to settings
[MAILPOET-1538]
2018-09-27 15:08:56 +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
ae0e03d2f3 Update code for PHP 5.5
[MAILPOET-1496]
2018-08-23 12:10:21 +02:00
Pavel Dohnal
8ea06f3f31 Use POST for cron requests
[MAILPOET-1485]
2018-08-16 08:27:05 +02:00