Commit Graph

15684 Commits

Author SHA1 Message Date
6532cc1bec Fix bug when displaying email subjects in the system status page
The commit f44afbddf2 introduced a bug
when replacing Paris code with Doctrine code in lib/Tasks/State.php.
This bug was causing the system status page to display "Preview" instead
of the subject of the listed emails. The problem was happening because
during the refactor there was a mistake and we were trying to get a
SendingQueueEntity via its ID using the ScheduledTaskEntity ID. This
commit fixes this problem by getting a SendingQueueEntity that matches
the given ScheduledTaskEntity ID.

[MAILPOET-4508]
2022-08-09 13:19:47 +02:00
3a383fdd82 Fix var name in fix-guzzle.php 2022-08-09 14:13:18 +03:00
7c71255231 Release 3.94.0 2022-08-09 14:13:18 +03:00
a1ef5f9568 Fix type hint in fix-guzzle.php
[PREMIUM-199]
2022-08-08 17:28:05 +03:00
e7534132d3 Fix update button in Safari
[MAILPOET-4479]
2022-08-08 13:34:34 +02:00
d1fddb85f7 Add before step save hook per step key to simplify usage
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
24a63f6448 Call step before save hook more safely and explicitly
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
08e8e88502 Use step defaults from schema in template generation
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
1f6ce667e5 Add schema definition for automation steps
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
0dbfb196e2 Redirect back to automation editor after editing automation email
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
4b5afeac54 Save workflow step ID to automation email options
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
bb24838881 Save workflow ID to automation email options
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
0d2c82ad72 Fix row key computation in automation listing
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
72b392fcd5 Do not hardcode email IDs in workflow templates
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
8319c1e4b6 Implement create functionality for automation email in send email step
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
c02e71c6e6 Add workflow saved status to editor store
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
0792bae953 Fix workflow activation discarding unsaved changes
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
4389d3ca5f Sync automation email step settings to newsletter entity
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
15e4635fe3 Add hook registration helper methods to registry
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
da58a5c416 Trigger workflow and step before save hooks
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
87f35abf8b Add workflow and step before save hooks
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
a6cbf99ee5 Fix wrong ...$args typehints
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
2faf0739a3 Check that step implementation exists when saving workflow
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
cc2f908236 Add registry methods for step interface implementations
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
ebe8d5d478 Add step interface as a parent of action and trigger
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
4aa323b612 Extract data-carrying classes to dedicated namespace
We need a separation of "Step" as an interface vs. "Step" as a serializable data structure.

[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
fbd27afedf Move step runner interface to the control namespace
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
ca308321fd Rename step runner to handler (free the name to step runner interface)
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
c9aa53df8b Extract workflow step updating to a separate controller
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
fc11b2f97e Fix automation editor body class
We use edit-site styles now so we need to set the correct class for the footer to disappear.

[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
18501385dc Extend integration test for filters
[MAILPOET-4442]
2022-08-08 10:57:42 +02:00
c917505170 Add acceptance test with filtering by tag
[MAILPOET-4442]
2022-08-08 10:57:42 +02:00
0b14a03236 Disable margin left for second select in a row
[MAILPOET-4442]
2022-08-08 10:57:42 +02:00
2b5d089a79 Add tag filter into subscribers response
[MAILPOET-4442]
2022-08-08 10:57:42 +02:00
5445bf9305 Add tags statistics method
[MAILPOET-4442]
2022-08-08 10:57:42 +02:00
98d9952a44 Fix prefetching subscriber relations
[MAILPOET-4501]
2022-08-08 10:57:42 +02:00
f899eb1c16 Parse name from an email
When the settings table is empty and the current user uses an email in the name. We try to parse the name.
[MAILPOET-4501]
2022-08-08 10:42:25 +02:00
e93befc965 Rename popup message over list/segment badges to 'View subscribers'
[MAILPOET-4505]
2022-08-08 09:04:34 +02:00
c8278dde2a Use correct exception type when saving segment to DB fails
[MAILPOET-4294]
2022-08-04 13:31:53 +02:00
1d4ec47b25 Move tests for addList under the related service test
[MAILPOET-4294]
2022-08-04 13:31:53 +02:00
9c5dca0206 Refactor MailPoet\API\MP\v1\API::addList to doctrine
[MAILPOET-4294]
2022-08-04 13:31:53 +02:00
73f51523f3 Replace Paris models with Doctrine entities in SubscriberLinkTokens
[MAILPOET-4345]
2022-08-04 11:52:57 +02:00
d3abbddf73 Add a basic integration test to cover the happy path of SubscriberLinkTokens
[MAILPOET-4345]
2022-08-04 11:52:57 +02:00
56b90247b2 Add method to set the link_token to the Subscriber factory
[MAILPOET-4345]
2022-08-04 11:52:57 +02:00
4a8ac483f6 Use getServiceWithOverrides() instead of instantiating the tested class
This commit changes the way InactiveSubscribersTest
instantiates the tested class InactiveSubscribers. Instead of calling it
directly, it uses \MailPoetTest::getServiceWithOverrides(). This way, we
don't have to update all the tests when there is a change to the
signature of the constructor of the tested class.

[MAILPOET-4344]
2022-08-04 11:10:50 +02:00
af396021db Move the query to calculate the max subscriber ID to SubscribersRepository
[MAILPOET-4344]
2022-08-04 11:10:50 +02:00
0f7a3c3e00 Replace Paris models with Doctrine entities in SimpleWorkerTest
[MAILPOET-4344]
2022-08-04 11:10:50 +02:00
8a29519b31 Replace Paris models with Doctrine entities in InactiveSubscribers
[MAILPOET-4344]
2022-08-04 11:10:50 +02:00
261f2eaa25 Replace Paris models with Doctrine entities in Shortcodes
[MAILPOET-4364]
2022-08-04 10:55:03 +02:00
4a0ee78467 Replace Paris models with Doctrine entities in ShortcodesTest
[MAILPOET-4364]
2022-08-04 10:55:03 +02:00