Commit Graph

5540 Commits

Author SHA1 Message Date
Rostislav Wolny
70e5f86be3 Fix Truncated incorrect DOUBLE error in SQL for last engagement date
The error was caused by comparing 0 with string dates.
[MAILPOET-3874]
2021-10-18 12:42:45 +02:00
wxa
08364b81e1 Fix collation detection for subscriber engagement calculation
[MAILPOET-3851]
2021-10-18 12:42:18 +02:00
Jan Lysý
1701229a10 Add a full stop to messages where was missing
[MAILPOET-3846]
2021-10-18 11:03:50 +02:00
wxa
1956e418d9 Convert resume sending button JS to TS, fix missing mta method var
[MAILPOET-3830]
2021-10-18 09:37:52 +02:00
wxa
516e5fbb14 Reuse the new notice for a similar forgotten MSS notice
[MAILPOET-3830]
2021-10-18 09:37:52 +02:00
wxa
dbb52a758e Add deep links to email authorization notices
[MAILPOET-3830]
2021-10-18 09:37:52 +02:00
Jan Lysý
8166584d10 Add activation url to store
[MAILPOET-3719]
2021-10-18 09:18:18 +02:00
Rodrigo Primo
58f29a0f42 Refactor SimpleWorker::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
6ae1e0b400 Refactor WooCommercePastOrders::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
77ca869d02 Refactor UnsubscribeTokens::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
9041fdc0f8 Refactor SubscribersLastEngagement::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
857dc95058 Refactor KeyCheckWorker::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
8fcd84e03a Refactor InactiveSubscribers::proccessTaskStrategy() to use Doctrine
Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
963da3bf16 Refactor the method processTaskStrategy() of some SimpleWorker child classes
This commit refactors the method processTaskStrategy() of some
SimpleWorker child classes to use Doctrine instead of Paris. In this
commit are included all the classes that it was only necessary to change
the method signature as they were receiving a ScheduledTask object as
the first parameter but didn't use it. Now they receive a
ScheduledTaskEntity object as the first param.

[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
5803fef8cd Refactor Cron\Workers\Bounce to use ScheduledTaskEntity
[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Rodrigo Primo
a020b6aaaa Add methods getRescheduledCount() and setRescheduledCount() to ScheduledTaskEntity
[MAILPOET-3843]
2021-10-05 13:21:53 +02:00
Jan Lysý
4a3aecbf5c Use WP functions to get content and excerpt
[MAILPOET-3671]
2021-10-04 14:37:43 +02:00
Jan Lysý
47bba6799f Add new WP functions
[MAILPOET-3671]
2021-10-04 14:37:43 +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
Pavel Dohnal
c7ca1d0101 Remove unnecesary line
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Pavel Dohnal
1aa93d1b3c Add a new test for creating a custom field
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Pavel Dohnal
acc7ab043d Refactor addSubscriberField to Doctrine
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Pavel Dohnal
b368a76593 Refactor get custom field method to Doctrine
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Pavel Dohnal
518c33187f Move custom fields methods to a separate file
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
Pavel Dohnal
bef34484ae Use the shortcut for translation function
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
wxa
1c738d5c73 Fix "Class 'PHPMailer\PHPMailer\Exception' not found" error
[MAILPOET-3836]
2021-10-04 10:53:02 +02:00
Jan Lysý
05f0a6ad19 Improve replacing paragraph class
[MAILPOET-3474]
2021-10-04 10:19:39 +02:00
Jan Lysý
93674929b0 Add spacing at end of the paragraph when next element is heading
[MAILPOET-3474]
2021-10-04 10:19:39 +02:00
Jan Lysý
e2c1534ea9 Replace paragraph class when other is defined
[MAILPOET-3474]
2021-10-04 10:19:39 +02:00
Brezo Cordero
7f7903e55c Allow reply-to with only address
[MAILPOET-3812]
2021-10-04 09:36:29 +02:00
Pavel Dohnal
b7e8557bc6 Display settings in the listings
[MAILPOET-3763]
2021-09-29 14:17:57 +02:00
Pavel Dohnal
ac3625e434 Create listings tab for re-engagement emails
[MAILPOET-3763]
2021-09-29 14:17:57 +02:00
Pavel Dohnal
6ac7015b5c Save the re-engagement email
[MAILPOET-3763]
2021-09-29 14:17:57 +02:00
Pavel Dohnal
e7e738320f Create a feature flag
[MAILPOET-3763]
2021-09-29 14:17:57 +02:00
Jan Lysý
6f22a65692 Fix strict mode compatibility in MySQL
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Jan Lysý
ddb025c0ec Use Doctrine in InactiveSubscribersController
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Jan Lysý
616b8868fe Improve inactive subscribers task
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Rodrigo Primo
f8e8a26d52 Fix error when creating ScheduledTasksRepository::findByTypeAndStatus()
When refactoring ScheduledTask::findByTypeAndStatus() to
ScheduledTasksRepository::findByTypeAndStatus(). During the process, I
mistankenly converted `$query->whereGt('scheduled_at', $now);` to
`$queryBuilder->andWhere('st.scheduledAt >= :now');`. It should be `>`
instead of `>=`.

[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Rodrigo Primo
60ae98e09c Helper method to support migration from Paris to Doctrine
This commit adds a helper method called convertTaskClass() to
CronWorkerRunner to support the migration of the code inside this class
from Paris to Doctrine. This method receives a ScheduledTaskEntity and
returns a ScheduledTask. It will be remove once the migration is
finished.

[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
Pavel Dohnal
ec76a5c868 Check if the form id is missing in the widget
[MAILPOET-3837]
2021-09-29 12:55: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ý
e9a4c6e090 Fix incompatibility after Doctrine refactor
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
857268c5ff Allow preview for unsaved forms
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
2af076ab83 Delete FormFactory
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
e1f83d4b51 Remove code for creating a new form
This code was unreachable because the flow for form creation was changed.

[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
42e73437d9 Don't create a form on template select
[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