Commit Graph

458 Commits

Author SHA1 Message Date
Jan Jakes
89b10e7504 Avoid ignoring PHPCS checks in automation field factories
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Jakes
e3f7caea14 Avoid ignoring PHPCS checks in automation storages
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Jakes
9ab5c928de Remove deprecated parameters (reported by WPCS)
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Lysý
9f87b1c18b Add comments to the WPDB queries in Automation Storages
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Jakes
c8e6c02851 Fix "Return value must be of type int, null returned" in Action Scheduler wrappers
[MAILPOET-6179]
2024-08-05 20:35:32 +03:00
 Ján Mikláš
2e13570dd7 Correctly complete automation run when there is an empty branch in if/else
[MAILPOET-6154]
2024-07-29 15:03:47 +02:00
Jan Jakes
b7cee657c7 When unscheduling automation run actions, cancel related runs
[MAILPOET-6131]
2024-07-10 12:56:52 +02:00
 Ján Mikláš
ac751871f9 Unify automation endpoint 404 exceptions
[MAILPOET-5436]
2024-07-08 14:37:30 +02:00
 Ján Mikláš
ba79200f55 Show time left in activity modal for Delay action
[MAILPOET-5436]
2024-07-08 14:37:30 +02:00
Pavel Dohnal
e51c20221a Only clear action if deactivating an automation
[MAILPOET-5982]
2024-06-26 11:22:45 +02:00
Pavel Dohnal
4b14ae26cb Use a constant instead of string
[MAILPOET-5982]
2024-06-26 11:22:45 +02:00
Pavel Dohnal
1f8edf666a Deactivate automations runs when deactivating automation
[MAILPOET-5982]
2024-06-26 11:22:45 +02:00
Jan Jakes
7e87842eeb Fix typo in exception message
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Jan Jakes
f71993dde9 Cancel scheduled progress runs when executed manually
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Jan Jakes
fa6b380266 Add controller with ability to execute automation step progress manually
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Jan Jakes
7eb17c9e09 Ensure automation progress runs log data also at their start
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Jan Jakes
9de62db7df Add number of required automation steps to templates
[MAILPOET-6002]
2024-05-01 12:26:09 +02:00
Jan Jakes
3a5f108e42 Change free-only templates to default
[MAILPOET-6002]
2024-05-01 12:26:09 +02:00
Mike Jolley
435f638011 Apply rules on lib dir 2024-03-21 16:57:59 +01:00
Jan Jakes
888df573e5 Apply filter parameters in templates
[MAILPOET-5936]
2024-03-14 11:09:12 +01:00
Jan Jakes
7f63445f5a Pass filter-provided parameters to field value factories
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
467f1f8c8c Add ability for filters to provide field params
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
7cb75e77c5 Add explicit casts for WordPressDotOrg.sniffs.DirectDB.UnescapedDBParameter
None of these are needed, but the sniff reports them as false positives, so this is a workaround.

[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
f1b1ca882c Add "in the last" filter for fetching automation IDs by subject
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
504510d724 Simplify fetching automation IDs by subject
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
738c35891a Simplify getSinglePayloadByClass, remove wrong check
[MAILPOET-5720]
2024-02-14 14:36:22 +01:00
Jan Lysý
1f249fea30 Fix PHPStan error about parameter passed to strval()
[MAILPOET-5719]
2023-12-13 13:27:45 +01:00
Jan Lysý
525c80bac4 Fix PHPStan warnings in lib
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Jan Jakes
0d2e3e4f19 Add API endpoint to fetch automation template data
[MAILPOET-4537]
2023-12-11 20:51:12 +01:00
 Ján Mikláš
f71935f137 Add translator comments to automation steps and subjects
[MAILPOET-5729]
2023-11-24 08:10:35 +02:00
Jan Jakes
d220f05840 Move automation template categories to registry
This will also allow 3rd parties adding new categories in the future.

[MAILPOET-4676]
2023-11-20 14:30:05 +01:00
David Remer
ae0e952159 Use the correct WordPress wrapper
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
1d885ea238 Add order created|cancelled|completed triggers
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
7c382f4034 Add getCommentMeta
[PREMIUM-249]
2023-10-31 10:20:17 +01:00
David Remer
221e496714 Add comment
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
8eb596bfcf Add getPostStatuses()
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
a7fb860da2 Add get_taxonomy and get_term
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
d34524df15 Specify return types
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
dd103b81d7 Catch exceptions when trying to match filters in trigger handler
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
53f3a5d001 Allow to return null in SubjectTransformer::transform()
Sometimes a transformer can't return a subject. In this case transform() will return null
instead of throwing an exception. This means an automation can run until it comes to a
step where the subject would be needed. There it would fail.

[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
4102f854b0 Add WordPress functions
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
Jan Jakes
c33da588af Validate that fields in filters are provided by subjects available in the automation
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
f55c4f7755 Make next step ID nullable (ability to save multiple edges without next steps)
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
32e5d4f8ac Add check that next step was scheduled when multiple next steps are possible
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
72ce5fb569 Add a possibility to schedule next step by index
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
8720d8881f Remove NoSplitRule to allow for multiple next steps
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
004dc57f75 Fix edge case for NoUnreachableStepsRuleTest
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
901427c3d1 Fix edge case for NoJoinRule, simplify logic
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
David Remer
b9ecac91d4 Query all runs when no status has been added
[MAILPOET-5514]
2023-10-03 19:14:30 +02:00
David Remer
a464df2831 Ensure WP_DEBUG is cast to a boolean value
[MAILPOET-5608]
2023-09-26 13:26:22 +02:00