Commit Graph

300 Commits

Author SHA1 Message Date
David Remer
11384bbf6a Fix bug where the type of $step was Data\Step instead of Integration\Step
[MAILPOET-4530]
2022-10-19 13:34:45 +02:00
David Remer
6235944442 Fix bug where an empty array would generate a malformed SQL query
[MAILPOET-4732]
2022-10-19 13:34:45 +02:00
Jan Jakes
efd32043e3 Add workflow count to automation listing page
[MAILPOET-4540]
2022-10-19 08:09:17 +03:00
Jan Jakes
506cb8b732 Ensure workflow was trashed before deleting it
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
1b20bf45dd Move workflow list response building to workflow mapper
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
98a701419a Reuse workflow mapper in create from template endpoint
[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
John Oleksowicz
6158f5a64b Prevent duplicates from having too-long names
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
169b6c4151 Ensure createWorkflow never attempts to use ID
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
4e82c5334b Add ability to permanently delete workflow
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
a4c8caa664 Add basic duplication ability
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
David Remer
0679658d33 Rename WorkflowStorage::flush() to WorkflowStorage::truncate()
[MAILPOET-4531]
2022-10-13 13:01:10 +03:00
David Remer
3bd71638f4 Add ToDo comment
[MAILPOET-4531]
2022-10-13 13:01:10 +03:00
David Remer
3aa0d0b910 Add flush method to WorkflowStorage
[MAILPOET-4531]
2022-10-13 13:01:10 +03:00
Jan Jakes
79c60ff7a1 Make step args that need to be set required
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
99879d83f6 Simplify condition for full step validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
a82896e794 Collect all step error types instead of terminating on the first one
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
04ca19296b Add rule for step order validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
a052cdcceb Allow custom validation for all step types
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
9d8cb02006 Add valid step rule for custom step validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
6638707282 Add validation rule identifiers to exceptions and responses
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
9da204489d Collect step args validation errors
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
68c51c0f5c Convert WorkflowStepValidator to node-visitor-based rules
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
881dbfbe08 Fix root step args schema definition
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
19ce56fa5f Remove unused exceptions
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
5f5bbe15c8 Fix typos in error codes
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
7425c73d9e Add error messages to action validation, use step validation args
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
b6ba15c6c3 Introduce step validation args, similarly to step run args
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
a2948efc46 Rename namespace with defs for 3rd-party integrations to "Integration"
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
David Remer
5600a2fef0 Load all statistics at once
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
David Remer
d077370086 Perform only one SQL query for the statistics
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
David Remer
193b9ae32d Index status column of workflow runs
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
David Remer
18c4257f1f Drop hasValues method
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
David Remer
05a052ec08 Remove extra line break
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
David Remer
ff9f5d304e Return statistics of Workflow
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
David Remer
96ade7327e Provide statistics via endpoint and admin page
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
David Remer
52dcba8493 Introduce WorkflowStatistics entity
[MAILPOET-4673]
2022-10-12 10:24:58 +02:00
David Remer
caf3160060 Remove 'email_id' property
[MAILPOET-4520]
2022-10-11 11:14:58 +02:00
David Remer
b657a1eee0 Account for email_id being 0
[MAILPOET-4520]
2022-10-11 11:14:58 +02:00
David Remer
bd12d23a4f Delete newsletter entity
[MAILPOET-4520]
2022-10-11 11:14:58 +02:00
David Remer
b7e80b60ab Disconnect empty emails before workflow loads
[MAILPOET-4520]
2022-10-11 11:14:58 +02:00
David Remer
ad6f457861 Introduce hook before editor loads
[MAILPOET-4520]
2022-10-11 11:14:58 +02:00
David Remer
4ba1d3a5b5 segment_ids should not be a required argument
[MAILPOET-4689]
2022-10-03 11:22:34 +02:00
David Remer
617f256e8d roles argument should not be required
[MAILPOET-4689]
2022-10-03 11:22:34 +02:00
David Remer
64a8c3700c Fix loading of WpUserSegment
[MAILPOET-4690]
2022-09-30 15:28:03 +02:00
Jan Jakes
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
Jan Jakes
02aaba1ded Pass full step map to automation workflow so it can be validated
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
1f37be5ef3 Run full step validation only for active workflows
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
1a51412849 Allow saving unknown step when not changed
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00