Commit Graph

792 Commits

Author SHA1 Message Date
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
Pavel Dohnal
0b675680ef Refactor click tracking to Doctrine
[MAILPOET-3735]
2021-08-18 14:41:20 +02:00
Jan Lysý
a9621875bd Fix phpstan errors from new version
[MAILPOET-3725]
2021-08-16 15:56:39 +02:00
Jan Lysý
5e1f523c96 Improve code according the review
[MAILPOET-3708]
2021-08-16 10:25:37 +02:00
Jan Lysý
74dc9fce53 Remove the character "~" from counts
[MAILPOET-3708]
2021-08-16 10:25:37 +02:00
Jan Lysý
96c84009b7 Add tilde before subscribers count in selects
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Pavel Dohnal
914ee5b958 Remove unused model Log
[MAILPOET-3624]
2021-06-07 14:41:14 +02:00
Pavel Dohnal
70b2b3c40e Remove unused code
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Pavel Dohnal
a160024c47 Remove the depreated methods
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Pavel Dohnal
6ad686588d Mark old methods as deprecated
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Jan Lysý
24264544ec Mark old model SubscriberIP as deprecated
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
67f648279f Mark old StatisticsForms model as deprecated
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
wxa
91b2a11643 Add deprecation error to old model static calls
[MAILPOET-3484]
2021-03-29 14:31:44 +02:00
wxa
2947a5a299 Mark DynamicSegment model as deprecated
[MAILPOET-3484]
2021-03-29 14:31:44 +02:00
wxa
42adfa784a Remove old dynamic segments code
[MAILPOET-3484]
2021-03-29 14:31:44 +02:00
wxa
37ac7fd381 Remove unused imports
[MAILPOET-3484]
2021-03-29 14:31:44 +02:00
Pavel Dohnal
b12ab9ba66 Remove NewsletterPost model
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
wxa
309ab2b3c0 Trigger error when calling the deprecated getCurrentWPUser() function
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Jan Lysý
3b0af31b10 Mark Subscriber::getCurrentWPUser as deprecated
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
wxa
67824f9eb1 Set task status to invalid instead of deleting
[MAILPOET-3359]
2021-03-10 18:24:21 +01:00
wxa
19dd9180bd Rename 'not in a list' option
[MAILPOET-3462]
2021-03-10 13:16:48 +01:00
Jan Lysý
be29262319 Add support for import subscription consent evidence
[MAILPOET-3389]
2021-03-08 11:39:44 +01:00
Jan Lysý
8cbf06e775 Mark method Subscriber::filterWithCustomFieldsForExport as deprecated
[MAILPOET-3376]
2021-03-08 09:09:00 +01:00
Jan Lysý
8cfd47e656 Move custom field type constants to entity
[MAILPOET-3378]
2021-02-18 10:13:44 +01:00
Jan Lysý
9301ed9289 Remove duplicates property annotation from SendingQueue
[MAILPOET-3329]
2021-01-25 11:08:00 +01:00
Rostislav Wolny
1d7d56af52 Mark unused old segment model methods as deprecated
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Jan Lysý
f140875062 Add missing property annotations used in tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
7950804216 Remove phpstan error from Models
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Rostislav Wolny
952accc9d6 Mark Subscriber::getTotalSubscribers as deprecated
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Pavel Dohnal
1d6cf56fd9 Refactor subscriber statistics to doctrine
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
de6e0e5adb Move groups definitions
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
761e57bdd2 Remove old code
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Jan Lysý
1ee58aad16 Fix empty trash when is trashed only WP Users list
[MAILPOET-3142]
2021-01-05 13:17:46 +01:00
Rostislav Wolny
441cb86a76 Refactor subscription segments selection from old model to api
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
Rostislav Wolny
df22724cf7 Fix unserialize parameters issues in old models
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
e2236e45df Fix form fields extraction
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Pavel Dohnal
78118b07e8 Refactor to doctrine
[MAILPOET-2335] [MAILPOET-2334]
2020-10-22 11:54:41 +02:00
Pavel Dohnal
f8bd946dc0 Check sent emails for products when schedulig an email
[MAILPOET-2335] [MAILPOET-2334]
2020-10-22 11:54:41 +02:00
Pavel Dohnal
9e8ccd2c17 Use native array_column
[MAILPOET-3173]
2020-10-12 10:10:03 +02:00
Rostislav Wolny
bf7bd6d2d9 Fix other phpstan errors in lib
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
Rostislav Wolny
ab9130f845 Fix newsletter::body type errors
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
Jan Lysý
8d410b79ea Remove deprecated methods from Model/Subscriber
[MAILPOET-3033]
2020-10-07 14:26:54 +02:00
Rostislav Wolny
d026517ed9 Refactor search string escaping to a helper function
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
c952ef9542 Use only Listing repository in subscribers listing API
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
f9f8428b42 Move dynamic segment type constant to segment entity
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
ea16dc7925 Hotfix groups filter for subscribers listing
[MAILPOET-3132]
2020-09-08 09:16:56 +02:00
Rostislav Wolny
5550f5eef2 Fix segment and newsletter listing SQL to work with ONLY_FULL_GROUP_BY
[MAILPOET-3115]
2020-08-27 13:56:57 +02:00
Pavel Dohnal
6047b2cb32 Fix SQL error when running with ONLY_FULL_GROUP_BY
[MAILPOET-3110]
2020-08-24 12:11:03 +02:00