Commit Graph

458 Commits

Author SHA1 Message Date
David Remer
2ea9a69a40 Make method public
[MAILPOET-5516]
2023-09-25 07:11:43 -07:00
Jan Jakes
7fac20fc8c Make default error value NULL, make data non-nullable
[MAILPOET-5599]
2023-09-25 06:10:52 -07:00
Jan Jakes
8eb2e3f43e Rename hook to better correspond to its function
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
944b440bdf Rethrow integration log exceptions in debug mode
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
4b8705e6b4 Normalize error trace objects to associative arrays
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
864cc2b01d Add run number to logs
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
ef97e4d05a Add logging for automation triggers
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
862693e785 Fix empty associative arrays being encoded as list arrays
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
a13dc71cd0 Log step key data
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
370f4ee3ae Add step type, step key, and updated timestamp to run logs
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
c2027932c0 Remove unnecessary check
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
ef42cf39f1 Reorder props & getters and polish automation run log
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
dd881d8b33 Extract logging logic to a service, make logs mutable
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
43c396220b Move all of step handler args checks to top-level handler, improve readability
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
9cd871c32e Remove unused step runner interface
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
d8afb42d89 Fix inconsistency between automation run and run log statuses
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
e5550ffead Add the possibility to schedule another run of the same step (progress)
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
eeb4d64e8b Pass step run controller to automation actions
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
9d4f55b399 Add step run controller to allow actions control their flow
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
5f088d2c35 Add step run number to step run args
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
e3da509f70 Move automation completion to step scheduler
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
b7ef250511 Refactor next step scheduling to a StepScheduler service
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
13202ed191 Keep "coming soon" templates as last
[MAILPOET-5384]
2023-08-14 12:54:09 +02:00
Jan Jakes
44d869af70 Simplify automation run data factory 2023-07-31 09:44:56 +02:00
David Remer
1c370f6136 Allow to alter created at date
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
8bd03b7a10 Add method to delete an automation run
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
8d8fcf3164 Query log statistics for automation in a timeframe
[MAILPOET-5091]
2023-07-18 13:03:16 +02:00
David Remer
d2fce2014a Query statistic how many runs in a timeframe are at which step
[MAILPOET-5091]
2023-07-18 13:03:16 +02:00
David Remer
b80875d268 Enable querying statistics in a given timeframe
[MAILPOET-5091]
2023-07-18 13:03:16 +02:00
David Remer
99f5d64d61 Allow for adding already generated statistics
[MAILPOET-5091]
2023-07-18 13:03:16 +02:00
David Remer
640fb61861 Use versions loader when an automation with a specific version is queried
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
5aaa7b2361 Query list of Automation with different versions
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
10f4d6c3c3 Query all versions of an Automation with create date
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
91db4eb1cf Add get_option and get_avatar_url
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
Jan Jakes
3839ca7a0e Initialize fields lazily to avoid calling queries on every request
[MAILPOET-5426]
2023-06-26 13:19:32 +02:00
Jan Jakes
8876ff978d Add filter errors to the error payload
[MAILPOET-5418]
2023-06-26 13:19:32 +02:00
Jan Jakes
cc3112cc8a Collect filter validation errors
[MAILPOET-5418]
2023-06-26 13:19:32 +02:00
Jan Jakes
34d043232b Refactor filter args validation to work per-condition
This also fixes string "is-blank" and "is-not-blank" being marked as invalid.

[MAILPOET-5415]
2023-06-26 13:19:32 +02:00
Jan Jakes
d1bdc1b2f0 Manage templates fully by registry
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
Jan Jakes
05b00530bc Do not construct automations when serializing templates
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
Jan Jakes
dd037c349c Use strings for template categories
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
Jan Jakes
0236a6c919 Apply templates filter on all templates (in registry)
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
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
d3b63b4c0f Move MailPoet templates to MailPoet integration
[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
Jan Jakes
25a0d56ed1 Move automation builder to engine
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
Jan Jakes
fd40a03682 Add abandoned cart campaign
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
Jan Jakes
c3be75cd07 Add abandoned cart reminder template
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
Jan Jakes
8612619f3f Add first-time buyers template
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
Jan Jakes
b753a97ad6 Simplify automation template builder API
This will also allow us to add filters and other parameters.

[MAILPOET-5372]
2023-06-19 13:29:25 +02:00