Commit Graph

93 Commits

Author SHA1 Message Date
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
Rostislav Wolny
dff9154e7d Fix export of newsletters statistics [MAILPOET-1444] 2018-06-29 14:40:13 +02:00
Michelle Shull
d56f2c59ef Merge pull request #1355 from mailpoet/subscriber-source
Subscriber source [MAILPOET-1377]
2018-05-21 08:17:00 -04:00
Pavel Dohnal
d4e3334f9e Add source to privacy exports
[MAILPOET-1377]
2018-05-14 16:22:51 +01:00
Michelle Shull
e55aab43b5 Merge pull request #1350 from mailpoet/gdpr-clicks
Export statistics clicks [MAILPOET-1357]
2018-05-14 10:19:37 -04:00
Pavel Dohnal
f5d59eb00e Add source to imported subscribers
[MAILPOET-1377]
2018-05-14 13:55:47 +01:00
Pavel Dohnal
1af5802030 Add subscriber source
[MAILPOET-1377]
2018-05-14 13:55:47 +01:00
Michelle Shull
709de7dd54 Merge pull request #1348 from mailpoet/gdpr-opens
Export viewed emails [MAILPOET-1356]
2018-05-14 07:00:46 -04:00
Pavel Dohnal
a664d3631b Export statistics clicks
[MAILPOET-1357]
2018-05-11 18:34:25 +01:00
Pavel Dohnal
d5b9664bde Fix failing tests 2018-05-09 12:47:25 +01:00
Pavel Dohnal
bd01b5855e Add subscriber eraser for GDPR
[MAILPOET-1359]
2018-05-09 09:28:04 +01:00
Pavel Dohnal
ee99195b30 Export viewed emails
[MAILPOET-1356]
2018-05-08 12:26:41 +01:00
Pavel Dohnal
68b091848c Export newsletters sent to a user
[MAILPOET-1355]
2018-05-07 14:19:44 +03:00
Pavel Dohnal
11067327a1 Add Subscriber exporter
[MAILPOET-1358]
2018-05-03 16:35:40 +01:00
Pavel Dohnal
8e13eb50bf Export lists for email
[MAILPOET-1354]
2018-05-03 16:33:22 +01:00
Vlad
6c64ba90c7 Abstracts WP's remove_all_filters function and fixes export test 2018-04-13 14:20:53 -04:00
Amine Ben hammou
82ec8d7ef9 adding tests 2018-03-16 15:31:29 +01:00
Amine Ben hammou
b9c31698d5 moving subscribers fetching logic into a separated class. 2018-03-08 18:01:56 +01:00
Vlad
0d69b05ac0 Removes option to group by lists during export 2018-02-19 09:53:34 +00:00
Vlad
b5b0a02ea4 Removes option to export only confirmed subscribers 2018-02-16 14:46:34 +00:00
Vlad
3c43c04586 Imports all new subscribers with subscribed status as default 2018-02-16 14:46:34 +00:00
Vlad
e87134eca4 Adds IP address field to export 2018-02-16 14:46:34 +00:00
Vlad
c8f334d782 Prevents overwriting global subscription status 2018-02-16 14:46:34 +00:00
Vlad
7cf63965a0 Adds distinction between global and list status
Exports subscribers with any list status
Limits "confirmed only" option to global status
2018-02-16 14:46:34 +00:00
stoletniy
37c58c6aa4 Add a comment about testing normalization [MAILPOET-1271] 2018-01-23 18:08:13 +03:00
Amine Ben hammou
4abd034880 normalizing emails in lowercase 2018-01-23 13:46:10 +00:00
stoletniy
6fb18ad321 Fix PSR1.Classes.ClassDeclaration sniffer rule in tests [MAILPOET-1025] 2017-07-26 18:28:56 +03:00
stoletniy
29491dfd3e Fix active coding standard rule violations in tests [MAILPOET-981] 2017-07-03 16:20:44 +03:00
Pavel Dohnal
b80683a9a1 Fix unit tests for PHPUnit v6
Codeception from version 2.3 up comes with PHPUnit v6 which changed
__construct behaviour. Our tests have to call parent __constructor in
order to work. The error was:
[PHPUnit\Framework\Exception] array_merge(): Argument #1 is not an array
2017-06-07 11:32:33 +01:00
Vlad
099db4e1c8 Removes unused variable
Fixes typo in error message
2017-06-05 11:59:13 -04:00
Vlad
7f566fb672 Adds client-side check for invalid characters in email addresses
Adds server-side validation of email addresses using WP's is_email()
2017-06-04 18:48:11 -04:00
Vlad
e3b8c1836b Adds additional new and existing subscribers to the test method to
ensure that data between new subscribers does not mix
2017-04-13 15:57:04 -04:00
Vlad
a4b091dc32 Extends test condition to check for all new subscriber column data 2017-04-13 10:50:36 -04:00
Alexey Stoletniy
bee9bfcfcc Fix data being mixed up when splitting subscribers, remove excessive arguments [MAILPOET-828] 2017-04-13 11:08:20 +03:00
Vlad
b7d73dcfaa Updates unit test 2017-04-12 09:49:42 -04:00
Vlad
89ff93958f Removes subscriber object modification logic from the splitSubscribersData() method
Uses 2 separate objects with its own data for existing and new subscribers
Extends only new subscribers' object when it is missing required fields
2017-04-10 21:41:21 -04:00
Vlad
b9f7a5673f Removes lefover test code 2017-04-10 11:32:38 -04:00
Vlad
3a9c006cf9 Prevents overwriting existing subscribers' status (and other required fields) unless
the import object contains data for those fields
2017-04-09 22:04:56 -04:00
Tautvidas Sipavičius
5525a959a8 Fix remaining unit tests after translation changes 2017-01-30 21:50:22 +02:00
mrcasual
732ea59e34 Merge pull request #727 from mailpoet/import_step2_subs_count_fix
Fix import step 2 list selection box tallying unconfirmed subscribers… [MAILPOET-709]
2016-12-02 11:20:18 -05:00
Vlad
249824b83c - Updates unit test 2016-11-30 10:54:07 -05:00
Alexey Stoletniy
b074b01b9f Fix import step 2 list selection box tallying unconfirmed subscribers (item B from #476)
Segments::getSegmentsForImport() was aliased to Segments::getSegmentsWithSubscriberCount()
2016-11-30 12:21:08 +03:00
Vlad
9a0bb52860 - Fixes subscribers not being added to list(s) upon import 2016-11-29 15:28:56 -05:00
Tautvidas Sipavičius
c658778476 Merge pull request #723 from mailpoet/bounced_subscribers
Add 'Bounced' status to subscribers [MAILPOET-684]
2016-11-29 12:47:41 +02:00
Alexey Stoletniy
36b935b9ae Add 'Bounced' status to subscribers [MAILPOET-684]
Fix SubscriberTest->testItHasGroupFilter() making only one of four assertions due to lack of data.
Fix a small issue with Import. Unexpected values for the status field were converted to 'unconfirmed' rather than 'subscribed' due to non-strict comparison in in_array(). This hindered 'bounced' status import as well.
2016-11-28 19:37:47 +03:00
Tautvidas Sipavičius
a04f5a2d25 Merge pull request #717 from mailpoet/import_fix
Fixes import of duplicate subscribers and whose column data is incomplete [MAILPOET-694]
2016-11-28 15:05:35 +02:00
Vlad
71fbc1a7b0 - Simplifies code that prepares subscriber custom field data for
creation/update
- Updates tests
2016-11-27 20:53:20 -05:00
Alexey Stoletniy
29673d0799 Escape paths for regexes in ExportTest->testItCanConstruct() to make it pass on Windows 2016-11-24 16:23:11 +03:00
Vlad
0c8cc27ea2 - Updates MailChimp API key regex 2016-11-22 12:44:58 -05:00
Vlad
7c61fa2c81 - Fixes an issue where a subscriber with the same email but different case
variant is not considered unique
- Fixes an issue where an object of existing subscribers would not have
  the same number of data in each child array due to null values being
  removed
- Updates unit tests
2016-11-21 21:53:43 -05:00