Commit Graph

18419 Commits

Author SHA1 Message Date
Jan Lysý
26a85458a5 Remove usage Sending::createFromQueue from Scheduler test
[MAILPOET-4369]
2023-03-02 12:39:35 +02:00
Jan Lysý
cc032b7520 Remove old model from Task test
[MAILPOET-4369]
2023-03-02 12:39:35 +02:00
Jan Lysý
20e435872f Add method for update processed subscribers
[MAILPOET-4369]
2023-03-02 12:39:35 +02:00
Sam Najian
6a1e734633 Fix WooCommerce wording
[MAILPOET-5098]
2023-03-02 11:30:38 +01:00
Sam Najian
b91f2cde2b Fix another merge conflict issue preventing correct resuming
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
7c425a6b9a Fix wrong import orders
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
f1a2954dca Remove duplicate line
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
5e74dce6bd Defer resetting errors when resuming to confirmation step
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam
a641521e0f Apply suggestions from code review to shorten js imports
[MAILPOET-4983]

Co-authored-by: Oluwaseun Olorunsola <30554163+triple0t@users.noreply.github.com>
2023-03-01 17:46:22 +01:00
Sam Najian
bd3a3a116e Fix failing unit test for coupon block
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
9b87698819 Immediately pause sendingQueue when a newsletter is corrupted
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
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