Commit Graph

90 Commits

Author SHA1 Message Date
Michelle Shull
5614a7a4b2 Merge pull request #1505 from mailpoet/sending-erros-levels
Multiple Sending Error Levels [MAILPOET-1154]
2018-09-24 07:09:39 -04:00
Pavel Dohnal
f6bf32de01 Ensure the right order
[MAILPOET-1480]
2018-09-19 14:40:21 +02:00
Rostislav Wolny
f5c9d0f7db Remove unnecessary test_email extra parameter for mailer->send
It was used only to prevent appending unprocessed subscribers into error message.
Since the message is now composed by on demand by MailerError the parameter is not needed any more.

[MAILPOET-1154]
2018-09-13 11:12:38 +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
Pavel Dohnal
c7f71663d9 Make templates payload smaller
[MAILPOET-1479]
2018-08-30 11:46:37 +02:00
Pavel Dohnal
ac33e11c60 Reject requests without mandatory custom fields
We need to make sure subscribers cannot be created without custom fields
Users require GDPR consent and we need to make sure there are no way to
create a subscriber without mandatory custom fields

[MAILPOET-1405]
2018-08-21 15:03:08 +02:00
qfrery
3a2ee709eb fix failing bridge tests 2018-07-19 10:13:48 +01:00
qfrery
76686e08fe analytics : use a unique public id 2018-07-19 10:13:48 +01:00
Michelle Shull
5c66025633 Merge pull request #1418 from mailpoet/cron-ping-warning
Automatically test if cron can be pinged and display a notice [MAILPOET-801]
2018-07-16 10:36:34 -04:00
Rostislav Wolny
03817657a0 Display warning for cron accessibility problem [MAILPOET-801] 2018-07-11 09:27:19 +02:00
Michelle Shull
90bdcd2213 Merge pull request #1411 from mailpoet/default-sender
Set default sender on newsletter save [MAILPOET-1415]
2018-07-10 09:42:38 -04:00
Pavel Dohnal
55affcb556 Set default sender on newsletter save
[MAILPOET-1415]
2018-06-25 12:45:02 +01:00
qfrery
6b78762bcf api validation localhost error message : display only if localhost 2018-06-23 15:10:16 +02:00
qfrery
ad0e04a9c2 Revert "api validation localhost error message : display only if localhost"
This reverts commit 4992b65f14.
2018-06-23 15:07:37 +02:00
qfrery
4992b65f14 api validation localhost error message : display only if localhost 2018-06-23 15:03:25 +02:00
qfrery
84bde18fce Merge branch 'master' of https://github.com/mailpoet/mailpoet into best_api_error_message 2018-06-23 14:44:07 +02:00
Rostislav Wolny
9308cffd45 Refactor fetching newsletter options to respect its type [MAILPOET-1431] 2018-06-19 17:06:56 +02:00
qfrery
ebc9c4db39 best api key error message 2018-06-11 18:54:27 +01:00
Vlad
7b665acae3 Prevents sending queue rerendering when post notification is updated 2018-05-27 21:59:58 -04:00
Amine Ben hammou
3e84a1f8e1 fixing translations 2018-05-23 21:32:59 +00:00
Michelle Shull
4da7ed44e5 Merge pull request #1352 from mailpoet/less-info
Returning only the id and email on form's response [MAILPOET-1370]
2018-05-17 06:59:10 -04:00
Amine Ben hammou
3c499d0626 retuning empty response on subscribe 2018-05-14 15:24:39 +00:00
Pavel Dohnal
11b29a1efa Add source to subscribed entered in admin
[MAILPOET-1377]
2018-05-14 13:55:47 +01:00
Fred. P
5912004c10 Fix: CPU usage and sending issue on slow host
On some slow host, the `newsletter` table get filled with
duplicated `notification_history` marked as `sending` that
never get sent.

To prevent this we've made the two following changes:
* We prevent firing `publis_*` hooks on post_type which
are excluded from search.
* We do not schedule a new post notification email if one
has an `notification_history` entry marked as `sending`.

[MAILPOET-1371]
2018-05-10 15:25:23 +02:00
Vlad
cb648da677 Adds hook to filter each listings item 2018-04-11 23:20:07 -04:00
Vlad
ea0676718e Filters data before other logic 2018-04-11 23:11:41 -04:00
Vlad
adbebb39f1 Adds automatic email type to newsletter model/API listing method 2018-04-11 19:03:03 -04:00
Tautvidas Sipavičius
06dac13327 Merge pull request #1300 from mailpoet/archive-page-subject
Api/newsletter: Re-render email in queue on save  [MAILPOET-1305]
2018-04-03 13:46:10 +03:00
Rostislav Wolny
662b033677 api/newsletters: Re-render newsletter with queue on save [MAILPOET-1305] 2018-03-27 19:24:59 +02:00
Vlad
986cce4a92 Adds unit tests 2018-03-24 13:33:18 -04:00
Vlad
a0947611fb Fixes the rescheduling of sending tasks 2018-03-24 11:36:00 -04:00
Vlad
18a6a1c439 Removes call to method that marks sending queue task as complete
When sending queue is added, subscriber count is always 0 and
subscribers list is null. To that end, the removed code had no effect
and only introduced an issue.
2018-03-22 20:16:35 -04:00
Vlad
467cf350e9 Abstract WP's current_time() function in the code base 2018-03-20 16:34:50 -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
Pavel Dohnal
99edc35b08 Handle bulk operations on subscribers filtered by dynamic segments
[PREMIUM-69]
2018-02-28 17:12:56 +00:00
Pavel Dohnal
476af99130 Display only terms with labels
[MAILPOET-1292]
2018-02-19 11:59:41 +00:00
stoletniy
b9546b61a8 Fix acceptance tests, update counters [MAILPOET-903] 2018-02-14 19:57:14 +03:00
stoletniy
84dfa88a1a Don't load subscriber IDs in memory when preparing tasks from static segments [MAILPOET-903] 2018-02-13 20:36:01 +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
stoletniy
bf8b0c81df Merge pull request #1262 from mailpoet/recently-sent-templates
limitting the recently sent templates to 12 [MAILPOET-1265]
2018-02-13 11:28:42 +03:00
Amine Ben hammou
a754cfaa52 limitting the recently sent templates to 12 2018-02-09 16:43:40 +00:00
Pavel Dohnal
4a3ba73406 Use filter for getTerms search
[MAILPOET-1293]
2018-02-07 12:58:00 +00:00
Amine Ben hammou
cae46d9acd fixed duplicated templates when scheduling/sending same newsletter twice 2018-01-22 11:01:19 +00:00
Amine Ben hammou
3ae7b436de returning preview url in meta 2018-01-22 11:01:19 +00:00
Amine Ben hammou
a519eff231 saving recently sent templates 2018-01-22 11:01:19 +00:00
Amine Ben hammou
a1ba783264 reCaptcha works without javascript now 2018-01-18 10:50:07 +00:00
Amine Ben hammou
c63b7d9b91 handling multiple instances of reCaptcha 2018-01-15 10:47:25 +00:00
Amine Ben hammou
a8052c118a fixing minor issues and adding unit test 2018-01-15 10:46:07 +00:00
Amine Ben hammou
1ad0dce425 applying compact design and updating error messages 2018-01-15 10:46:06 +00:00