Commit Graph

15684 Commits

Author SHA1 Message Date
Pavel Dohnal
78d748948b Make sure the parentheses are correct
[MAILPOET-3938]
2021-11-16 09:54:18 +01:00
Pavel Dohnal
5f1e6c8bd2 Make sure the query always returns at most 1 row
[MAILPOET-3938]
2021-11-16 09:54:18 +01:00
Brezo Cordero
c95557a0ec Remove mixed from test
[MAILPOET-3945]
2021-11-16 09:14:41 +01:00
Brezo Cordero
b254e9c969 Release 3.73.2 2021-11-15 08:38:42 -06:00
Jan Lysý
9e4888dc46 Add tracking unauthorized emails in modal
[MAILPOET-3881]
2021-11-15 15:03:43 +01:00
Jan Lysý
3c8fa566ed Add tracking unauthorized emails when user tries to send
[MAILPOET-3881]
2021-11-15 15:03:43 +01:00
Jan Lysý
73b18d9592 Add tracking for unauthorized emails in settings
[MAILPOET-3881]
2021-11-15 15:03:43 +01:00
Jan Lysý
7d04ea28ad Add meta to response when email is unauthorized
[MAILPOET-3881]
2021-11-15 15:03:43 +01:00
Jan Lysý
eb0fb13f1c Add tracking unauthorized email notice
[MAILPOET-3881]
2021-11-15 15:03:43 +01:00
Pavel Dohnal
9069b680b9 Fix acceptance test
[MAILPOET-3926]
2021-11-15 14:54:06 +01:00
Pavel Dohnal
9323a7a0d8 Fix custom fields label saving for checkbox
[MAILPOET-3926]
2021-11-15 14:54:06 +01:00
Pavel Dohnal
9700e9abbb Fix custom fields label saving for date
[MAILPOET-3926]
2021-11-15 14:54:06 +01:00
Pavel Dohnal
822587e92b Fix custom fields label saving for select
[MAILPOET-3926]
2021-11-15 14:54:06 +01:00
Pavel Dohnal
6b41d4b70b Fix custom fields label saving
[MAILPOET-3926]
2021-11-15 14:54:06 +01:00
Rodrigo Primo
ae99fe3be2 Use Doctrine references when saving links
This commit changes the code of the method
\MailPoet\Newsletter\Links\Links::save() to use Doctrine references
instead of full entities when getting a newsletter and sending queue
entities to save the related links.

We don't need the full entities here, and getting a full entity for the
sending queue was generating an error in the
testItLogsErrorWhenNewlyRenderedNewsletterBodyIsInvalid() integration
test (see the description of PR
https://github.com/mailpoet/mailpoet/pull/3784 for more details).

To be able to get the reference, it was necessary to add a helper method
called getReference() to \MailPoet\Doctrine\Repository.

[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
ea3b38bc08 Deprecate \MailPoet\Models\NewsletterLink
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
5094176ce9 Replace NewsletterLink with NewsletterLinkEntity in the class WorkerTest
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
75da3dca45 Replace NewsletterLink with NewsletterLinkEntity in the class TrackTest
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
d1b13dbd70 Replace NewsletterLink with NewsletterLinkEntity in the class NewsletterTest
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
b5ac7dd507 Replace NewsletterLink with NewsletterLinkEntity in the class SendingQueueTest
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
511556549b Replace NewsletterLink with NewsletterLinkEntity in the class WooCommercePastRevenues
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
1501c4e54d Replace NewsletterLink with NewsletterLinkEntity in the class Tasks\Links
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
0c8a8d8caa Replace NewsletterLink with NewsletterLinkEntity in the class LinksTest
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
d9296d86fd Replace NewsletterLink with NewsletterLinkEntity in the class Links
It was also necessary to update two NewsletterTest tests, as after the
change to Links::save(), having a queue ID set became mandatory (before
it was not and one was not set properly in the mock SendingQueue object).

[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
c870c416ad Replace NewsletterLink with NewsletterLinkEntity in the class LinksTest
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
143709b600 Replace NewsletterLink with NewsletterLinkEntity in the class Populator
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
612eb1073d Move NewstetterLink properties to NewsletterLinkEntity
Doing this as part of the task to deprecated old Paris models
(NewsletterLink) and use Doctrine entities instead
(NewslleterLinkEntity).

[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
34ef9fcbbf Make sure info about versions is included for cached events
This commit modifies trackCachedEvents() to call track() instead of window.mixpanel.track().

This is needed to make sure that we include information about the free
and premium versions (which is done inside track()) for cached events
(events that were added before mixpanel loaded).

[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rodrigo Primo
b4b1546a54 Remove MailPoet premium version from individual calls to trackEvent()
This commit removes the property 'MailPoet Premium version' from all the
calls to MailPoet.trackEvent(). It is not necessary to pass this
property anymore, as since 0a10300625,
this property is included automatically whenever MailPoet send data to
Mixpanel.

[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rodrigo Primo
39df0090ae Remove MailPoet free version from individual calls to trackEvent()
This commit removes the property 'MailPoet Free version' from all the
calls to MailPoet.trackEvent(). It is not necessary to pass this
property anymore, as since 0a10300625,
this property is included automatically whenever MailPoet send data to
Mixpanel.

[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rodrigo Primo
5b4f3a8882 Remove unused import to get rid of eslint warning
This change was needed to create a subsequent commit that makes
modifications to this file. Without it, eslint would report an error
when trying to commit changes to actions.ts.

[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rodrigo Primo
63c27830a5 Always include free and premium versions in data sent to Mixpanel
[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rostislav Wolny
99e5efb49f Update versions in templates migration
[MAILPOET-2686]
2021-11-15 10:28:01 +01:00
Ján Mikláš
7bcfc8917e Update Black Friday banner
[MAILPOET-3933]
2021-11-15 10:24:21 +01:00
Pavel Dohnal
5890fb3510 Use the latest updated queue
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
09719ca450 Use a better function for instance test
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
9229ed77d8 Refactor to doctrine
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
ee00f03ed3 Refactor pause/resume to doctrine
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
f5614ed2bd Refactor test to doctrine
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
5da71f7a28 Render form Id in exports in frontend
[MAILPOET-3872]
2021-11-10 12:09:07 +01:00
Pavel Dohnal
c6ea0b3ff0 Hide other settings until form is saved
[MAILPOET-3872]
2021-11-10 12:09:07 +01:00
Pavel Dohnal
bdd2e4d2ae Make sure the form id is always number
[MAILPOET-3872]
2021-11-10 12:09:07 +01:00
Pavel Dohnal
652fa9ce80 Add a check if translations are ready
[MAILPOET-3807]
2021-11-10 09:43:22 +01:00
Pavel Dohnal
eda7a74f25 Remove the http client from constructor
[MAILPOET-3807]
2021-11-10 09:43:22 +01:00
Oluwaseun Olorunsola
274abc09fc Fixed failing test and default select uncheck not saving
[MAILPOET-3894]
2021-11-10 09:42:15 +01:00
oluwaseun Olorunsola
bdb262fca4 Fix custom select default value cannot be changed on Manage subscription page
[MAILPOET-3894]
2021-11-10 09:42:15 +01:00
Pavel Dohnal
d14ab2db00 Add a hook to change recaptcha size
[MAILPOET-3279]
2021-11-08 15:42:28 +01:00
Pavel Dohnal
7c005cd1b8 Move styles to scss file
Co-authored-by: Oluwaseun Olorunsola <seun.olorunsola@automattic.com>

[MAILPOET-3279]
2021-11-08 15:42:28 +01:00
Rostislav Wolny
3ecef7e4fc Update version check for newsletter thumbnails data migration
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b851f282f5 Save URL of thumbnail after saving original before compression
This change was done in order to prevent cron being stuck on
the image thumbnails job because a huge image may cause cause
we exceed memory limits
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00