Commit Graph

48 Commits

Author SHA1 Message Date
Jan Jakes
b372a176e1 Create automations from templates lazily
This prevents creating all automations for all templates just to list them, etc.

[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
Jan Jakes
24111af58b Move template management to registry
[MAILPOET-5372]
2023-06-19 13:29:25 +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
1ddf69b490 Move delete metas in if clause
[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
2d709b6249 Extend AutomationPutEndpoint to receive meta data
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
Jan Jakes
9d55d3f134 Use "automation" instead of "workflow"
[MAILPOET-4793]
2022-11-14 12:14:35 +02:00
David Remer
902eeccea1 Block updating workflows with active runs in the backend
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
Jan Jakes
dc5e5b4f8b Use "automation" instead of "workflow" in user-facing strings
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
Jan Jakes
421549d6ee Make all automation strings in PHP translatable, improve context/comments
[MAILPOET-4611]
2022-10-31 10:03:45 +01:00
Jan Jakes
506cb8b732 Ensure workflow was trashed before deleting it
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
b01d050f1d Extract workflow delete logic to a controller
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
89c43a5cb9 Extract workflow duplication logic to a controller, fix some issues
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
1a51412849 Allow saving unknown step when not changed
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
dbf17204a0 Preserve stap map index to catch invalid values in validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
d7b65bd980 Run validation on workflow create and update
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
David Remer
339cba3c42 Throw InvalidStateException when workflow is not found
[MAILPOET-4533]
2022-09-15 08:08:07 +02:00
David Remer
1591700e71 Return created workflow with ID when using create-from-template endpoint
[MAILPOET-4533]
2022-09-15 08:08:07 +02:00
Jan Jakes
1677cc2842 Save and load workflows in the new format, update API
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
82b547f40b Make workflow editing logic extensible
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Jakes
c601aaa3eb Autofix issues detected by CodeSniffer
[MAILPOET-4617]
2022-09-06 17:38:01 +02:00
David Remer
9a74dec86a Add trash status to Workflow
[MAILPOET-4417]
2022-08-24 14:02:08 +02:00
David Remer
baa4d369af Introduce template storage and rebuild create form template endpoint
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
David Remer
24849afb7a Make name a property of Step.args instead of Step
[MAILPOET-4445]
2022-08-17 16:01:45 +02:00
David Remer
d4bc448ac6 Add name property to Step
[MAILPOET-4445]
2022-08-17 16:01:45 +02:00
David Remer
9f2ae81835 Remove outdated $change variable
The usage of $change was a leftover from a rebase which was
necessary.

[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
457d361ee9 Introduce Workflow::equals() and move decision to update a record to storage
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
c7f10a18c4 Update database entry only when an actual change happend
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
76048224d1 Fix WordPress.WP.I18n.NonSingularStringLiteralText errors
[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
David Remer
218de96024 Fix WordPress.WP.I18n.MissingTranslatorsComment errors
[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
Jan Jakes
d1fddb85f7 Add before step save hook per step key to simplify usage
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
24a63f6448 Call step before save hook more safely and explicitly
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
da58a5c416 Trigger workflow and step before save hooks
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
2faf0739a3 Check that step implementation exists when saving workflow
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
4aa323b612 Extract data-carrying classes to dedicated namespace
We need a separation of "Step" as an interface vs. "Step" as a serializable data structure.

[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
c9aa53df8b Extract workflow step updating to a separate controller
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
7da2d2f7c8 Add basic workflow step saving to workflow update API
[MAILPOET-4420]
2022-07-26 15:10:05 +02:00
alex-mailpoet
960e917b64 Run update query only once, use Builder minLength for name
[MAILPOET-4422]
2022-07-15 11:32:58 +02:00
alex-mailpoet
5ac27d125b Add workflow name editing capability
[MAILPOET-4422]
2022-07-15 11:32:58 +02:00
Jan Jakes
9e56609ee0 Check workflow status validity
[MAILPOET-4454]
2022-07-04 14:09:00 +02:00
Jan Jakes
bb90ae97d0 Add basic workflow update controller with status change caps
[MAILPOET-4454]
2022-07-04 14:09:00 +02:00
Jan Jakes
083bf93851 Add welcome email sequence template
[MAILPOET-4454]
2022-07-04 14:09:00 +02:00
alex-mailpoet
c583d3aa12 Move CreateWorkflowController to Premium
[PREMIUM-180]
2022-06-09 13:30:54 +02:00
John Oleksowicz
455e463916 Better naming
MAILPOET-4264
2022-06-08 13:14:11 +02:00
John Oleksowicz
12b677ce5e Change default workflow status to draft
MAILPOET-4264
2022-06-08 13:14:11 +02:00
John Oleksowicz
2bf59eab9a Create templated workflows in draft status
MAILPOET-4264
2022-06-08 13:14:11 +02:00
John Oleksowicz
25b9f3a876 Create a workflow from a PHP template
MAILPOET-4264
2022-06-08 13:14:11 +02:00
Jan Jakes
c97476e8c3 Add controller to create workflows via REST API
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00