Commit Graph

633 Commits

Author SHA1 Message Date
Peter Clement 9f35ea0839 fix tests 2024-11-25 12:40:20 +00:00
Peter Clement db032ed35b update properties to be correct 2024-11-25 10:14:32 +00:00
Peter Clement 08f5df2546 add execute script automation tests 2024-11-25 09:45:42 +00:00
Peter Clement 6a5c327085 add log back 2024-11-25 08:59:29 +00:00
Peter Clement 2a3f943957 fix issue where bindings where incorrect in automations 2024-11-22 11:30:46 +00:00
mike12345567 66ade79ff9 Updating rest of test cases. 2024-11-18 17:55:40 +00:00
Sam Rose c418ffc8a9
Merge branch 'chore/sqs-always-on' of github.com:budibase/budibase into split-server-tests-out-by-database 2024-11-07 10:16:57 +00:00
Adria Navarro 5089528ffd
Merge branch 'master' into BUDI-8683/correct-automation-cron-server-timestamp 2024-11-07 10:58:35 +01:00
Sam Rose 42a0e26aed
Merge chore/sqs-always-on 2024-11-06 17:35:55 +00:00
Sam Rose 48578e1f18
Fix some automation tests. 2024-11-06 17:29:34 +00:00
Sam Rose 50ce97135c
Fix scienarios.spec.ts 2024-11-06 17:13:29 +00:00
Peter Clement 7072acfa1b
Merge branch 'master' into fix/issue-with-looping-iterations 2024-11-06 17:04:03 +00:00
Peter Clement 7bbbaadea4 Issue where looping wasn't working due to missing context 2024-11-06 16:59:44 +00:00
Adria Navarro 0667dd9d30 Add test 2024-11-06 12:39:56 +01:00
Adria Navarro cbf0cf76d3 Use timestamp from runtime 2024-11-06 12:39:56 +01:00
Dean 80526ad9b7 Merge remote-tracking branch 'origin/master' into feature/automation-branching-ux 2024-11-05 14:36:15 +00:00
Martin McKeaveney a197a2ead9 lint 2024-11-05 11:58:05 +00:00
Martin McKeaveney a8aa0d0822 fix tests 2024-11-05 11:50:28 +00:00
Martin McKeaveney e4181ecacf merge 2024-11-05 11:09:56 +00:00
Martin McKeaveney 7623c0ce07 further AI config updates for case where there's no configuration 2024-11-05 10:54:33 +00:00
Dean 1ac6244951 Merge remote-tracking branch 'origin/master' into feature/automation-branching-ux 2024-11-05 09:11:08 +00:00
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