Commit Graph

612 Commits

Author SHA1 Message Date
Martin McKeaveney 7b867abd19 flag ai with feature flags correctly 2024-11-04 22:15:41 +00:00
Peter Clement 09e5bad62e Fix issue with branching bindings 2024-11-04 09:42:33 +00: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 199c447bc4
Merge branch 'master' into v3-ui 2024-10-28 11:01:22 +00: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 071a5b1d46 Merge remote-tracking branch 'origin/v3-ui' into feature/automation-branching-ux 2024-10-23 14:36:16 +01:00
Martin McKeaveney e938a41fde
Merge pull request #14846 from Budibase/ai-fixes-3.0
BB AI QA testing fixes
2024-10-23 11:47:08 +01:00
Martin McKeaveney 8f0a234ae3 fix tests 2024-10-23 11:13:52 +01:00
Dean fb17881ea3 Merge remote-tracking branch 'origin/v3-ui' into feature/automation-branching-ux 2024-10-23 09:23:01 +01:00
Martin McKeaveney 807ecf6039 BB AI QA testing fixes 2024-10-22 18:24:10 +01:00
Peter Clement bce430b57c pr comments 2024-10-22 12:03:16 +01:00
Peter Clement abe725a3b9 Merge remote-tracking branch 'origin/master' into feat/support-user-in-automation-context 2024-10-22 10:53:17 +01:00
Peter Clement 09695fabd6 extract necessary user bindings and add types 2024-10-22 10:52:52 +01:00
Dean 7aa0ee766a Merge remote-tracking branch 'origin/v3-ui' into feature/automation-branching-ux 2024-10-21 15:18:40 +01:00
mike12345567 87bdd68afa Updating to use enum for feature flags across the board. 2024-10-18 17:07:35 +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 b304d1d622 changes to support automation conditions on both sides of evaluation 2024-10-14 09:30:05 +01:00
Dean 4928c7f553 Add a default branch id for server tests 2024-10-14 09:06:49 +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 acdcd02fcd Fix small issue with conditions in branches 2024-09-27 09:12:50 +01:00
Peter Clement 4bc30a0187 pr comment 2024-09-26 11:50:03 +01:00
Peter Clement 44702bbfb6 pr comments 2024-09-26 10:22:16 +01:00
Peter Clement 0c6946af62 more automation tests 2024-09-24 15:01:05 +01:00
Peter Clement 6842c392a2 Merge remote-tracking branch 'origin/master' into feat/more-automation-tests 2024-09-24 12:05:54 +01:00
Peter Clement 980615b37b looping query rows 2024-09-24 11:08:44 +01:00
mike12345567 c8d1956c73 Fixing AI test cases. 2024-09-23 12:59:20 +01:00
Martin McKeaveney 876d837c33 adjust instantiation of llm class after static initialiser change 2024-09-20 14:58:10 +01:00
Martin McKeaveney dadce14a71
Merge branch 'master' into budi-8608-ai-platform-level-config-pt-2 2024-09-19 10:48:01 +01:00
Martin McKeaveney 950bd45b2c add ts ignore for mock 2024-09-18 18:04:13 +01:00
Martin McKeaveney 69b2bf9bdb lint 2024-09-18 14:21:10 +01:00
Martin McKeaveney 9cbaa02f5f add test for automation run step when LLM feature flags are on 2024-09-18 14:01:54 +01:00
Martin McKeaveney 2cf07a40f6 fix for setting default configs 2024-09-18 09:44:33 +01:00
Martin McKeaveney e40f397c25 move check for OpenAI config variable to legacy path 2024-09-17 16:29:44 +01:00
Martin McKeaveney 224be10b6c support for overriding models 2024-09-17 16:08:59 +01:00
deanhannigan e3abaab419
Merge branch 'master' into feat/automation-step-naming-updates 2024-09-17 09:15:17 +01:00
Martin McKeaveney 7fc0f38296 Merge branch 'master' of github.com:Budibase/budibase into budi-8608-ai-platform-level-config-pt-2 2024-09-16 11:54:12 +01:00
Martin McKeaveney c85bc88bf9 draft of openai impl 2024-09-16 11:54:04 +01:00
mike12345567 2a69cb220f Fixing an issue where table doesn't exist anymore for row trigger, which can cause the service to crash. 2024-09-13 18:54:47 +01:00
Peter Clement 7e767e4089 some pr comments 2024-09-13 12:25:39 +01:00
Peter Clement c980742081 Merge remote-tracking branch 'origin/master' into feat/automation-step-naming-updates 2024-09-13 12:04:48 +01:00
Pascal Reichmuth e4664d23d7
Update openai.ts 2024-09-12 16:22:49 +02:00
Peter Clement a831a4bf07 tests to cover automation naming 2024-09-12 14:58:53 +01:00
Pascal Reichmuth d8ff33441e
Update openai.ts 2024-09-12 15:51:00 +02:00
Peter Clement 594551e1b5 tests for filter steps 2024-09-12 14:05:32 +01:00
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
Dean b6d7715831 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-06-27 12:49:26 +01:00
Peter Clement cf11009e24
Update OpenAI dependency to fix 400 errors (#14033)
* Update OpenAI dependency to fix 400 errors

* add some optional chaining for safety

* add caret

* fix tests
2024-06-27 12:17:48 +01:00
Dean 2243314314 Defaulting to null in the updateRow step causes issues in row mapping. Switching back to empty string 2024-06-27 09:10:28 +01:00
Dean d10ef7b795 Alter logic for field config checks causing test issues 2024-06-26 15:34:00 +01:00