Commit Graph

135 Commits

Author SHA1 Message Date
oluwaseun Olorunsola
95f7e427f9 Use __ without using the WPFunctions wrapper
MAILPOET-3852
2021-11-03 13:35:18 +01:00
oluwaseun Olorunsola
1cdbf31b50 Include list column for excel subscribers export
MAILPOET-3852
2021-11-03 13:35:18 +01:00
Jan Lysý
6e6ba3e7a1 Use new signature of the dynamicSegmentFilterData constructor
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Jan Lysý
8aad2a8126 Refactor InactiveSubscribersControllerTest to Doctrine
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Jan Lysý
93e038371d Delete redundant test
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Jan Lysý
2175a096e4 Add setting last_engagement_at
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Rodrigo Primo
fb5ff0b90a Replace Paris code with Doctrine equivalents for exporter tests
[MAILPOET-3738]
2021-08-25 17:01:33 +02:00
Rodrigo Primo
8b7815caf8 Use Doctrine for the opens and clicks exporters
This commit refactors the code that handles exporting e-mails opens and
clicks when generating the personal data file to use Doctrine instead of
Paris. I opted to do this in this task as opens and clicks code share
some functionality, and I didn't want to add more code that relies on
Paris, as we are eventually going to remove it.

[MAILPOET-3738]
2021-08-25 17:01:33 +02:00
Rodrigo Primo
780ac5e53c Add email opens data when exporting personal data
This commit adds stats about email opens data to the personal data
exported by WP.

To do this, I refactored the code that adds email clicks stats to use
base abstract class with functionality that is shared between both
exporters.

[MAILPOET-3738]
2021-08-25 17:01:33 +02:00
Rodrigo Primo
4fdcee1064 Add the new user agent field when exporting data about clicks
This commit includes information about the user agent used when clicking
links in e-mails to the data that MailPoet exports when the WP tool
"Export Personal Data" is used.

When information about the user agent is not available, the string
'Unknown' is displayed instead.

This information is available under the section "MailPoet Emails
Clicks".

[MAILPOET-3738]
2021-08-25 17:01:33 +02:00
Brezo Cordero
d2570001db Add test for orphan SubscriberSegments deletion
[MAILPOET-3652]
2021-08-19 09:04:31 +02:00
Brezo Cordero
44932d27c9 Allow import subscribers with empty IP address
Allow import subscribers with empty confirmed_ip or subscribed_ip when one of the columns is selected in the last step of the import.
Don't allow importing invalid IP addresses - still import the subscriber but remove the invalid IP address.

[MAILPOET-3665]
2021-08-16 10:37:31 +02:00
Jan Lysý
74dc9fce53 Remove the character "~" from counts
[MAILPOET-3708]
2021-08-16 10:25:37 +02:00
Jan Lysý
a6dc552cdc Use new controller with subscribers counts
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Jan Lysý
9f9706e319 Clear cache in failing integration tests
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Jan Lysý
96c84009b7 Add tilde before subscribers count in selects
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Jan Lysý
4c67e97206 Fix parameters in integration tests
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
f106d6f2f2 Fix dependencies in integration tests
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
eb189809ae Use Doctrine model in LinkTokensTest
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
fc455d7cfa Add saving custom fields on subscribe
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
5ce4eeed10 Fix flaky test in SubscriberActionsTest
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
5ef040bb93 Add integration test for SubscriberSubscribeController
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
13b4c74c00 Use Doctrine in SubscriberActions integration tests
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
69d5eb42f7 Use Doctrine in RequiredCustomFieldValidator
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
41324cf62a Add more supported fields to save method
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Jan Lysý
bb9d4429ec Add integration test for SubscriberSaveController
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Rodrigo Primo
a49bf8118a Attempt to fix a flaky integration test
This commit attempts to fix the integration test
SubscriberListingRepositoryTest::testReturnsCorrectCountForSubscribersInDynamicSegment()
that was failing sometimes on CircleCI. My theory is that the test was
failing because we were using created_at to order the subscribers in the
query that is used to get subscribers in a given dynamic segment, but
there is a chance the the value of this field is the same for all the
three subscribers that are created in this test. As this could lead to a
situation where the order of the returned subscribers changes, causing
the test to fail. To work around that, I changed the test to order the
results by ID. This way we should always get the subscribers in the same
order.

[MAILPOET-3451]
2021-03-15 14:33:59 +01:00
Rostislav Wolny
aff4c9d5b7 Fix dynamic segments filtering in subscriber export
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
40c9f047be Refactor segment filter data to embedded object
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
wxa
e71e063ef0 Use same query logic for counting and exporting subs w/o lists
[MAILPOET-3462]
2021-03-10 13:16:48 +01:00
Rostislav Wolny
6f42222abc Fix subscriber consent data in export
[MAILPOET-3472]
2021-03-09 13:13:55 +01:00
Jan Lysý
62bf43ad3f Add consent evidence columns to import tests
[MAILPOET-3389]
2021-03-08 11:39:44 +01:00
Jan Lysý
a3224e9286 Remove old unused class for read subscribers
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
8450beaf10 Add tests for get subscribers in ImportExportRepository
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
4a2af719db Remove use old model from ExportTest
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
cbea75927a Add ignoring improper subscribers from MailChimp
[MAILPOET-3404]
2021-03-02 14:29:27 +01:00
Rostislav Wolny
ff284cb12f Fix flaky Import test
Comparing timestamps with delta parameter allow values that differs by 1 second.
[MAILPOET-3412]
2021-03-01 08:43:45 +01:00
Jan Lysý
2bf5e93125 Add integration test for ImportExportRepository
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
Jan Lysý
0347e44893 Use importExportRepository in import
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
Jan Lysý
d500f872d7 Refactor integration Import test
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
Jan Lysý
1deaef4321 Use Doctrine in integration test for Import
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
Jan Lysý
2f1899d810 Add new dependencies to ImportTest
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
Rostislav Wolny
cd578e6475 Refactor fetching list of subscribers for export
[MAILPOET-3146]
2021-01-25 09:17:17 +01:00
Jan Lysý
922c52f7df Remove phpstan errors from the rest of the tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
83eecc9dc5 Fix getting subscribers without a list
[MAILPOET-3285]
2021-01-11 11:23:52 +01:00
Rostislav Wolny
b1feed43f6 Fix subscriber listing with dynamic segment filter
[MAILPOET-3319]
2021-01-04 13:14:55 +01:00
Jan Lysý
83cb272555 Use method createOrUpdate from SegmentRepository in tests
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
Rostislav Wolny
d91c383e53 Fix importing WP users as subscribers
[MAILPOET-3298]
2020-11-16 13:25:56 +01:00
Jan Lysý
b1fc127f98 Add test for filtering subscribers without segment
[MAILPOET-3197]
2020-10-29 15:00:51 +01:00
Ján Mikláš
4045fba527 Remove unnecessary duplicated 'text' property
[MAILPOET-3073]
2020-10-29 14:09:37 +01:00