Commit Graph

5109 Commits

Author SHA1 Message Date
Martin McKeaveney 324597b2a4 dependency upgrades for security scanners 2024-11-10 16:28:43 +00:00
Martin McKeaveney 1543e6dc2b env variable for turning off csp 2024-11-10 13:08:51 +00:00
Adria Navarro 34d6eb0f57 Merge branch 'master' into chore/sqs-always-on 2024-11-08 10:27:44 +01:00
Adria Navarro db48e913e9 Undo auditlog.spec test changes 2024-11-07 11:16:31 +01:00
Adria Navarro c5da1a06c6 Close server back 2024-11-07 11:16:31 +01:00
Adria Navarro 505146f4b3 Add utils 2024-11-07 11:16:31 +01:00
Adria Navarro b2488af6da Use utils 2024-11-07 11:16:31 +01:00
Adria Navarro 4f6a09fb02 Add utils 2024-11-07 11:16:31 +01:00
Adria Navarro 358f91177c Fix test 2024-11-07 11:16:31 +01:00
Sam Rose 915a7b4c1c
Merge master. 2024-11-06 17:34:51 +00:00
Sam Rose 45976313ab
Fix build. 2024-11-06 10:46:00 +00:00
Sam Rose ff9d59e1ee
Log SQS connection errors, and retry connection a few times before giving up. 2024-11-05 15:35:38 +00:00
Martin McKeaveney 7623c0ce07 further AI config updates for case where there's no configuration 2024-11-05 10:54:33 +00:00
Adria Navarro 7235fd9d5c Merge from master 2024-11-04 10:25:38 +01:00
Adria Navarro 20ed18a0e2
Merge branch 'master' into v3-ui 2024-10-31 10:14:41 +01:00
Mel O'Hagan 41807e87b3 Don't throw if no account-holder is found 2024-10-31 08:44:36 +00:00
Adria Navarro 45dd00f0d3
Merge branch 'master' into v3-ui 2024-10-30 14:19:35 +01:00
Adria Navarro 867dccce5a Remove --check-files 2024-10-30 13:51:43 +01:00
Adria Navarro 6b0005bcc6 Different yarn cache between platforms 2024-10-30 13:32:43 +01:00
Adria Navarro cbb3859bac Remove --frozen-lockfile 2024-10-30 12:55:41 +01:00
Adria Navarro 471c217a86 Add --check-files 2024-10-30 11:28:52 +01:00
Adria Navarro 847d775103 Fix dockerfile 2024-10-30 11:15:36 +01:00
Andrew Kingston ff4d919083
Merge branch 'master' of github.com:Budibase/budibase into v3-ui 2024-10-30 09:29:24 +00:00
Adria Navarro e8771f7b51 Reenable cache and frozen-lockfile 2024-10-30 10:19:05 +01:00
mike12345567 b433f0f710 Removing yarn caching from docker builds. 2024-10-29 17:16:08 +00:00
Michael Drury 8e0ebba099
Revert "Revert to state from 2.33.4." 2024-10-29 17:11:28 +00:00
Sam Rose fea668e6b6
Revert to state from 2.33.4. 2024-10-29 15:55:38 +00:00
mike12345567 2473f6859c Updating dockerfiles to contain the network-concurrency 1 option. 2024-10-29 14:54:36 +00:00
Adria Navarro 5cf0e334c2
Merge branch 'master' into v3-ui 2024-10-28 16:37:17 +01:00
melohagan 7dcdce2480
Gro 738 refactor code that returns the account holder from user (#14872)
* WIP

* WIP

* Remove tests

* Remove TenantInfo

* Remove unused export

* Remove TenantInfo type

* Remove unused export

* Remove unused routes

* Add getAccountHolder front-end endpoint

* Add endpoint to no tenancy list

* Get account holder via appId

* lint

* Update pro ref

* Use account email instead of budibaseUserId (#14876)

* Update account-portal ref

* Update account portal ref

* Correct import order

* Simplify boolean

* type fix

* Rename endpoint to accountholder

* Update account-portal ref

* Refactor

* Refactor to not use appId

* Update type

* appId not needed

* Unused import
2024-10-28 14:46:42 +00:00
mike12345567 8f21802e6e Refactor, correct to the BuiltinPermissionID rather than PermissionLevel, these are different. 2024-10-23 15:08:59 +01:00
Adria Navarro 67d2e0cf61 Port changes from PR #14846 2024-10-23 14:34:39 +02:00
Martin McKeaveney 8f0a234ae3 fix tests 2024-10-23 11:13:52 +01:00
Martin McKeaveney 4f5e831b22 PR comments 2024-10-22 21:48:03 +01:00
Martin McKeaveney 29ab9bef7d fix lint 2024-10-22 18:31:07 +01:00
Martin McKeaveney 807ecf6039 BB AI QA testing fixes 2024-10-22 18:24:10 +01:00
Adria Navarro e7d4f90f1b Cleanup sqs flags from tests 2024-10-21 15:31:33 +02:00
Adria Navarro 9e501b4e65 Cleanup SQS feature usages 2024-10-21 15:19:55 +02:00
mike12345567 87bdd68afa Updating to use enum for feature flags across the board. 2024-10-18 17:07:35 +01:00
Adria Navarro 4c688b9734 Add more tests 2024-10-17 16:40:26 +02:00
Adria Navarro 7bb69d7ffd Add tests 2024-10-17 12:17:01 +02:00
Sam Rose 26f2deb234
Set proxy setting on Koa application. 2024-10-09 13:34:43 +01:00
Sam Rose eee2991b09
Rejib IP fetching. 2024-10-09 12:57:14 +01:00
Adria Navarro bf62153b8b Add test with conditions 2024-10-09 10:16:32 +02:00
Sam Rose 11804f6ddd
Create a feature flag helper for tests. 2024-10-07 18:18:04 +01:00
andz-bb 696b2c38db persist app sort method selection by saving it against the user 2024-10-04 10:54:14 +01:00
Sam Rose c0cc2a9e3d
Move isSupportedUserSearch from backend-core to shared-core. 2024-09-30 15:16:24 +01:00
Martin McKeaveney b45017dd5a lint 2024-09-19 17:06:09 +01:00
Martin McKeaveney 6a5f001977 remove tests that are no longer relevant in worker 2024-09-19 10:54:25 +01:00
Martin McKeaveney e0fb44f63f lint 2024-09-19 10:21:49 +01:00
Martin McKeaveney 8a399bfbdf set custom configs quotas to right number 2024-09-18 17:42:55 +01:00
Martin McKeaveney 8e2d21c85f call right sdk method on ai module for enriching AI config 2024-09-17 18:27:49 +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
Andrew Kingston 663c0f20af
Don't use display names as role names, and restore usual names for built in roles 2024-09-13 14:14:36 +01:00
mike12345567 b644dd47b9 build fix. 2024-09-12 16:27:18 +01:00
melohagan 49a4e252c6
Allow an account holder to login to account-portal if the tenant has been deleted. (#14547)
* Add email to session for populate user

* Add email param

* use param object

* Type fix for tests

* Fix test

* Temporarily remove account-portal tests
2024-09-12 08:38:11 +00:00
Martin McKeaveney a27be54b69 make mocks async 2024-09-10 22:38:45 +01:00
Martin McKeaveney 38fc65c541 fix tests 2024-09-10 22:25:47 +01:00
Martin McKeaveney 304b2a5c61
Update packages/worker/src/api/controllers/global/configs.ts
Co-authored-by: Sam Rose <hello@samwho.dev>
2024-09-10 16:45:32 +01:00
Martin McKeaveney c6907eb09e fix types 2024-09-10 16:41:44 +01:00
Martin McKeaveney 1ee8a12e29 use real data instead of mocks 2024-09-10 16:01:00 +01:00
Martin McKeaveney 933ca952d2 lint 2024-09-10 14:50:17 +01:00
Martin McKeaveney 0cf626be91 Merge 2024-09-10 11:00:33 +01:00
Martin McKeaveney 08669793d7 Merge branch 'budi-8608-ai-platform-level-config' of github.com:Budibase/budibase into budi-8608-ai-platform-level-config 2024-09-10 10:55:25 +01:00
Martin McKeaveney 4fed5787ac review comments 2024-09-10 10:54:50 +01:00
Martin McKeaveney 7a376d9629
Update packages/worker/src/api/controllers/global/configs.ts
Co-authored-by: Sam Rose <hello@samwho.dev>
2024-09-10 10:26:18 +01:00
Martin McKeaveney 96fbc8fff0 feature flag support 2024-09-09 18:07:47 +01:00
Martin McKeaveney b4a4f81308 linting 2024-09-09 16:52:56 +01:00
Martin McKeaveney 57698170a8 lint 2024-09-09 13:55:26 +01:00
Martin McKeaveney 073017a0d6 remove todo comment 2024-09-06 15:43:34 +01:00
Martin McKeaveney 6bf4f47110 further tests around default BB AI config 2024-09-06 15:42:37 +01:00
Martin McKeaveney 891f736815 unit tests for secrets mapping 2024-09-06 15:37:09 +01:00
Martin McKeaveney d3b90a0253 initial impl of default Budibase AI config through env vars 2024-09-03 19:47:36 +01:00
Martin McKeaveney 0d5e776424 preserve apikeys on save 2024-09-03 19:12:13 +01:00
Martin McKeaveney 43135e4274 AI Config CRUD complete 2024-09-03 17:18:46 +01:00
Martin McKeaveney ca4b17bc9b icons, styling of AI configs and further simplification 2024-09-03 15:11:52 +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
Martin McKeaveney f328ae4bf9 account for arrays 2024-09-02 20:45:32 +01:00
Martin McKeaveney 99035ad8ae rough pass on AI platform CRUD 2024-09-02 20:16:58 +01:00
Michael Drury 9b84d959dc
Merge branch 'master' into fix/sqs-default-dev-on 2024-08-30 18:07:51 +01:00
mike12345567 6249f41bbb Make sure Lucene correctly sets environment variables in development tests. 2024-08-30 17:34:10 +01:00
melohagan 3f357561d0
The UI should indicate who the account holder is (#14470)
* Get tenantInfo in user fetch

* Add account holder label in users table

* Don't allow account holder to be selected in users table

* Sort account holder to top of list

* Only use account holder role in users table

* lint

* Remove joi validation from tenant-info endpoint

* Remove dayPasses

* Catch CouchDB 404 and return undefined

* Don't allow account holder role to be changed UI

* Don't offer delete option for tenant owner

* Backend validation to ensure account holder role cannot be updated

* Don't allow account holder role to be changed UI

* Get tenantOwner in separate call

* Pass data into SelectEditRenderer

* Rename var to __selectable

* setEnrichedUsers

* Update pro reference

* Only load tenantOwner once
2024-08-30 16:29:38 +00:00
mike12345567 b622df2683 Defaulting SQS to on in development environments, this removes the need for setting it in the management scripts. 2024-08-30 15:10:55 +01:00
Sam Rose 43560b3269
Fix environment test. 2024-08-27 14:40:15 +01:00
Sam Rose 71000ea967
Fix lint. 2024-08-15 16:11:06 +01:00
Sam Rose 06a7801d8c
Remove global audit logs SQS flag. 2024-08-15 15:37:51 +01:00
Sam Rose 86717b536b
Use new feature flag API for SQS. 2024-08-15 14:58:11 +01:00
Sam Rose 4a1fd6481f
Remove old, unused feature flags. 2024-08-15 10:53:43 +01:00
melohagan 151fff51c5
Make generated passwords longer (#14362)
* Make generated passwords longer

* Use crypto for generating passwords

* Remove comments

* Generate password with length 12
2024-08-12 20:37:59 +00:00
Sam Rose 1b556f29fe
Rebase on posthog-feature-flags 2024-08-09 14:00:16 +01:00
Sam Rose 4887ca261e
Improve testing of feature flags by not polluting production flags with test ones. 2024-08-09 11:27:43 +01:00
Sam Rose 079dcdcc6e
Merge branch 'master' into posthog-feature-flags 2024-08-08 17:59:57 +01:00
melohagan c86b1d7ca5
Auto login the user after password is set (#14344)
* login after creating super admin user

* Allow keyboard enter key in create account from invite

* Allow enter key to submit password reset

* Min length for password validation should be 12

* Default PASSWORD_MIN_LENGTH to 12

* fix unit tests

* Fix unit tests

* Add passwordMinLength to admin store
2024-08-08 17:45:04 +01:00
Sam Rose d7e07bb44a
Fix worker tests. 2024-08-07 17:33:47 +01:00
Sam Rose edb3b685b5
Remove node-fetch mock from backend-core and replace with nock. 2024-08-07 15:26:04 +01:00
Sam Rose da74441c1c
Merge branch 'master' of github.com:budibase/budibase into budi-8483-consolidate-feature-flags-into-a-single-endpoint 2024-08-05 17:11:23 +01:00
melohagan f07ebc18db
Make sure to delete SSO ID doc as well (#14307) 2024-08-05 12:54:36 +01:00
melohagan 60f7c03e17
Fix/verify sso bug (#14253)
* Delete associated SSO user

* Update reset password screen

* Partial type removed

* lint

* Split getFirstPlatformUser from getPlatformUsers

* lint

* Use correct method

* Code review comments

* lint
2024-07-29 13:25:46 +01:00
Sam Rose f3c73fe4a8
Support primitives in feature flags, make flag types flow, remove some obsolete feature flag systems. 2024-07-22 17:43:53 +01:00