Commit Graph

21439 Commits

Author SHA1 Message Date
Sam Najian
cb786ee57f Write acceptance test to replicate the bug
[MAILPOET-5134]
2023-04-03 11:53:49 +02:00
Rodrigo Primo
47bbba4898 Remove mailpoet/.nvmrc
This file is not needed anymore, as in
7c373a85ba we added a .nvmrc file to the
root directory of this repository.

[MAILPOET-5186]
2023-04-03 11:02:42 +02:00
John Oleksowicz
1d87c4377e Ensure purchase date fields are properly validated
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
4eaaa51bce Fix type issue
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
0c109ea34c Fix rebase issue
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
df3b790c0b Prettier fix
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
03da98e5df Avoid simple text replacements in SQL if possible
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
1cab4a944a Use standard joins where possible
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
509a79fd1a Proper method naming
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
68902a206d Extract more to helpers
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
26ec430942 Refactor to use DI instead of inheritance
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
fa43495d81 Minor refactoring
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
c747b71829 Simplify subquery
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
d505bffcfd Refactor to use shared date functionality
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
caba21b8af Fix relative date calculation
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
d52113d104 Extract shared date filter functionality
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
37226202bc Implement purchase date dynamic filter
MAILPOET-4986
2023-04-03 10:20:02 +02:00
Sam Najian
398f8ffddd Accomadate the translations placement change in WP6.2
- Compatible WPCLI is installed
- Translation folder is make writable

[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Sam Najian
8ea409cb22 Verify language switch was successful
[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Sam Najian
8c13b726f3 Be more specific whens electing Checkout block
[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Sam Najian
be41b1e896 Update closeDialog method to use the new aria-label
In new version, arial-label has changed from Close dialog
to Close

[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Veljko
9c99fe733b Refactor k6 to use chai.js
[MAILPOET-5156
2023-03-30 14:43:31 +02:00
Veljko
7b90dff4b6 First attempt to try and make checks failing 2023-03-30 14:43:31 +02:00
David Remer
5c2b150d63 Hide WooCommerce integration until transactional emails are ready
[MAILPOET-4935]
2023-03-30 13:17:30 +02:00
David Remer
a3ebd0695b Introduce Order to Segment transformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
9738bd3ecd Introduce general step error
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
a74c5993a0 Prevent error when no field is specified
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
8ba694e30d Use plural for subject transformers in test
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
328b5b1475 Remove private getSubjectKeysForSingleKey method
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e2777aebc3 Use plural for array of subject transformers
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
19b5abc171 Use array_keys $all to get the keys
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d6760cb113 Use array
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
b2bd4e7721 Define type of return value
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
0d12c05fb9 Improve readability
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
ce6c9dfcdb Remove unnecessary check
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
9d9b3f58c4 Use WooCommerce helper to fetch order
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
8cf48d2707 Simplify SubjectTransformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
68f09b6bd1 Prevent infinite loop when a subject from the trigger is missing
Given the trigger provides two subjects but only one subject was given via parameter and no
transformer was able to generate the second from the first, this method runs into an
infinite loop. This commit prevents this infinite loop.

[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
b5a846327a Remove SubjectTransformerHandler from StepHandler
All subjects are created and persisted during AutomationRun creation. Therefore, the required
subject must exist when searching for it in the StepHandler. This commit reverses the last
changes and updates the test.

[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d365be2334 Persist all possible subject on run creation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
c968b03ca7 Provide all possible subjects for a trigger to the UI
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
6fa85ef879 Test order to subscriber subject transformation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
301a10b210 Move TestAction to Stubs
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
2bba70125c Add order status change statistic to analytics
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
f1f667c355 Add order status change trigger frontend
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d0659f638c Add order to subscriber transformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e140dc6d4e Add WooCommerce integration and order status trigger backend
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e081c554aa Add method to retrieve order statuses
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
5328213d85 Introduce subject transformation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
Veljko
06874645c7 Add nightly testing and update CircleCI and RoboFile
[MAILPOET-4954
2023-03-30 11:03:28 +02:00