Commit Graph

113 Commits

Author SHA1 Message Date
Rostislav Wolny
9308cffd45 Refactor fetching newsletter options to respect its type [MAILPOET-1431] 2018-06-19 17:06:56 +02:00
Rostislav Wolny
daeee55118 Update Codeception deprecated method calls 2018-06-15 10:35:51 +02:00
Vlad
6d74ba8bb0 Validates that subscriber exists when processing automatic email 2018-06-11 13:40:05 -04:00
Vlad
b3aae566d5 Adds cron scheduler unit tests for automatic emails 2018-06-11 13:40:05 -04: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
Pavel Dohnal
b8ce6ff88c Rotate scheduled tasks
Scheduled tasks should rotate so that they don't block
sending when they cannot be send.

[MAILPOET-1391]
2018-06-04 16:00:32 +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
2b351e4f34 Use constants for magic numbers, clean up tests 2018-05-03 13:07:29 +03: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
Tautvidas Sipavičius
511e07455f Fix migration task to be done only when one hasn't been done
[MAILPOET-1333]
2018-03-21 11:21:23 +02:00
Vlad
5cb39b9bf9 Removes comment that triggers a lint warning 2018-03-20 16:41:36 -04:00
Vlad
d317eb4fbd Adds unit test 2018-03-20 16:30:28 -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
057f0376a5 Adds unit test 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
606177baaf Fix daemon ping timeout in tests [MAILPOET-903] 2018-02-14 01:29: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
4c0f5bb456 Add new unit tests [MAILPOET-903] 2018-02-13 11:39:50 +03:00
stoletniy
be6647d763 Fix unit tests [MAILPOET-903] 2018-02-13 11:39:50 +03:00
stoletniy
9526a6b470 Fix sending of scheduled standard email to dynamic segments [MAILPOET-1286] 2018-02-02 19:19:49 +03:00
Vlad
a3b3e1f8df Removes filter after use 2018-01-16 08:24:44 -05:00
Vlad
87aca7c667 Uses a helper to intercept WP functions 2018-01-16 08:21:26 -05:00
Vlad
a7a8cd2be4 Updates filter name 2018-01-16 08:20:29 -05:00
Vlad
819d4dc17a Abstracts WP functions 2018-01-15 19:52:51 -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
Vlad
0e2a67c203 Validates ping response when displaying cron URL status 2017-12-18 20:28:09 -05:00
Vlad
64c40d5a1c Adds test for multisite environment 2017-11-21 12:25:54 -05:00
Pavel Dohnal
0271675cd0 Use dynamic segments for sending queue
[PREMIUM-38]
2017-10-18 10:08:04 +01:00
Vlad
02966c3b93 Sets cron daemon timeout to 5s across the plugin
Adds hook to override cron request arguments
2017-09-20 14:59:48 +01:00
Pavel Dohnal
84dc48daec Allow passing cron timeouts
[MAILPOET-1114]
2017-09-20 14:59:48 +01:00
Vlad
320dfa2ec5 Extracts duplicate code into reusable methods
Updates unit test
2017-09-20 14:59:48 +01:00
Tautvidas Sipavičius
e9c55260c8 Merge pull request #1092 from mailpoet/db_version_settings_logic_update
Uses plugin's settings to store DB version [MAILPOET-1095]
2017-09-11 18:15:17 +03:00
Vlad
b0343254c0 Renames db version setting value 2017-09-11 10:05:09 -04:00
Vlad
52470360a1 Returns ping response body instead of boolean 2017-09-10 18:49:15 -04:00
Vlad
6c62459ed4 Adds filter to override default cron request URL 2017-09-10 18:36:22 -04:00
Vlad
98482cebf9 Uses plugin's settings to store DB version 2017-09-10 16:31:36 -04:00
stoletniy
eff996e1f8 Unify key state constant names, leave back compat with unlocker [MAILPOET-1070] 2017-08-29 10:58:16 +03:00
stoletniy
4616cf67bf Fix a test [MAILPOET-1069] 2017-08-25 16:10:01 +03: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
a587b0a966 Links are not re-hashed when re-rendering the same newsletter 2017-08-15 12:55:05 +00:00
Vlad
7c30192a03 Adds option to replace shortcodes in one string using contents from
another string
Adds unit tests
2017-08-01 09:32:42 +02:00
Pavel Dohnal
7cf3d0960d Unify API response constants
[MAILPOET-1035]
2017-07-31 13:51:23 +02:00
stoletniy
6fb18ad321 Fix PSR1.Classes.ClassDeclaration sniffer rule in tests [MAILPOET-1025] 2017-07-26 18:28:56 +03:00
stoletniy
321393f119 Fix Squiz.Classes.ClassFileName sniffer rule in tests [MAIPOET-1025] 2017-07-26 17:03:43 +03:00
Tautvidas Sipavičius
90b93bd76e Merge pull request #1018 from mailpoet/prevent_sending_with_broken_newsletter_body
Prevents sending emails when rendered newsletter is broken [MAILPOET-1020]
2017-07-25 13:13:03 +03:00
Vlad
9dd326e7db Updates class to use newly added validate() method on the model
Validates existing queue's rendered newsletter body
Cleans code formatting
2017-07-24 12:49:39 -04:00
Tautvidas Sipavičius
7e6d900b53 Merge pull request #997 from mailpoet/scheduled_task_subscribers
Extract subscribers to a separate table in the Bounce worker [MAILPOET-987]
2017-07-24 17:14:38 +03:00