Commit Graph

227 Commits

Author SHA1 Message Date
89c43a5cb9 Extract workflow duplication logic to a controller, fix some issues
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
6158f5a64b Prevent duplicates from having too-long names
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
169b6c4151 Ensure createWorkflow never attempts to use ID
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
4e82c5334b Add ability to permanently delete workflow
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
a4c8caa664 Add basic duplication ability
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
0679658d33 Rename WorkflowStorage::flush() to WorkflowStorage::truncate()
[MAILPOET-4531]
2022-10-13 13:01:10 +03:00
3bd71638f4 Add ToDo comment
[MAILPOET-4531]
2022-10-13 13:01:10 +03:00
3aa0d0b910 Add flush method to WorkflowStorage
[MAILPOET-4531]
2022-10-13 13:01:10 +03:00
99879d83f6 Simplify condition for full step validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
a82896e794 Collect all step error types instead of terminating on the first one
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
04ca19296b Add rule for step order validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
a052cdcceb Allow custom validation for all step types
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
9d8cb02006 Add valid step rule for custom step validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
6638707282 Add validation rule identifiers to exceptions and responses
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
9da204489d Collect step args validation errors
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
68c51c0f5c Convert WorkflowStepValidator to node-visitor-based rules
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
881dbfbe08 Fix root step args schema definition
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
19ce56fa5f Remove unused exceptions
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
5f5bbe15c8 Fix typos in error codes
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
7425c73d9e Add error messages to action validation, use step validation args
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
b6ba15c6c3 Introduce step validation args, similarly to step run args
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
a2948efc46 Rename namespace with defs for 3rd-party integrations to "Integration"
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
5600a2fef0 Load all statistics at once
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
d077370086 Perform only one SQL query for the statistics
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
193b9ae32d Index status column of workflow runs
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
18c4257f1f Drop hasValues method
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
05a052ec08 Remove extra line break
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
ff9f5d304e Return statistics of Workflow
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
96ade7327e Provide statistics via endpoint and admin page
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
52dcba8493 Introduce WorkflowStatistics entity
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
ad6f457861 Introduce hook before editor loads
[MAILPOET-4520]
2022-10-11 11:14:58 +02:00
f4b3f9bf86 Explicitly handle optional workflow ID and version ID, fix missing ID for new workflows
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
02aaba1ded Pass full step map to automation workflow so it can be validated
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
1f37be5ef3 Run full step validation only for active workflows
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
1a51412849 Allow saving unknown step when not changed
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
dbf17204a0 Preserve stap map index to catch invalid values in validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
c9c98b403c Fix possible undefined index access
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
76d2d40198 Add missing exception message
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
5920810ac6 Use step args for triggers
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
a7a58ee791 Fix typos and variable name
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
3c651c940b Add convenience by-class getter for payloads (& use it)
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
a35e925479 Add convenience by-class getter for subjects
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
68b5bab9cc Introduce step run args to simplify step run arguments
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
460cbd9e12 Construct and pass subject entries to step runners
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
00e8c4f3e5 Make steps specify required/provided subject keys
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
c28d8ad79c Introduce subject entry to carry subject & payload data
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
e38e79f385 Split integration subject to a service (Subject) and data (Payload)
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
757f1dc01a Use subject data type for workflow runs, remove subject loading from storage
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
c30244b30f Introduce subject data type for storage
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
c58a5a4308 Add workflow step arg schema validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00