Commit Graph

20858 Commits

Author SHA1 Message Date
Sam Najian
f92f045142 Fix issue caused by rebasing trunk
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
c84a6894ba Throw and log the issue if coupon was not found when rendering
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
534bff5a80 Show a notice on top of newsletter listing for corrupt emails
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
ce917280d4 Confirm resuming a corrupt newsletter
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
b6577565b6 Update status of corrupt newsletter after edit
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
9ca259d1d0 Exclude corrupt emails when fetching queue newsletters
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
4242442d8e Fix logger test failing on newly recorded properties
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
0795c2ffff Expose the log for corrupted newsletter on listing page
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
ddd89e70ed Add context and raw message to mailpoet_logs
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
fe93b1a150 Show rendering issue in listing status
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
87925dbd9c Convert queue_status.jsx to tsx and add missing types
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
4192f82d29 Throw instead of directly logging when WC is not active
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
fdf0875905 Pause sending queue when encountering a corrupt newsletter
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
93110826e7 Log when processing the queue for corrupt newsletter
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
976c374cb7 Catch exception when processing coupon block throws
When processing coupon block throws, the exception is
caught, custom exception is thrown and the newsletter status
is updated

[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
51db625911 Add test for loggin when WC is not active
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
2a6b7cd210 Log WC is inactive when trying to generate coupon
[MAILPOET-4983]
2023-03-01 17:46:22 +01: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
e7d9f3d362 Remove unnecessary check.
[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
4a49143422 Add primary key to automation_run_subjects table
[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
c847f69e9d Remove unnecessary brackets
[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
2ef6c8c9b2 Use new Automation data factory in other tests
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
83599e7ba9 Fix test to account for subject_keys and meta
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
e7868f033d Set existing automations to run only once
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
c733e088c2 Add test for run once setting
[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
38e7346b6e Show setting only in combination with correct triggers
[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
230c9f183d Add setting to run the automation only once per subscriber
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
741d86d7ea Add action to update meta data
[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
7b788387fe Render automation sidebar dynamically
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00