Commit Graph

458 Commits

Author SHA1 Message Date
John Oleksowicz
7c3d3fbf12 Only allow storing scalar data
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
0008beaafd Add ORDER BY to always retrieve logs in order created
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
c828b7245d Remove redundant step args from log
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
d0f8d0f2bb Use native type hint
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
e769273c8d Add index for workflow_run_id
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
4687a8c515 Rename created_at to started_at
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
bf0f8a4dc5 Don't allow setting data that couldn't be retrieved
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
f126bdb2b9 Only allow a single error per log
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
3356bb855d Remove optional and unused user facing error message
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
8cbbe5aa6e Use Throwable instead of \Exception
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
2c2f15a562 Use completedAt timestamp for success and failures
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
57cf547a8a Only expose log in post-step hook
The log has step ID and workflow run ID in case an integration needs to
retrieve them.

[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
6f8edfaec4 Make workflow run logs immutable
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
cdeea173b9 Add logging of workflow steps
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
Jan Jakes
4a231ff35b Fix comment with translation info
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
ea9a410e70 Simplify condition
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
9678d4f71a Remove duplicit method call
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
ba35ddf6e6 Extract automation API to MailPoet REST API
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
fa9bbaf9e8 Allow at most 1 next step for now
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
6d91251d6c Update workflow execution control to the new format
[MAILPOET-4523]
2022-09-12 14:40:36 -05: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
9028ea96ec Implement root step
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
55e4e53a35 Fix exception message
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
ecfc289eca Add full workflow schema definition & introduce a new root step
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
John Oleksowicz
494bcd45f7 Add workflow_id index to versions table
MAILPOET-4532
2022-09-08 10:41:45 +02:00
Jan Jakes
fadbcaca5b Fix workflow run getter and from array construction
[PREMIUM-194]
2022-09-08 09:20:20 +02: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
b546344e42 Allow to query workflows by status
[MAILPOET-4417]
2022-08-24 14:02:08 +02:00
David Remer
dde3b159ea Add status parameter to getWorkflows method
[MAILPOET-4417]
2022-08-24 14:02:08 +02:00
David Remer
9a74dec86a Add trash status to Workflow
[MAILPOET-4417]
2022-08-24 14:02:08 +02:00
David Remer
dce1b1403c Add author property to Workflow endpoints
[MAILPOET-4417]
2022-08-24 14:02:08 +02:00
David Remer
34d94edd3e Add author to Workflow
[MAILPOET-4417]
2022-08-24 14:02:08 +02:00
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