1
0
Fork 0
mirror of synced 2024-09-21 11:53:49 +12:00
Commit graph

516 commits

Author SHA1 Message Date
Peter Clement
babbe16d7d fix test name 2024-09-11 15:50:21 +01:00
Peter Clement
f377b9f566 remove top level table config 2024-09-11 15:39:21 +01:00
Peter Clement
1947000f0c update case where no branch condition is met 2024-09-11 14:50:52 +01:00
Peter Clement
4231dafc94 remove uneeded import 2024-09-09 14:26:37 +01:00
Peter Clement
b1b861139d feature flag the branch action definition 2024-09-05 14:25:04 +01:00
Peter Clement
452ff17e1f
Merge branch 'master' into fix/automation-context-bug 2024-09-04 17:54:15 +01:00
Peter Clement
2135dbca67 update automation test builder to support ...building 2024-09-04 16:37:33 +01:00
Peter Clement
3a8a8b1195 fix issue with multiple loops breaking automation context 2024-09-04 14:54:47 +01:00
Peter Clement
484b329bc8 ensure branch step is in output 2024-09-03 16:29:52 +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
0e229c9b2e
Update automation test builder to support branching (#14387)
* add branch step definition

* update automation test builder to support branching

* rename Automation test builder

* example test

* pr comments
2024-08-15 16:07:42 +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
37f749019d
Add more automation tests (#14369)
* Add more automation tests

* remove comment

* update assertion

* unused type

* split out query creation

* remove map
2024-08-13 14:16:55 +01:00
Sam Rose
083b595d50
Fix formatting. 2024-08-09 11:58:57 +01:00
Sam Rose
3d590e879e
Rely on withEnv and setEnv functions in respective environment.ts files. 2024-08-09 10:30:27 +01:00
Adria Navarro
80ff963082 Remove unnecessary coercion 2024-08-07 17:01:59 +02:00
Adria Navarro
b9c1aa05b0 Add todo for types 2024-08-06 09:10:41 +02:00
Sam Rose
1ce5b53409
Add Oracle to executeQuery.spec.ts 2024-08-02 17:20:52 +01:00
Sam Rose
c8fadc33d9
Fix discorfd.spec.ts's reliance on the node-fetch mock. 2024-08-01 12:21:42 +01:00
Sam Rose
6d70dd1924
Fix outgoingWebhook.spec.ts's reliance on the node-fetch mock. 2024-08-01 12:19:44 +01:00
Sam Rose
b39875fb4b
Fix make.spec.ts's reliance on the node-fetch mock. 2024-08-01 12:07:01 +01:00
Sam Rose
f16f1fb7ba
Fix zapier.spec.ts's reliance on the node-fetch mock. 2024-08-01 12:03:29 +01:00
Sam Rose
e530400f46
Fix n8n.spec.ts's reliance on the node-fetch mock. 2024-08-01 11:57:04 +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
mike12345567
8a7e0793d4 Linting. 2024-07-30 16:07:09 +01:00
mike12345567
8f7a88ce86 Moving logic to frontend - definitions are returned unless they are deprecated, frontend decides which it can use to create. 2024-07-30 16:04:33 +01:00
mike12345567
76652ddab5 Fixes some issues with row actions which were allowing them to be added from the automation section (which is not allowed) as well as breaking app access once they were added - this hides them properly so they can't be added as well as fixing the issue when they exist. 2024-07-30 15:07:34 +01:00
Adria Navarro
0ee0901961 Remove comment 2024-07-25 16:16:18 +02:00
Adria Navarro
173a9cb75a Clean outputs 2024-07-25 16:15:23 +02:00
Adria Navarro
b12641e467
Merge branch 'master' into BUDI-8441/row-action-run-api 2024-07-25 16:09:23 +02:00
Adria Navarro
db9bc1f373 Fix types 2024-07-25 16:08:51 +02:00
Adria Navarro
297ff58b67 Pass proper params 2024-07-25 15:37:50 +02:00
Adria Navarro
62eaa11ebb Add trigger 2024-07-25 15:37:49 +02:00
Adria Navarro
aafe7a2831
Merge branch 'master' into feat/row-actions 2024-07-25 11:13:18 +02:00
Peter Clement
5ab81543e3
Fix issue with trigger filters not saving (#14231)
* Fix issue with trigger filters not saving

* use enum instead of nasty string

---------

Co-authored-by: Michael Drury <me@michaeldrury.co.uk>
2024-07-25 09:30:38 +01:00
Adria Navarro
f7a460a1ea Implement run 2024-07-25 08:38:11 +02:00
Adria Navarro
37e237a3a4 Add output properties 2024-07-25 08:37:41 +02:00
Adria Navarro
2e47410979 Reuse trigger 2024-07-24 17:11:03 +02:00
Peter Clement
7fd55fe27d
Automation trigger filtering (#14123)
* backend for triggering automation based on filters

* frontend for handling triggering automations on filter / old row

* lint and bug fix

* fix issue with test header

* make test data optional

* improve safety on trigger gate

* add support for running trigger with filter if no change happened but filter matches

* update var naming to actually make sense

* tests

* fix lint

* improve gating for shouldTrigger check

* remove unecessary cast

* unecessary tableId check

* frontend text updates

* resolving comments

* pro

* Update packages/types/src/documents/app/automation.ts

Co-authored-by: Sam Rose <hello@samwho.dev>

* link out to docs for trigger filtering

* fix pro

* more pr comments

* use getAppId

---------

Co-authored-by: Sam Rose <hello@samwho.dev>
2024-07-18 10:38:15 +01:00
Adria Navarro
f57d8a6147 Fix jest circular references 2024-07-17 17:46:48 +02:00
Adria Navarro
0e8d216e22 Unify newid 2024-07-12 11:36:18 +02:00
Dean
87b53ca452 Removed dupe import 2024-07-04 15:26:15 +01:00
Dean
3a1a600b91 PR feedback 2024-07-04 15:19:56 +01:00
Dean
a4a472b2d8 Squash the oldRow variable to avoid issues when serialising. Added a try/catch when queuing automations in dev 2024-07-04 12:13:58 +01:00
Dean
3c32c08ca8 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-07-03 17:17:08 +01:00
Sam Rose
3a74df0a4a
Fix tests. 2024-07-03 17:04:31 +01:00
Sam Rose
cd98882127
Move secrets into backend-core. 2024-07-03 16:30:23 +01:00
Dean
da91991cc1 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-07-03 10:43:20 +01:00
Peter Clement
9809bf1a91
Fix an issue where null values were causing an error in automation loops (#14083)
* fixes an issue where nulls weren't being handled correctly in loops

* remove log

* update recursive gate to be more specific

* use lodash for object check
2024-07-03 09:07:44 +00:00