Commit Graph

1259 Commits

Author SHA1 Message Date
Rodrigo Primo
e804a0fe7d Fix method used for a integration test
The test ScheduledTaskTest::testItCanGetFutureScheduledTasks() was
created to test ScheduledTask::findFutureScheduledByType() but due to a
mistake it was testing ScheduledTask::findDueByType().

[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Rodrigo Primo
65eef3dfbe Migrate methods findDueByType() and findRunningByType() to Doctrine
[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Brezo Cordero
df5cab2060 Fix flaky schedule welcome email test
[MAILPOET-3793]
2021-09-29 09:59:25 +02:00
Brezo Cordero
d37f0642d5 Fix flaky schedule automatic email test
[MAILPOET-3793]
2021-09-29 09:59:25 +02:00
Jan Lysý
2af076ab83 Delete FormFactory
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
1a3f16a3c0 Remove action create from endpoint
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Pavel Dohnal
9977ed75fb Deprecate the form model
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
b94b8f119a Remove old form model from MP2 migrator
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
05d69913a6 Remove old Form model from the widget test
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
0f618cdc64 Remove old Form model from the subscribers test
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
ca88c96470 Refactor Widget to use Doctrine
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Rodrigo Primo
ffa91da869 Create a proxy method to get the processed date from within NewsletterEntity
[MAILPOET-3629]
2021-09-20 14:01:34 +02:00
Rodrigo Primo
97d177013f Refactor \MailPoet\Models\Newsletter::getArchives() to Doctrine
[MAILPOET-3629]
2021-09-20 14:01:34 +02:00
Rodrigo Primo
a25a6db1f5 Display the updated_at field using the site timezone
This commit changes the logic to display the updated_at field for tasks
in the system status page to use the site timezone.

[MAILPOET-3692]
2021-09-20 10:33:33 +02:00
Brezo Cordero
9acfe4fbee Fix subscribers clicks stats test
[MAILPOET-3796]
2021-09-20 09:18:45 +02:00
Jan Lysý
ac18572b68 Update integration test for rendering form
[MAILPOET-3786]
2021-09-20 09:17:43 +02:00
Pavel Dohnal
ec86e742c2 Fix coding standards
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
21839fc30b Fix indentation of multiline function declarations
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
cdda3480ca Make all constructor signatures multiline
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00
Jan Lysý
ccedd3a112 Add count of bounced emails into API response
[MAILPOET-3766]
2021-09-14 15:59:50 +02:00
Brezo Cordero
f3ad7ac0b4 Show CAPTCHA from first signup
[MAILPOET-3788]
2021-09-13 11:29:21 +02:00
Pavel Dohnal
5ef1f9afa1 Add an integration test
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
a303b4f04e Process queues to save statistics
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
db04687f3c Refactor to Doctrine
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
731b5e7448 Refactor to Doctrine
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
6f28228c55 Stop using a deprecated function
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Brezo Cordero
39e0bd1ad5 Throttling also for logged-in users
[MAILPOET-3790]
2021-09-13 09:46:30 +02:00
Rostislav Wolny
c2c383e0b5 Add method for immediate scheduling/rescheduling cron tasks
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Rostislav Wolny
b9815c609f Refactor cron worker scheduler test to Doctrine
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Rostislav Wolny
1c4eb15f93 Refactor CronWorkerScheduler to Doctrine
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Pavel Dohnal
d1b2458227 Add # of machine opens segment
[MAILPOET-3737]
2021-09-08 14:38:41 +02:00
Pavel Dohnal
2ab5f04f46 Add segment for machine opens
[MAILPOET-3737]
2021-09-08 14:38:41 +02:00
Pavel Dohnal
cdd3ff5178 Use only non-machine opens for segment # open
[MAILPOET-3737]
2021-09-08 14:38:41 +02:00
Pavel Dohnal
49c9dd5f79 Use only non-machine opens for segment open
[MAILPOET-3737]
2021-09-08 14:38:41 +02:00
Rostislav Wolny
eae0072f24 Use WordPress current_time for setting lats engagement
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
ebf4773eb8 Process adding last engagement time in batches
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
bb806613d7 Update last engagement time also from latest Woo order
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
8dd7c240bb Add worker for updating last engagement from opens and clicks
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
62ae0db39e Update subscribers last engagement when they create new order
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
b215ab13c8 Track last engagement only once per minute
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
9c3fc95a6d Add updating last engagement within clicks tracking
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
ed8de3eb17 Save last engagement when tracking opens
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Brezo Cordero
1de3aef76f Use data factories on tests
[MAILPOET-3637]
2021-09-06 10:08:09 +02:00
Brezo Cordero
fb5f65f60e Refactor ViewInBrowser to Doctrine
Use NewsletterLinkEntity in test instead of MailPoet\Models\NewsletterLink

[MAILPOET-3673]
2021-09-06 10:08:09 +02:00
Brezo Cordero
9d9efccd98 Refactor ViewInBrowser to Doctrine
Use NewsletterEntity and NewslettersRepository instead of MailPoet\Models\Newsletter.

[MAILPOET-3673]
2021-09-06 10:08:09 +02:00
Rostislav Wolny
bbf19d07c8 Refactor mocking NewsletterRenderer in Woo Renderer test
[MAILPOET-3758]
2021-08-31 12:23:02 +02:00
Rostislav Wolny
54c83a0dac Fix woo transactional email heading rendering
[MAILPOET-3758]
2021-08-31 12:23:02 +02:00
Rodrigo Primo
f8388c5497 Fix reply-to address when sending WP e-mails
This commit makes sure that the reply-to set for WP e-mails is
preserved when MailPoet is used to send them. Before this change,
MailPoet would ignore whatever was set for the reply-to field for WP
e-mails and use the same address as the one used for the sender instead.

I'm not super happy with the solution proposed here. I couldn't find an
easy way to simple set the reply-to address in the Mailer class and that
is why I'm calling Mailer::init() inside WordPressMailer.

[MAILPOET-3707]
2021-08-30 15:21:09 +02:00
Pavel Dohnal
a53a680e8c Make naming more consistent
[MAILPOET-3740]
2021-08-30 14:04:29 +02:00
Pavel Dohnal
464f23c82b Display machine opens
[MAILPOET-3740]
2021-08-30 14:04:29 +02:00