Commit Graph

804 Commits

Author SHA1 Message Date
Rostislav Wolny
5490b9e2a2 Fix PHPStan error
We create $values array in the same method and its count is always multiple of 3
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
wxa
046f7d58e9 Remove DynamicSegment model: deprecation period expired
[MAILPOET-3819]
2021-10-27 11:24:22 +02:00
wxa
1f924c8d2e Mark StatisticsUnsubscribes model as deprecated
[MAILPOET-3819]
2021-10-27 11:24:22 +02:00
Rodrigo Primo
ba15b9b251 Move ScheduledTask::findFutureScheduledByType() to ScheduledTasksRepository
Now that all other methods that use ScheduledTask::findByTypeAndStatus()
were moved to ScheduledTasksRepository, we can move
findFutureScheduledByType() as well and delete
ScheduledTask::findByTypeAndStatus().

[MAILPOET-3845]
2021-10-26 16:50:27 +02:00
Rodrigo Primo
498ceabc8c Refactor CronWorkerRunner to use Doctrine instead of Paris
[MAILPOET-3844]
2021-10-25 14:17:21 +02:00
Rodrigo Primo
2c78db9e04 Refactor ScheduledTasks::rescheduleProgressively() to use Doctrine
[MAILPOET-3844]
2021-10-25 14:17:21 +02:00
Pavel Dohnal
aaa24d086b Use Doctrine in WooCommercePurchases class
[MAILPOET-3814]
2021-10-25 13:08:17 +02:00
Rodrigo Primo
57c80ea763 Change SimpleWorker::prepareTaskStrategy() to use Doctrine
This commit changes the method prepareTaskStrategy() in the class
SimpleWorker and all its child classes to use ScheduledTaskEntity
instead of ScheduledTask.

[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Rodrigo Primo
e69a3f9a53 Migrate method findCompletedByType() to Doctrine
[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Rodrigo Primo
65eef3dfbe Migrate methods findDueByType() and findRunningByType() to Doctrine
[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Pavel Dohnal
9977ed75fb Deprecate the form model
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Rodrigo Primo
97d177013f Refactor \MailPoet\Models\Newsletter::getArchives() to Doctrine
[MAILPOET-3629]
2021-09-20 14:01:34 +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
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