Commit Graph

711 Commits

Author SHA1 Message Date
Jan Jakes
209ede594e Add fields management to automation registry
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
97e40955ab Add fields to subject interface
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
David Remer
430c9b72f7 Exclude emails of wrong type
[MAILPOET-4999]
2023-04-17 13:59:39 +02:00
David Remer
0a8bcaf484 Do not allow to send emails to bounced subscribers
[MAILPOET-4999]
2023-04-17 13:59:39 +02:00
David Remer
343b91a980 Remove type specification 2023-04-17 13:59:39 +02:00
David Remer
46f888a30b Let transactional emails pass
[MAILPOET-4999]
2023-04-17 13:59:39 +02:00
David Remer
ac65c138ee Set transactional email type when email is transactional
[MAILPOET-4999]
2023-04-17 13:59:39 +02:00
David Remer
b303111d3d Add Automation to AUTOMATION_STEP_BEFORE_SAVE action
[MAILPOET-4999]
2023-04-17 13:59:39 +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
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
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
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
5328213d85 Introduce subject transformation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
fa73c3bc26 Order subjects by automation_run_id and id
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
286cd94135 Remove subject_keys from Step definition and load information from registry
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
2187f4a2d0 Use DISTINCT in count method
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
1ddf69b490 Move delete metas in if clause
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
b5eaf6d115 Rename hash method to getHash
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
6012a139cb Improve name of counting method
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
c68fc1378c Improve name of "run only once" meta
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
a96d2388f4 Use serialize for the hash generation
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
dd3b37aba8 Improve names for all meta methods
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
8d41b5521c Fix typo
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
cf6f4f204d Use array_values for filtered subjects
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
da5f5b0b90 Improve formatting
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
1db97d2301 Simplify getting run ids
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
936de6ec30 Prevent calling toArray() twice
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
1b17c04301 Update templates to run only once
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
67f6b490bf Allow setting meta values in the templates
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
93cfffe295 Allow sending an email multiple times
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
fcf6e738c7 Interrupt automation run creation if a run already exists and only_once setting is set
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
7210fad0e1 Add subject_keys to Step definition
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
9e016bfc07 Add hash to Subject
The hash gives us a new column in our table, which we can
use to query a specific combination of args and key more
efficient

[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
2d709b6249 Extend AutomationPutEndpoint to receive meta data
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
0d888ce8e4 Make meta data available in editor
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
48e2c5f945 Add filter to decide whether an automation run should be created
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
8cfb93a3b6 Add meta data to Automation
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
c4faa53386 Store run subjects in extra table
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00