Commit Graph

125 Commits

Author SHA1 Message Date
David Remer
4bdec5165d Add activated_at property to workflow endpoints
[MAILPOET-4417]
2022-08-24 14:02:08 +02:00
David Remer
5bd994c01c Add activatedAt to workflow
[MAILPOET-4417]
2022-08-24 14:02:08 +02:00
David Remer
26a6f1be32 Use step key when building workflows from sequence
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
David Remer
ed56df2398 Add WorkflowTemplate GET endpoint
[MAILPOET-4538]
2022-08-23 14:03:24 +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
1140ee3129 Add WorkflowTemplate entity
[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
42dce4280a Use correct error code and translator comment
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
0d1b51c7ba Query a workflow in a specific version in the StepHandler
The StepHandler must run a specific version of a workflow. Therefore, we need to
query this specific Workflow.

[MAILPOET-4430]
2022-08-10 16:57:25 +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
ee54440c03 Fix intendation for SQL strings
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
ea07bbe9fa Use INNER JOIN to combine workflows with their versions
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
f7722e4349 Rename workflowHeaderData method
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
7a0a6413d5 Update updatedAt when values are changed
[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
3885194b48 Add created and updated columns to versions table
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
7e9149f2aa Query workflow by version in StepRunner
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
02489a61a6 Add version_id to WorkflowRun
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
456417a467 Add version_id to Workflows
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
David Remer
964f3ca69d Separate workflow versionable data into workflow_version table
[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
1f6ce667e5 Add schema definition for automation steps
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
15e4635fe3 Add hook registration helper methods to registry
[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
87f35abf8b Add workflow and step before save hooks
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
a6cbf99ee5 Fix wrong ...$args typehints
[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
cc2f908236 Add registry methods for step interface implementations
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
ebe8d5d478 Add step interface as a parent of action and trigger
[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
fbd27afedf Move step runner interface to the control namespace
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
ca308321fd Rename step runner to handler (free the name to step runner interface)
[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
Rostislav Wolny
e3fbf2421d Move action scheduler initialization to Initializer as one of first actions
[MAILPOET-4274]
2022-08-03 10:36: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
da43849c30 Use more descriptive method name
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
3cccc52515 Require subjects by class name to have them type checked and autocompleted
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
841ee97203 Add require subject helper method
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
494cc7b780 Allow multiple subjects of the same type
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
7df8342a18 Define manage automation capability in automation code
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
a073f05ffe Shorten automation table names
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
alex-mailpoet
73909a4cf0 Complete workflow run if step ID is null
[MAILPOET-4450]
2022-07-05 08:39:57 +02:00
alex-mailpoet
263123ba44 Don't schedule next step if it's null
[MAILPOET-4450]
2022-07-05 08:39:57 +02:00