Commit Graph

2834 Commits

Author SHA1 Message Date
Vlad
a1b3aaf1f8 Adds method to create subscriber 2017-05-16 20:58:43 -04:00
Vlad
3a1bf88c22 Extracts some logic into resuable methods 2017-05-16 20:58:43 -04:00
Vlad
bd39c34f03 Adds unit tests 2017-05-16 20:56:56 -04:00
Vlad
73121c2ca5 Adds method to return all segments minus WP Users segment(s) 2017-05-16 20:56:56 -04:00
Vlad
5e34bbf9d5 Adds method to return subscriber fields 2017-05-16 20:56:56 -04:00
Vlad
cedd94550f Adds unit test for API entry point 2017-05-16 20:56:55 -04:00
Vlad
8b13889c7a Adds one entry point for both JSON and MP APIs
Removes endpoints folder and moves versions to the root
JSON API folder
2017-05-16 20:56:55 -04:00
Vlad
398d7d3d80 Moves current API under JSON namespace 2017-05-16 20:56:54 -04:00
Vlad
2354cac719 Updates unit test 2017-05-15 08:55:32 -04:00
Vlad
cd5f3165c7 Uses queue ID when fetching newsletter link by hash 2017-05-14 22:02:19 -04:00
Vlad
6e700b0cfa Moves newsletter hash generating logic into Security helper class
Updates Links class to use Security helper's hash generating method
2017-05-14 20:15:40 -04:00
Alexey Stoletniy
ff5f87eeca Rename processQueueLogic() method to processQueueStrategy() [PREMIUM-4] 2017-05-09 15:42:37 +03:00
Alexey Stoletniy
e85b969e11 Rename initApi() to init() in workers [PREMIUM-4] 2017-05-09 09:12:20 +03:00
Alexey Stoletniy
2eb98905b6 Encapsulate date formatting within the DateTime class [PREMIUM-4] 2017-05-09 08:54:12 +03:00
Alexey Stoletniy
90b2b46db4 Make key check method names consistent [PREMIUM-4] 2017-05-08 13:16:05 +03:00
Alexey Stoletniy
3f151fd235 Extract simple workers common code into a base class [PREMIUM-4] 2017-05-08 07:38:56 +03:00
Alexey Stoletniy
4b1f216cd3 Use WP's date format instead of a hard-coded one [PREMIUM-4] 2017-05-05 18:57:15 +03:00
Alexey Stoletniy
98eab956e9 Rename checkAPIKey to checkMSSKey (MailPoet Sending Service) [PREMIUM-4] 2017-05-05 18:12:48 +03:00
Alexey Stoletniy
a7260cba3d Make the Premium key check stricter, split a unit test into more granular ones [PREMIUM-4] 2017-05-05 18:09:00 +03:00
Alexey Stoletniy
787e022382 Rename license key constants and vars, optimize error generation [PREMIUM-4] 2017-05-05 18:04:52 +03:00
Alexey Stoletniy
3cb08e3c09 Rename MSS check methods to better distinguish them from Premium ones [PREMIUM-4] 2017-05-04 09:36:38 +03:00
Alexey Stoletniy
0474985866 Add unit tests [PREMIUM-4] 2017-05-04 09:25:34 +03:00
Alexey Stoletniy
0fbc7fb7eb Add Premium key validation [PREMIUM-4] 2017-05-03 12:20:13 +03:00
stoletniy
64d3e659a4 Merge pull request #879 from mailpoet/newsletter_model_update
Newsletter model update [MAILPOET-830]
2017-05-02 16:19:20 +03:00
Vlad
19458546a0 Updates unit tests 2017-05-02 08:41:51 -04:00
Alexey Stoletniy
956fdd5cff Improve a deletion test to handle multiple queues, fix comments [MAILPOET-830] 2017-05-02 09:07:38 +03:00
Vlad
a0289775cb Trashes/restores multiple associated queues when newsletter is
trashed/restored
2017-05-01 20:15:41 -04:00
Vlad
1ea915017a Fixes unit test 2017-05-01 09:26:36 -04:00
Vlad
e10b99eaac Deletes all sending queue and segment associations when newsletters are bulk deleted 2017-05-01 09:26:35 -04:00
Vlad
0316f3ea3e Restores all sending queue associations when newsletters are bulk restored 2017-05-01 09:26:35 -04:00
Vlad
166fef899f Trashes all sending queue associations when newsletters are bulk trashed 2017-05-01 09:26:35 -04:00
Vlad
4e850408fc Restores sending queue association when newsletter is restored 2017-05-01 09:26:35 -04:00
Vlad
6e2494831c Trashes sending queue association when newsletter is trashed 2017-05-01 09:26:35 -04:00
Vlad
38a7d8f80a Deletes queue and segment associations when deleting newsletter 2017-05-01 09:26:34 -04:00
stoletniy
abfebc8643 Merge pull request #880 from mailpoet/subscriber_shortcode_fix
Returns shortcode's default value when subscriber's first/last name is blank [MAILPOET-899]
2017-05-01 11:28:54 +03:00
Alexey Stoletniy
40a3487d3d Remove a redundant condition, fix a typo in a test name [MAILPOET-880] 2017-05-01 11:20:33 +03:00
mrcasual
a93865e594 Merge pull request #874 from mailpoet/trashed_segments_fix
Exclude trashed segments from subscriber listing filter and 'not in list' count [MAILPOET-893]
2017-04-30 20:09:23 -04:00
Vlad
4e76286b44 Returns shortcode's default value when subscriber's first or last name is empty 2017-04-28 09:49:00 -04:00
Tautvidas Sipavičius
e1991deafd Merge pull request #876 from mailpoet/manage_subscription_shortcode_fix
Depreciates and removes certain link shortcodes [MAILPOET-895]
2017-04-27 15:51:26 +03:00
Tautvidas Sipavičius
1421407a23 Merge pull request #875 from mailpoet/smtp_hooks
Adds filter to SMTP transport agent [MAILPOET-889]
2017-04-27 14:43:40 +03:00
stoletniy
36e4bf468d Merge pull request #871 from mailpoet/editor_marionette
Upgrade Marionette version in newsletter editor [MAILPOET-892]
2017-04-27 11:19:46 +03:00
Vlad
586470e8f9 Updates unit tests 2017-04-26 17:58:45 -04:00
Vlad
4a538e677d Adds filter to SMTP transport agent 2017-04-26 09:55:57 -04:00
Alexey Stoletniy
3833688115 Exclude trashed segments from subscriber listing filter and 'not in list' count [MAILPOET-893] 2017-04-26 11:23:16 +03:00
Alexey Stoletniy
fbc0a3ad8d Add detailed stats page support in Free [PREMIUM-1] 2017-04-25 12:45:49 +03:00
Tautvidas Sipavičius
0360f16dc8 Merge pull request #865 from mailpoet/api_versioning
Adds versioning to our public API [MAILPOET-881]
2017-04-25 12:07:17 +03:00
Vlad
f4800dbbae Removes namescape format enforcement 2017-04-24 20:52:01 -04:00
Tautvidas Sipavičius
0b8c787cda Partially migrate newsletter editor to Marionette 3.x from 2.x 2017-04-24 18:00:23 +03:00
Tautvidas Sipavičius
4f5c464659 Merge pull request #866 from mailpoet/list_unsubsribe_url
List unsubsribe url [MAILPOET-797]
2017-04-24 14:58:06 +03:00
Vlad
5fa7930896 Redefines how endpoint namespaces are set
Updates error response to terminate connection only on AJAX requests
Optimizes and cleans up code based on code revew comments
2017-04-20 22:34:18 -04:00