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]
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]
Doing this as part of the task to deprecated old Paris models
(NewsletterLink) and use Doctrine entities instead
(NewslleterLinkEntity).
[MAILPOET-3816]
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]
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]
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]
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]
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]