Commit Graph

104 Commits

Author SHA1 Message Date
Peter Clement 7072acfa1b
Merge branch 'master' into fix/issue-with-looping-iterations 2024-11-06 17:04:03 +00:00
Peter Clement 822f52ad4a remove logs 2024-11-06 17:00:32 +00:00
Peter Clement 7bbbaadea4 Issue where looping wasn't working due to missing context 2024-11-06 16:59:44 +00:00
Dean 23a3643859 Added offset for loop automation context updates. The error cases and feedback were displaying in the wrong steps. 2024-11-05 16:05:35 +00:00
Peter Clement 09e5bad62e Fix issue with branching bindings 2024-11-04 09:42:33 +00:00
Adria Navarro 3779c7f6c7 Typing 2024-10-30 17:13:03 +01:00
Adria Navarro b510d04129 Simplify 2024-10-30 17:02:34 +01:00
Adria Navarro 7aad0d6e92 Type branch filters 2024-10-30 17:00:09 +01:00
Dean 11d24db255 Merge remote-tracking branch 'origin/v3-ui' into feature/automation-branching-ux 2024-10-28 12:00:33 +00:00
Sam Rose 407484bbe5
Respond to PR comments. 2024-10-25 16:21:10 +01:00
Sam Rose 0875ac817c
Merge branch 'master' into budi-8742-add-a-baseurl-binding-inside-automations 2024-10-25 10:51:29 +01:00
Dean fb17881ea3 Merge remote-tracking branch 'origin/v3-ui' into feature/automation-branching-ux 2024-10-23 09:23:01 +01:00
Peter Clement 09695fabd6 extract necessary user bindings and add types 2024-10-22 10:52:52 +01:00
Peter Clement a26b64bb03 pass user through to automation context 2024-10-18 15:08:18 +01:00
Sam Rose 3fc170c16b
Add settings to automation context. 2024-10-15 17:33:32 +01:00
Peter Clement 030022adad lint 2024-10-14 09:37:30 +01:00
Peter Clement b304d1d622 changes to support automation conditions on both sides of evaluation 2024-10-14 09:30:05 +01:00
Dean 9382ca4c0b Branching UX updates, fix for looping results and general failure results for automations. Added fix for stacking currentItem loop bindings 2024-10-11 16:20:26 +01:00
Peter Clement f00593ff26 pr comments 2024-10-01 12:25:41 +01:00
Peter Clement 5d31976835 updated automation thread to use ids and test 2024-09-30 13:08:11 +01:00
Peter Clement 5ef0e48ee0 add back space 2024-09-27 10:21:52 +01:00
Peter Clement f03ed03794
remove space
Co-authored-by: Sam Rose <hello@samwho.dev>
2024-09-27 10:05:05 +01:00
Peter Clement acdcd02fcd Fix small issue with conditions in branches 2024-09-27 09:12:50 +01:00
Peter Clement 2cdbf4190b Merge remote-tracking branch 'origin/master' into feat/automation-step-naming-updates 2024-09-12 14:10:52 +01:00
Peter Clement 60dd500ecb rename func 2024-09-11 15:12:50 +01:00
Peter Clement 56b727a245 uneeded boolean 2024-09-11 15:00:39 +01:00
Peter Clement 1947000f0c update case where no branch condition is met 2024-09-11 14:50:52 +01:00
Peter Clement 2d4ac7fced remove logs 2024-09-11 11:40:06 +01:00
Peter Clement abaa40a272 automation steps using names 2024-09-10 17:09:42 +01:00
Peter Clement 452ff17e1f
Merge branch 'master' into fix/automation-context-bug 2024-09-04 17:54:15 +01:00
Peter Clement 9782ddb9ee missing param 2024-09-04 15:29:07 +01:00
Peter Clement 5e4b2fa500 use .call 2024-09-04 15:13:11 +01:00
Peter Clement 3a8a8b1195 fix issue with multiple loops breaking automation context 2024-09-04 14:54:47 +01:00
Peter Clement 56641e06c3 re-add branch step to outputs 2024-09-03 11:10:30 +01:00
Peter Clement 66fdf03398
Refactor automation orchestrator to support branching (#14461)
* refactor automation thread

* fix infinite loop in branching

* remove try catch

* remove spacing

* remove unecessary addition of branch outputs

* pr comments

* remove loopstep instance variable

* add test to cover failure scenario

* add tests for other automationf ailure conditions

* update test name

* use private keyword instead of underscore

* parse int / string safely

* fix refs

* add condition support for branching and tests

* create helper function for recursing all search filters

* move helper func

* fix import
2024-09-03 08:33:41 +00:00
Peter Clement f15847a40f
More automation typing in preparation for branching (#14378)
* More typing for automations

* undo test updates

* remove casting of loop step and add more types

* remove unused type

* pro

* Update types and fix ts issues

* add branching types

* remove any cast

---------

Co-authored-by: Adria Navarro <adria@budibase.com>
2024-08-14 21:39:39 +01:00
Peter Clement 8539f6d853
Add helper function / builder for creating Automations for tests and improved types (#14220)
* basic class for generating and running an automation

* change filename

* add to existing tests

* remove dupe tests

* add types to automation steps

* add types to triggers

* update tests and typing

* fix types

* typo

* move all step schema types do types folder

* updated types

* typing pr comments

* remove unused param

* some more typing and tests

* more typing

* improve type map

* fix broken type

* this will surely fix my issue
2024-07-31 22:18:00 +01:00
Peter Clement 1fa18ccfce
Some automation fixes and refactoring (#13870)
* fix issue where booleans were being parsed to null

* refactor looping out of automations

* clean out execute function in orchestrator of looping code

* re-add accidentally deleted file

* remove spec file

* remove log

* move code back into main automation thread

* account portal update

---------

Co-authored-by: Adria Navarro <adria@budibase.com>
Co-authored-by: Michael Drury <me@michaeldrury.co.uk>
Co-authored-by: Sam Rose <hello@samwho.dev>
2024-06-25 11:17:14 +01:00
Peter Clement 2149b7dc57 fix issue where automation meta fields were being overridden 2024-04-11 11:31:26 +01:00
Andrew Kingston c25ea7a9d7 Fix external triggers not getting snippet context 2024-03-13 09:42:31 +00:00
mike12345567 cfd1c98c85 Updating timeouts for automations, making it easier to manage/find the various timeout limits. Also adding a new environment variable AUTOMATION_THREAD_TIMEOUT which can be used to control how long automations can run for. 2024-02-14 11:44:07 +00:00
Sam Rose b3c949b091
Fix case where if a binding returned an int it would throw an error. 2024-01-30 11:06:09 +00:00
Sam Rose 72d63d0c00
Rename executeSynchronously to be a bit less confusing, as it does not execute synchronously. 2024-01-30 10:57:25 +00:00
Sam Rose 456817ee7b
More loop step typing improvements. 2024-01-30 10:37:23 +00:00
Sam Rose 669b0743ac
Typing improvements around automation loop tests. 2024-01-30 10:00:44 +00:00
Sam Rose 642b75e0ae
Revert "Remove all custom tracing to see if it's the cause of the memory leak." 2024-01-02 11:36:32 +00:00
Sam Rose 3c0901f530
Remove all custom tracing to see if it's the cause of the memory leak. 2023-12-21 11:06:05 +00:00
Sam Rose 406410d916
Add DataDog tracing to automations. 2023-12-19 15:57:56 +00:00
Sam Rose e3a4c34f8d
Pass types through context callbacks. 2023-11-08 16:17:24 +00:00
mike12345567 2f115b5b64 Quick fix for automation timing. 2023-09-07 15:27:52 +01:00