Commit Graph

720 Commits

Author SHA1 Message Date
8292cd9fd3 Convert "is in Country" select to multiple select
[MAILPOET-3952]
2021-12-20 09:29:41 +01:00
c1f4e0bf32 Make sure the user roles is always array
[MAILPOET-3955]
2021-12-16 14:46:16 +01:00
98df610639 Remove condition for extra data on the response builder
[MAILPOET-3820]
2021-12-15 11:51:12 +01:00
81e0772459 Refactor MPAPI subscribeToLists to Doctrine
[MAILPOET-3820]
2021-12-15 11:51:12 +01:00
d39d09dd72 Remove calls to Subscriber::setError() from ConfirmationEmailMailer
This commit is part of a task to replace Paris with Doctrine in the
class ConfirmationEmailMailer. Specifically, it removes two calls to
Subscriber::setError() inside ConfirmationEmailMailer::sendConfirmationEmail().

setError() was used to define an error message that was used only in one
of the instances where sendConfirmationEmail() is called
(API::subscribeToLists()). setError() was replaced with code that throws
an exception when there is an error. Thus it was necessary to change all
the places where ConfirmationEmailMailer::sendConfirmationEmail() is
called to handle the exception.

In some cases, there are some oddities as sendConfirmationEmail() can
return false or throw an exception in case of an error and calling code
must account for both. I decided to settle with this approach as
refactoring the rest of this method to use exceptions instead of
returning false seemed outside of the scope of this task.

[MAILPOET-3815]
2021-12-13 16:03:07 +01:00
6c05b3eaf0 Pass SubscriberEntity to sendConfirmationEmail() and sendConfirmationEmailOnce()
This commit changes the methods sendConfirmationEmail() and
sendConfirmationEmailOnce() to accept as the first parameter an instance
of SubscriberEntity instead of the old model Subscriber. It also updates
all the places where those two methods are called.

[MAILPOET-3815]
2021-12-13 16:03:07 +01:00
699266c920 Use TrackingConfig and new tracking settings property in PHP
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
d3ee546518 Add support for more product ids in filter
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
aec3bcd4ef Add check that re-engagement link is not missing
[MAILPOET-3764]
2021-11-17 15:21:31 +01:00
7d04ea28ad Add meta to response when email is unauthorized
[MAILPOET-3881]
2021-11-15 15:03:43 +01:00
5890fb3510 Use the latest updated queue
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
9229ed77d8 Refactor to doctrine
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
ee00f03ed3 Refactor pause/resume to doctrine
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
797f1d76ae Update templates API to save template images as files
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
7ecddae1f5 Improve error message
[MAILPOET-3865]
2021-11-08 10:15:35 +01:00
wxa
d8bfcb64bb Replace wrong placeholders in translatable strings
[MAILPOET-3863]
2021-11-03 23:11:11 +01:00
be77666105 Modify API re-engagement disabled message
[MAILPOET-3840]
2021-11-02 09:12:02 +01:00
ea6eb0993d Disable activate button if tracking is disable
[MAILPOET-3840]
2021-11-02 09:12:02 +01:00
f42d3aac5e Do not allow activation with toggle if no tracking
[MAILPOET-3743]
2021-11-02 09:12:02 +01:00
21b9ae9f2e Show re-engagement emails notice after saving
[MAILPOET-3743]
2021-11-02 09:12:02 +01:00
6e6ba3e7a1 Use new signature of the dynamicSegmentFilterData constructor
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
0d70174737 Only do validation if MSS is active
[MAILPOET-3857]
2021-10-26 16:11:32 +02:00
813d43f857 Validate if newsletter has an unsubscribe link
[MAILPOET-3857]
2021-10-26 16:11:32 +02:00
3a67210743 Load the entity for validation
[MAILPOET-3857]
2021-10-26 16:11:32 +02:00
970eb69dc1 Revert "Replace wrong placeholders in translatable strings"
This reverts commit cc76882164.
2021-10-25 09:48:04 -03:00
wxa
cc76882164 Replace wrong placeholders in translatable strings
[MAILPOET-3863]
2021-10-25 11:48:24 +02:00
59031237fe Remove scheduled count info for re-engagement emails in listing
We schedule re-engagement emails to be send immediately after we detect some recipients so the scheduled count would be always 0.
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
c7ca1d0101 Remove unnecesary line
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
1aa93d1b3c Add a new test for creating a custom field
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
acc7ab043d Refactor addSubscriberField to Doctrine
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
b368a76593 Refactor get custom field method to Doctrine
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
518c33187f Move custom fields methods to a separate file
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
bef34484ae Use the shortcut for translation function
[MAILPOET-3628]
2021-10-04 12:37:46 +02:00
b7e8557bc6 Display settings in the listings
[MAILPOET-3763]
2021-09-29 14:17:57 +02:00
ac3625e434 Create listings tab for re-engagement emails
[MAILPOET-3763]
2021-09-29 14:17:57 +02:00
857268c5ff Allow preview for unsaved forms
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
1a3f16a3c0 Remove action create from endpoint
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
21839fc30b Fix indentation of multiline function declarations
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
cdda3480ca Make all constructor signatures multiline
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00
206dd92054 Display the last engagement on the subscribers stats page
[MAILPOET-3770]
2021-09-13 10:33:11 +02:00
5a5ec1cc19 Use cron worker scheduler service when scheduling Woo sync
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
8eaf9471f5 Schedule immediate cron task for Woo sync on force sync
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
14ff48c7fa Differentiate machine and humans opens on subscriber stats API
[MAILPOET-3741]
2021-08-31 15:15:54 +02:00
464f23c82b Display machine opens
[MAILPOET-3740]
2021-08-30 14:04:29 +02:00
e4aca4f6de Refactor endpoint to doctrine
[MAILPOET-3626]
2021-08-25 09:22:44 +02:00
5d967f3457 Use a single string instead of array of strings
[MAILPOET-3625]
2021-08-23 14:18:57 +02:00
3b7752daed Refactor creating new list to Doctrine
[MAILPOET-3625]
2021-08-23 14:18:57 +02:00
3d1e2c5a2e Refactor setupWooCommerceInitialImport to Doctrine
[MAILPOET-3625]
2021-08-23 14:18:57 +02:00
b2857cbf40 Refactor code that checks for list deletion with form
Move segment deletion to new function doTrash to avoid calling methods twice on individual segment deletion. Refactor acceptance test.

[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
d9186e4230 Prevent deleting a list if attached to a form
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00