Commit Graph

3614 Commits

Author SHA1 Message Date
Adria Navarro 1c4fc21870 Lint 2024-04-25 16:36:47 +02:00
Adria Navarro e0216bb00c Lint 2024-04-25 13:20:59 +02:00
Adria Navarro d63c5830e5 Typings 2024-04-25 13:20:59 +02:00
Michael Drury 2187d25711
Revert "Changing client library to be retrieved via pre-signed URL for Cloud" 2024-04-24 17:12:36 +01:00
mike12345567 f76abb0ca9 Getting rid of linting error. 2024-04-24 15:59:11 +01:00
mike12345567 849253faba Bringing back the old mechanism of returning the client library through a pre-signed URL, rather than always serving through the service. 2024-04-24 15:37:47 +01:00
mike12345567 6ff00135bf Merge branch 'master' of github.com:Budibase/budibase into feature/sqs-table-cleanup 2024-04-22 17:22:53 +01:00
Peter Clement a4c0328c53
REST file handling and SMTP automation block attachments (#13403)
* handle files in rest connector

* fetch presigned url and return

* further updates to handle files in rest connector

* remove unused important and fix extension bug

* wrong expiry param

* tests

* add const for temp bucket

* handle ttl on bucket

* more bucket ttl work

* split out fileresponse and xmlresponse into utils

* lint

* remove log

* fix tests

* some pr comments

* update function naming and lint

* adding back needed response for frontend

* use fsp

* handle different content-disposition and potential path traversal

* add test container for s3 / minio

* add test case for filename* and ascii filenames

* move tests into separate describe

* remove log

* up timeout

* switch to minio image instead of localstack

* use minio image instead of s3 for testing

* stream file upload instead

* use streamUpload and update signatures

* update bucketcreate return

* throw real error

* tidy up

* pro

* pro ref fix?

* pro fix

* pro fix?

* move minio test provider to backend-core

* update email builder to allow attachments

* testing for sending files via smtp

* use backend-core minio test container in server

* handle different types of url

* fix minio test provider

* test with container host

* lint

* try different hostname?

* Revert "try different hostname?"

This reverts commit cfefdb8ded.

* fix issue with fetching of signed url with test minio

* update autoamtion attachments to take filename and url

* fix tests

* pro ref

* fix parsing of url object

* pr comments and linting

* pro ref

* fix pro again

* fix pro

* account-portal

* fix null issue

* fix ref

* ref

* When sending a file attachment in email fetch it directly from our object store

* add more checks to ensure we're working with a signed url

* update test to account for direct object store read

* formatting

* fix time issues within test

* update bucket and path extraction to regex

* use const in regex

* pro

* Updating TTL handling in upload functions (#13539)

* Updating TTL handling in upload functions

* describe ttl type

* account for ttl creation in existing buckets and update types

* fix tests

* pro

* pro
2024-04-22 15:30:57 +00:00
mike12345567 8189952f0b Adding implementation to DB for purge and cleanup APIs of SQS, to make sure the DB is cleared of any unused tables or rows. 2024-04-19 18:03:38 +01:00
mike12345567 8bb6956925 Merge branch 'master' of github.com:Budibase/budibase into fix-oidc-error-logging 2024-04-19 13:29:21 +01:00
melohagan 6bdc726d55
Allow a displayName to be passed when creating admin user (#13516)
* Allow a displayName to be passed when creating admin user

* Set the first and last names

* Don't format handlebars files on save

* Use familyName and givenName
2024-04-18 12:52:00 +00:00
Adria Navarro f12e654811
Merge branch 'master' into chore/remove-disabling-nounusedvars 2024-04-17 15:49:35 +02:00
mike12345567 25dba0be35 This removes the SearchQuery which was a duplication of the SearchFilters interface - the duplicated types were not correctly getting overlay on each other, causing build errors. 2024-04-17 13:54:23 +01:00
Adria Navarro a88924a418 Remove // eslint-disable-next-line no-unused-vars 2024-04-17 12:24:41 +02:00
Adria Navarro ec93ea59c1 Remove // eslint-disable-next-line @typescript-eslint/no-unused-vars 2024-04-17 12:17:03 +02:00
Adria Navarro ca158c33e8 DRY 2024-04-17 10:33:20 +02:00
mike12345567 6e4a66b2e1 Initial implementation of generating SQS junction table definitions. 2024-04-11 18:19:47 +01:00
Michael Drury c190a9983f
Merge branch 'master' into fix-oidc-error-logging 2024-04-11 17:01:04 +01:00
Martin McKeaveney 4a6e1b7192 fix all cases of lint rule 2024-04-10 17:39:12 +01:00
mike12345567 20da8bb816 Adding support for SQS prepared statement API. 2024-04-10 17:36:57 +01:00
Sam Rose c5580b4767
Get SQS plumbing working in tests. 2024-04-09 15:31:32 +01:00
mike12345567 efe66186f4 Last PR comment - fixing issue with lucene test case. 2024-04-09 12:37:03 +01:00
mike12345567 5f44b98b7f Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-04-05 16:36:36 +01:00
mike12345567 86150c58ce Fixing issue with BB_ADMIN environment variables for user creation introduced by user password becoming optional. Adding a test case as well to cover this to avoid it breaking in future. 2024-04-05 12:14:51 +01:00
mike12345567 d11c316572 Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-04-04 15:02:25 +01:00
Sam Rose 79184e70af
Remove CONTAINER_NAMESPACE, it wasn't the solution. 2024-04-03 12:32:29 +01:00
Sam Rose 258226ddef
Better error message when multiple images are found. 2024-04-03 11:40:14 +01:00
Sam Rose 8cffdeda56
Re-use containers and create namespaces for each test. 2024-04-03 11:33:39 +01:00
Sam Rose 3dff4bf334
Fix lint. 2024-04-03 11:20:43 +01:00
Sam Rose e3fbce25fa
Merge branch 'master' of github.com:budibase/budibase into reuse-containers 2024-04-03 11:15:11 +01:00
mike12345567 9b8b422f1b Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-04-03 10:16:23 +01:00
mike12345567 8c326b501b Adding support for oneOf ID search of users, today the relationship picker attempts to use this for the users table, but it was not supported. 2024-04-02 17:12:31 +01:00
mike12345567 5e186b5c8a Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-04-02 12:05:34 +01:00
mike12345567 4c755b3af3 Improving typing around search, there was duplicates of SearchParams and SearchResponse - which were a little different, bring all of this together under the types library. 2024-03-28 17:57:37 +00:00
Sam Rose 90cfdd661d
Rework how we connect to containers. 2024-03-28 17:36:26 +00:00
Martin McKeaveney 32a5ce24ec remove automatic ssoId generation 2024-03-28 15:46:43 +00:00
José Vte. Calderón b5e0bd1aad
Merge branch 'master' into feature/update-global-user 2024-03-28 12:05:29 +01:00
jvcalderon b77106480e Adds POST /api/global/users/sso endpoint 2024-03-28 11:46:58 +01:00
Sam Rose 204b16876a
Run yarn lint:fix 2024-03-27 16:46:11 +00:00
Sam Rose 831c174362
Give SQL integrations their own database when fetching a new datasource. 2024-03-27 15:25:37 +00:00
mike12345567 de518de8fa Merging issue with static index. 2024-03-26 12:53:45 +00:00
Sam Rose 6ee8f421a5
Merge branch 'master' of github.com:budibase/budibase into remove-jest-testcontainers 2024-03-26 10:05:21 +00:00
Sam Rose 415b27a008
Don't need a globalTeardown, testcontainers handles the removal of containers. 2024-03-26 10:00:34 +00:00
Sam Rose 5d7cd511b5
Correct path to global functions in jest.config.ts. 2024-03-26 09:51:10 +00:00
Sam Rose f3e9e3d35e
Share a single globalSetup/globalTeardown. 2024-03-26 09:49:33 +00:00
Sam Rose afacee978d
Add missing environment vars for backend-core tests. 2024-03-25 17:40:46 +00:00
Sam Rose 0dba0cebc7
Remove CouchDB container name. 2024-03-25 17:26:15 +00:00
Sam Rose 44d4e496b6
Fix code to pull CouchDB URL out of docker ps. 2024-03-25 17:11:41 +00:00
Sam Rose db21542d38
Cherry-pick 6b8422df01 2024-03-25 15:25:30 +00:00
Sam Rose 66cfb8eedd
Remove jest-testcontainers. 2024-03-25 15:24:14 +00:00
jvcalderon 1da10c9a5f Merge branch 'master' into feature/onboarding 2024-03-25 12:51:57 +01:00
jvcalderon 50c0fb1f97 Override identity for events sent from dispatcher 2024-03-22 10:41:27 +01:00
mike12345567 9995f71871 Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-03-20 13:45:27 +00:00
mike12345567 8df38b8bb2 Merging in most recent changes, recent SQL aliasing changes caused some big differences. 2024-03-20 12:42:07 +00:00
Sam Rose 217b39c232
Reenable no-unused-vars 2024-03-20 11:46:39 +00:00
Sam Rose 009c795f54
Reenable no-undefs. 2024-03-19 17:47:39 +00:00
Sam Rose f1278312ab
Reenable no-case-declarations. 2024-03-19 15:58:25 +00:00
Sam Rose f6669c25cf
Merge branch 'master' of github.com:budibase/budibase into reenable-no-case-declarations 2024-03-19 15:53:19 +00:00
Sam Rose 79bba82908
Fix flaky scim test. 2024-03-19 15:45:24 +00:00
Adria Navarro b7b8a65a54 Don't init DocWritethrough queue on load 2024-03-19 16:01:00 +01:00
Mel O'Hagan ff231b0095 Make password optional 2024-03-19 13:30:42 +00:00
Adria Navarro c7276b9005
Merge branch 'master' into BUDI-7656/add-migration 2024-03-19 12:35:39 +01:00
Sam Rose 80008a0739
Reenable no-inner-declarations. 2024-03-19 11:29:19 +00:00
Sam Rose 5749333fc7
Reenable no-useless-escape. 2024-03-19 11:14:16 +00:00
Sam Rose 1785f3af7e
Get lint passing. 2024-03-19 10:55:51 +00:00
Sam Rose 7a63dc9830
Making progress on getting the eslint-jest plugin working. 2024-03-19 10:46:59 +00:00
Sam Rose 1f63f0bddf
Run auto fix. 2024-03-19 09:46:10 +00:00
deanhannigan 7a737e7664
Merge branch 'master' into feature/app-list-actions 2024-03-15 09:31:54 +00:00
deanhannigan 72a671e93b
Merge branch 'master' into feature/app-list-actions 2024-03-15 09:10:57 +00:00
Andrew Kingston b6eab42c18 Merge branch 'cheeks-lab-day-binding-eval' of github.com:Budibase/budibase into cheeks-snippets-poc 2024-03-14 16:24:16 +00:00
Adria Navarro 62cec7289d Use guid instead of words 2024-03-14 11:03:43 +01:00
deanhannigan 1db358d5c2
Merge branch 'master' into feature/app-list-actions 2024-03-14 09:33:33 +00:00
Andrew Kingston 8b4ce703e9 Try to fix tests 2024-03-13 17:01:09 +00:00
Andrew Kingston e45beff059 Merge branch 'master' of github.com:Budibase/budibase into cheeks-snippets-poc 2024-03-13 10:21:07 +00:00
Adria Navarro cc275983dc
Merge branch 'master' into cleanup-isolates 2024-03-13 10:30:37 +01:00
Andrew Kingston 70821182fe Update automation context to simplify applying snippet context 2024-03-13 09:15:33 +00:00
Andrew Kingston 3b54daf2c8 Add snippet context before executing automations 2024-03-12 21:40:48 +00:00
Andrew Kingston 16ce5ac65e Update how snippets are fetched and enriched into context, because HBS helpers can't be async 2024-03-12 17:02:01 +00:00
deanhannigan 66f0deecae
Merge branch 'master' into feature/app-list-actions 2024-03-08 14:44:08 +00:00
Michael Drury 874a6fbd12 Linting. 2024-03-08 12:26:11 +00:00
deanhannigan 460c2573e4
Merge branch 'master' into feature/app-list-actions 2024-03-08 12:24:15 +00:00
Michael Drury 9027e6e82a Initing doc writethrough cache as part of the worker/server init process, as well as part of doc writethrough tests. 2024-03-08 12:20:52 +00:00
Sam Rose 4325b99d7d
Merge branch 'master' of github.com:budibase/budibase into cleanup-isolates 2024-03-07 13:37:31 +00:00
mike12345567 121ad109ec Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-03-07 13:27:21 +00:00
Adria Navarro 74f8c3fce8
Merge branch 'master' into BUDI-8046/scim-logger 2024-03-07 14:24:16 +01:00
Adria Navarro bba26c9184 Change max attempts 2024-03-07 13:58:01 +01:00
Adria Navarro fc7b6f305d Merge branch 'BUDI-8064/doc-writethrough' into BUDI-8046/scim-logger 2024-03-07 13:19:40 +01:00
Adria Navarro d75ab4b46c Remove logWarn 2024-03-07 13:14:26 +01:00
Adria Navarro a6666f662c Merge branch 'BUDI-8064/doc-writethrough' into BUDI-8046/scim-logger 2024-03-07 11:38:41 +01:00
Adria Navarro 9e55f87d02 Add message 2024-03-07 11:30:59 +01:00
Adria Navarro 536422e60b Undo 2024-03-07 11:23:09 +01:00
Adria Navarro 17b06703e9 Remove lock 2024-03-07 11:16:08 +01:00
Adria Navarro 440dcb244d Infinite retries 2024-03-07 11:11:36 +01:00
Adria Navarro e60033bd89 Merge branch 'BUDI-8064/doc-writethrough' into BUDI-8046/scim-logger 2024-03-07 11:05:16 +01:00
Adria Navarro 977daff05c Retry 2024-03-07 10:54:26 +01:00
Adria Navarro bb5b40b61c Lint 2024-03-07 10:35:37 +01:00
Adria Navarro 5df0c85a9b
Merge branch 'master' into BUDI-8064/doc-writethrough 2024-03-07 10:31:33 +01:00
Adria Navarro 1b6954247c Skip test 2024-03-07 10:30:09 +01:00
Adria Navarro d06f9e0a1c Add bulk delete 2024-03-07 00:25:12 +01:00
Adria Navarro 81af85eae0 Expose redis functions 2024-03-07 00:25:04 +01:00
mike12345567 851a423615 Some typing updates to fix some build issues which were occurring. 2024-03-06 18:07:46 +00:00
Sam Rose 6f692723e7
Remove flakiness in SCIM tests. 2024-03-06 17:28:45 +00:00
mike12345567 2eb16a70db Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-03-06 17:27:53 +00:00
Sam Rose 2946188ab1
Merge branch 'master' into enforce-example-com-emails-in-tests 2024-03-06 17:15:43 +00:00
Sam Rose 2c04fa453c
Merge branch 'master' of github.com:budibase/budibase into budi-7710-user-groups-do-not-fully-support-custom-roles-5 2024-03-06 16:58:16 +00:00
Sam Rose 4b24fb7c68
Merge master. 2024-03-06 14:59:39 +00:00
Sam Rose 30c1b07309
Merge master. 2024-03-06 14:53:54 +00:00
Adria Navarro ee86cd30d6
Merge branch 'master' into BUDI-8046/redis-delete-if-value 2024-03-06 15:46:16 +01:00
Adria Navarro a44faad046 Add same key tests 2024-03-06 15:37:38 +01:00
Adria Navarro 4ce85cde1a Simplify, use only queues 2024-03-06 14:07:39 +01:00
Adria Navarro 5109477e52 Fix checks 2024-03-06 13:39:27 +01:00
Adria Navarro baa58990c8
Merge branch 'master' into BUDI-8046/redis-increment 2024-03-06 12:32:51 +01:00
Adria Navarro c198a5ae03
Update packages/backend-core/src/redis/redis.ts
Co-authored-by: Sam Rose <hello@samwho.dev>
2024-03-06 12:23:04 +01:00
Adria Navarro 4baadadaa8 Use pipeline instead of eval 2024-03-06 12:22:20 +01:00
Adria Navarro 61c4b83650 Test with spies 2024-03-06 11:55:49 +01:00
Sam Rose 2b206f2105
Fix the TODO I left myself last night. 2024-03-06 10:00:02 +00:00
Adria Navarro d35d382ddb Increase timeouts 2024-03-06 00:58:05 +01:00
Adria Navarro 8e8378d1be Delete info on process 2024-03-06 00:56:30 +01:00
Adria Navarro a9046e9f26 Use lock name 2024-03-06 00:34:48 +01:00
Adria Navarro 3dbf0b3a64 Throw errors on lock not executed 2024-03-06 00:34:48 +01:00
Adria Navarro 0a2fb4a3a6 Use message id to handle concurrency 2024-03-06 00:34:48 +01:00
Adria Navarro 6707da4ac2 Use bulk 2024-03-06 00:34:48 +01:00
Adria Navarro f5e2dc7a27 Do not use lock 2024-03-06 00:34:48 +01:00
Adria Navarro e584d82e6f Improve redlock non executed response 2024-03-06 00:34:48 +01:00
Adria Navarro 37935112a4 Add comment 2024-03-06 00:34:48 +01:00
Adria Navarro c4fc94fb28 Remove defaults and init 2024-03-06 00:34:48 +01:00
Adria Navarro fb2c7467b0 Clean 2024-03-06 00:34:48 +01:00
Adria Navarro caff2876dd Tests 2024-03-06 00:34:48 +01:00
Adria Navarro 151bfd103b Use bull 2024-03-06 00:34:48 +01:00
Adria Navarro e4d8fe2f47 Add doc-writethrough queue 2024-03-06 00:34:48 +01:00
Adria Navarro 770aff4f5e Type inMemoryQueue 2024-03-06 00:34:48 +01:00
Adria Navarro 3c944073eb Use overloads 2024-03-06 00:34:48 +01:00
Adria Navarro eb78103764 Namespace key in redis by db 2024-03-06 00:34:48 +01:00
Adria Navarro 6bd7e6b374 Namespace key in redis by db 2024-03-06 00:34:47 +01:00
Adria Navarro 608865fe9d Fix types 2024-03-06 00:34:47 +01:00
Adria Navarro cd56e1ffff Type caches 2024-03-06 00:34:47 +01:00
Adria Navarro 8062c28722 Making code more readable 2024-03-06 00:34:47 +01:00
Adria Navarro 6a81d21cb7 Fixes and tests 2024-03-06 00:34:47 +01:00
Adria Navarro 00bf88c5bf Extra tests 2024-03-06 00:34:47 +01:00
Adria Navarro 319b3afddb Ensure keys are removed 2024-03-06 00:34:47 +01:00
Adria Navarro e228b9c207 Test concurrency 2024-03-06 00:34:47 +01:00
Adria Navarro b1e1226de6 Add extra tests 2024-03-06 00:34:47 +01:00
Adria Navarro b1027527b3 Add persisting tests 2024-03-06 00:34:47 +01:00
Adria Navarro 64ea969aaf docWritethrough test 2024-03-06 00:34:47 +01:00
Adria Navarro 3998faaf3a DatabaseImpl.docExists test 2024-03-06 00:34:47 +01:00
Adria Navarro 48c92377ad USe get for doc exists 2024-03-06 00:34:47 +01:00
Adria Navarro c96c57bd9e DocWritethrough 2024-03-06 00:34:47 +01:00
Adria Navarro 86b715d5ce Create docWriteThrough redis cache 2024-03-06 00:34:47 +01:00
Adria Navarro 8f486e7bfc Add tests 2024-03-06 00:33:53 +01:00
Adria Navarro 355dea5b05 Add deleteIfValue 2024-03-06 00:33:53 +01:00
Adria Navarro 60f82610f6 Use redis testcontainer 2024-03-06 00:33:24 +01:00
Adria Navarro b774987e61 Install testcontainers 2024-03-06 00:33:04 +01:00
Adria Navarro d4ffc3d5d7 More tests 2024-03-05 22:54:39 +01:00
Adria Navarro 192d7deb2a Handle errors 2024-03-05 22:52:44 +01:00
Adria Navarro 837395e5e0 Add tests 2024-03-05 22:43:34 +01:00
Adria Navarro 339ca403bf Add redis.increment 2024-03-05 22:43:28 +01:00
Sam Rose 182a1df960
Fix the bug, I think. 2024-03-05 17:35:04 +00:00
Adria Navarro db75c05942 Use scim-logs db 2024-03-05 18:25:23 +01:00
Adria Navarro 71c5d2645f Merge branch 'BUDI-8064/doc-writethrough' into BUDI-8046/scim-logger 2024-03-05 18:13:59 +01:00
Adria Navarro ebcb7718b8 Use bulk 2024-03-05 18:11:50 +01:00
Adria Navarro 4fe7e67dd5 Do not use lock 2024-03-05 18:11:50 +01:00
Adria Navarro 2b25f9f0cb Improve redlock non executed response 2024-03-05 18:11:50 +01:00
Adria Navarro 0649497ab5 Add comment 2024-03-05 18:11:50 +01:00
Adria Navarro 8d87850765 Remove defaults and init 2024-03-05 18:11:50 +01:00
Adria Navarro b94d28b7d6 Clean 2024-03-05 18:11:50 +01:00
Adria Navarro 420b0ffc03 Tests 2024-03-05 18:11:50 +01:00
Adria Navarro 936ddafee7 Use bull 2024-03-05 18:11:50 +01:00
Adria Navarro df325e21c3 Add doc-writethrough queue 2024-03-05 18:11:50 +01:00
Adria Navarro 2412d75cac Type inMemoryQueue 2024-03-05 18:11:49 +01:00
Adria Navarro 774ff42f0c Use overloads 2024-03-05 18:11:49 +01:00
Adria Navarro 82a6f9027e Namespace key in redis by db 2024-03-05 18:11:49 +01:00
Adria Navarro da012c0f08 Namespace key in redis by db 2024-03-05 18:11:49 +01:00
Adria Navarro e986d34b87 Fix types 2024-03-05 18:11:49 +01:00
Adria Navarro dc84eb4e80 Type caches 2024-03-05 18:11:49 +01:00
Adria Navarro eb9a163394 Making code more readable 2024-03-05 18:11:49 +01:00
Adria Navarro fd93eb79d5 Fixes and tests 2024-03-05 18:11:49 +01:00
Adria Navarro 04fb279623 Extra tests 2024-03-05 18:11:49 +01:00
Adria Navarro 223637999a Ensure keys are removed 2024-03-05 18:11:49 +01:00
Adria Navarro 41dde9722f Test concurrency 2024-03-05 18:11:49 +01:00
Adria Navarro 35536592e6 Add extra tests 2024-03-05 18:11:49 +01:00
Adria Navarro bfde028e9b Add persisting tests 2024-03-05 18:11:49 +01:00
Adria Navarro 74aae19a7e docWritethrough test 2024-03-05 18:11:49 +01:00
Adria Navarro 82132d539d DatabaseImpl.docExists test 2024-03-05 18:11:49 +01:00
Adria Navarro 10568cccff USe get for doc exists 2024-03-05 18:11:49 +01:00
Adria Navarro 9f42ea6bbf DocWritethrough 2024-03-05 18:11:49 +01:00
Adria Navarro 40cc383c01 Create docWriteThrough redis cache 2024-03-05 18:11:49 +01:00
Adria Navarro a093cfca99 Fix test 2024-03-05 18:11:12 +01:00
Adria Navarro de0527384a Support complex objects 2024-03-05 18:10:45 +01:00
Adria Navarro 82ff748fd9 Add complex object tests 2024-03-05 18:10:33 +01:00
Adria Navarro f2330144de Clean 2024-03-05 17:57:28 +01:00
Dean 136eeefc26 Merge remote-tracking branch 'origin/master' into feature/app-list-actions 2024-03-05 16:24:14 +00:00
Adria Navarro 8f9e8b60c3 Fix types 2024-03-05 17:19:26 +01:00
Adria Navarro 38d557ea1c
Merge branch 'master' into BUDI-8046/redis-bulk-store 2024-03-05 17:11:13 +01:00
Adria Navarro 3baf981d48 Add TTL tests 2024-03-05 17:08:08 +01:00
Adria Navarro 1b0a943e13 Atomic expires 2024-03-05 17:04:46 +01:00
Adria Navarro d9a5899b27 Bulk store test 2024-03-05 16:49:45 +01:00
Adria Navarro 49db47e1fd Add bulk store 2024-03-05 16:46:33 +01:00
Adria Navarro a4288a9dd3 Basic test 2024-03-05 16:41:49 +01:00
Adria Navarro 56870bed5b Typings 2024-03-05 16:30:45 +01:00
Adria Navarro a5d6d094e6 Update types 2024-03-05 16:28:31 +01:00
Sam Rose 4170213c0d
Merge branch 'master' of github.com:budibase/budibase into budi-7710-user-groups-do-not-fully-support-custom-roles-5 2024-03-05 14:47:56 +00:00
Sam Rose 488cfea1f4
Fix typing. 2024-03-05 14:40:29 +00:00
Adria Navarro e076c0e5f5 Use typed redis clients 2024-03-05 15:10:51 +01:00
Adria Navarro 5bd5ea06e7 Merge branch 'BUDI-8064/doc-writethrough' into BUDI-8046/scim-logger 2024-03-05 14:20:09 +01:00
Adria Navarro ca0f583399 Remove defaults and init 2024-03-05 14:19:05 +01:00
Adria Navarro 82d2116ce0 Merge branch 'BUDI-8064/doc-writethrough' into BUDI-8046/scim-logger 2024-03-05 13:59:33 +01:00
Adria Navarro caf142f1db Clean 2024-03-05 13:55:07 +01:00
Adria Navarro e648503e4f Tests 2024-03-05 13:50:58 +01:00
Sam Rose aa124524d4
Add a simpler test. 2024-03-05 10:05:05 +00:00
Sam Rose fced2f3696
Respond to PR feedback. 2024-03-05 09:23:48 +00:00
Sam Rose 9d8c18337d
Type role controller. 2024-03-04 16:42:41 +00:00
Adria Navarro 2d84bc5da2 Use bull 2024-03-04 16:34:05 +01:00
Adria Navarro 91468d2569 Add doc-writethrough queue 2024-03-04 16:18:01 +01:00
Dean 41b55c28b7 Merge remote-tracking branch 'origin/master' into feature/app-list-actions 2024-03-04 15:13:47 +00:00
Adria Navarro 62fe394139 Merge branch 'BUDI-8046/improve-test-queues' into BUDI-8064/doc-writethrough 2024-03-04 15:41:10 +01:00
Adria Navarro 824dd1c1fc Type inMemoryQueue 2024-03-04 15:38:45 +01:00
Dean 42893c1218 Merge remote-tracking branch 'origin/master' into feature/app-list-actions 2024-03-04 10:00:03 +00:00
mike12345567 ad0c1a94c9 Fixing some typing that was added. 2024-03-01 13:59:42 +00:00
Adria Navarro 4ff2b36553 Use overloads 2024-03-01 13:59:51 +01:00
Adria Navarro 2da5cb3ddb Namespace key in redis by db 2024-03-01 13:41:40 +01:00
Adria Navarro 93e462b8c7 Namespace key in redis by db 2024-03-01 13:38:48 +01:00
Adria Navarro 4e53cb5143 Flags 2024-03-01 13:09:42 +01:00
Adria Navarro 3a341338a1 Log requests 2024-03-01 13:07:27 +01:00
Adria Navarro 1c17121568 Fix types 2024-03-01 11:12:31 +01:00
Adria Navarro 8611fade5e
Merge branch 'master' into BUDI-8064/doc-writethrough 2024-03-01 11:08:49 +01:00
Adria Navarro ff7c784342 Type caches 2024-03-01 11:04:55 +01:00
Adria Navarro 2b7c988823 Making code more readable 2024-03-01 11:04:30 +01:00
Adria Navarro 66751728bb Fixes and tests 2024-03-01 10:53:18 +01:00
Sam Rose f876c5c6e4
Merge master. 2024-02-29 17:34:16 +00:00
mike12345567 50bbbb2e06 Updating datasource controller types, this branched out a little bit to removing as many anys as possible, and allowing RowValue to correctly be returned from the allDocs function of the DB. 2024-02-29 16:28:00 +00:00
Adria Navarro 6b8f67ed41 Extra tests 2024-02-29 17:01:16 +01:00
Adria Navarro 3068e58c31 Ensure keys are removed 2024-02-29 16:48:16 +01:00
Adria Navarro 720d5a4105 Test concurrency 2024-02-29 15:51:42 +01:00
Adria Navarro 3ec0052481 Add extra tests 2024-02-29 15:41:26 +01:00
Adria Navarro dc4d1fdbda Add persisting tests 2024-02-29 15:28:35 +01:00
Adria Navarro 40d7a0a741 docWritethrough test 2024-02-29 15:23:32 +01:00
Adria Navarro 3af2da3b7d DatabaseImpl.docExists test 2024-02-29 15:17:18 +01:00
mike12345567 7641e84430 Merge branch 'revert-13160-revert-13128-feature/sql-query-aliasing' of github.com:Budibase/budibase into labday/sqs 2024-02-29 13:14:37 +00:00
Adria Navarro 7d50a70d03 USe get for doc exists 2024-02-29 13:47:18 +01:00
Adria Navarro ff7c8d3b95 DocWritethrough 2024-02-29 13:44:52 +01:00
Sam Rose 6b306266b5
Only show stack traces if you ask for them. 2024-02-29 11:09:39 +00:00
Adria Navarro 76b9cbcc5f Create docWriteThrough redis cache 2024-02-29 11:22:27 +01:00
Sam Rose 8488ff4144
Print stack traces from inside request handler. 2024-02-29 09:19:14 +00:00
mike12345567 71ad1fde0f Fixing some build/type issues. 2024-02-28 17:16:36 +00:00
mike12345567 2d75e1e85c Merge branch 'feature/sql-query-aliasing' of github.com:Budibase/budibase into labday/sqs 2024-02-28 17:03:59 +00:00
Sam Rose 237634386c
More typing fixes. 2024-02-28 12:19:08 +00:00
Sam Rose 2e8eda47f1
Respond to PR feedback. 2024-02-26 17:38:33 +00:00
Sam Rose 8f61b69ee5
Merge branch 'master' of github.com:budibase/budibase into budi-7710-user-groups-do-not-fully-support-custom-roles 2024-02-26 17:28:51 +00:00
Sam Rose c15554547b
Respond to PR feedback. 2024-02-26 17:28:37 +00:00
mike12345567 90c06e633b Merging latest master. 2024-02-26 15:46:00 +00:00
Sam Rose b9600d8330
More progress on modernising application tests. 2024-02-26 11:57:56 +00:00
Dean 8556a869b9 Merge remote-tracking branch 'origin/master' into feature/app-list-actions 2024-02-26 11:01:01 +00:00
jvcalderon eafb8a6903 Merge branch 'master' into feature/synchronicity 2024-02-23 16:49:24 +01:00
jvcalderon 1ef5e54c29 Add BPM_EVENTS to Redis DB list 2024-02-23 16:26:23 +01:00
Dean 6877d0a016 Merge remote-tracking branch 'origin/master' into feature/app-list-actions 2024-02-22 15:00:34 +00:00
Dean 18f09f4e13 Duplicate app behaviour and test updates 2024-02-22 15:00:16 +00:00
Adria Navarro 8e77365c19 Allow mocking multiple features 2024-02-22 13:55:38 +01:00
Adria Navarro fb1bfbdae8 Clean code 2024-02-22 13:55:26 +01:00
Sam Rose ba66bc3232
Merge master. 2024-02-21 15:06:59 +00:00
Sam Rose 686697e890
Enforce using example.com as a domain for emails. 2024-02-21 11:30:22 +00:00
Adria Navarro ac638badd4
Merge branch 'master' into BUDI-7656/add-migration 2024-02-19 17:40:47 +01:00
melohagan c12e5fd196
Fix array type missing from query schema selector (#12772)
* Tidy MongoDB aggregation pipeline view

* Remove unused code

* WIP

* Add bindings for bindings drawer

* Is not external table if it's a query

* Add QueryArrayFetch

* Bug fix

* JavaScript is the worst

* refactor

* Add array label to query schema

* Remove console log

* type fix

* Don't include Array in SchemaTypeOptions, but show label

* Fix bindings

* refactor

* Rename isObject to hasSchema

* WIP

* Typing WIP

* Type not Types

* Unused import

* type fix

* Handle json array subtype

* Support queryarray datasource type

* refactor

* yarn lock

* update account portal

---------

Co-authored-by: Sam Rose <hello@samwho.dev>
2024-02-19 09:13:03 +00:00
mike12345567 364579acc4 Fixing an issue when invalid version is supplied (not semver) shouldn't crash server. 2024-02-16 15:41:36 +00:00
Sam Rose e4b0330866
Simplify the typing of workerRequests.ts 2024-02-15 15:49:30 +00:00
Sam Rose dde8f77877
Type workerRequests.ts 2024-02-15 14:48:47 +00:00
Adria Navarro 4f42fd832d Lint 2024-02-09 16:47:58 +01:00
Adria Navarro 7ce9756d8c Revert jsRunner changes to vm 2024-02-09 16:36:43 +01:00
Sam Rose 77b3d479a0
Update dd-trace to 5.2.0. 2024-02-09 12:01:37 +00:00
Adria Navarro 573096e869
Merge branch 'master' into revert-12934-revert-12930-revert-12929-revert-12769-isolated-vm 2024-02-08 18:15:36 +01:00
Sam Rose 8e9db069e5
Remove all uses of test.com in the code, replace them with example.com and create a lint rule to prevent this in future. 2024-02-08 16:32:14 +00:00
Adria Navarro 3b8b60aa03 Use wrapper 2024-02-08 09:38:09 +01:00
Adria Navarro 218ba1d283 VM types 2024-02-08 09:38:09 +01:00
Adria Navarro d0d767ce5e
Merge branch 'master' into revert-12934-revert-12930-revert-12929-revert-12769-isolated-vm 2024-02-08 09:37:39 +01:00
mike12345567 7dc2c3551f Updating the listObjects functionality to correctly handle truncated responses, when not all objects can be returned at once we need to loop, but we weren't correctly picking up the token that should be passed. 2024-02-07 17:03:44 +00:00
Martin McKeaveney b17bd4d8fd merge 2024-02-02 17:00:09 -03:00
mike12345567 d87c7a1c4a Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-02-02 17:09:54 +00:00
Adria Navarro 8dfcc3aeb1
Revert "Revert "Migrate from `vm` to `isolated-vm`"" 2024-02-02 12:02:09 +01:00
Sam Rose 332a201ae7
Revert "Migrate from `vm` to `isolated-vm`" 2024-02-02 09:51:46 +00:00
Sam Rose ba002f9649
Clean up isolates when a request is finished. 2024-02-02 09:30:33 +00:00
Adria Navarro 45ea6a6fd6
Revert "Revert "Migrate from `vm` to `isolated-vm`"" 2024-02-01 16:47:41 +01:00
Adria Navarro 16749ec3dd
Revert "Migrate from `vm` to `isolated-vm`" 2024-02-01 16:30:34 +01:00
Adria Navarro 87501bf25e
Merge branch 'master' into isolated-vm 2024-02-01 13:15:47 +01:00
Adria Navarro 2ea70e1010
Merge pull request #12922 from Budibase/test-isolated-vm
Test isolated vm
2024-02-01 13:15:33 +01:00
Adria Navarro 3aff1004c8
Merge branch 'master' into isolated-vm 2024-02-01 12:42:48 +01:00
Adria Navarro 181d462cdf Update uuid 2024-02-01 11:15:21 +01:00
mike12345567 85f7d66a99 Handling very large exports/backup downloads. 2024-01-31 17:16:51 +00:00
Sam Rose 682c3c6c14
Merge branch 'master' into update-nano 2024-01-31 14:43:44 +00:00
Martin McKeaveney a23f76b8c8 update expiry time for attachments/images 2024-01-31 08:57:54 -03:00
Sam Rose f3e0dfd466
Update to @budibase/nano 10.1.5 2024-01-31 11:55:29 +00:00
Adria Navarro 623b4f5dab
Merge branch 'master' into isolated-vm 2024-01-31 10:47:08 +01:00
mike12345567 21a8d44ec7 Adding a 'SESSION_EXPIRY_SECONDS' environment variable which can be set on the services to configure how long before an idle user is logged out. 2024-01-25 16:22:39 +00:00
Adria Navarro bc7825dc93 Keep isolateRefs in context 2024-01-24 14:02:34 +01:00
Adria Navarro 09d8951fc3
Merge branch 'master' into isolated-vm 2024-01-18 14:21:13 +01:00
jvcalderon 64d3114c9f Refactor: usersUtils -> userUtils 2024-01-18 12:03:26 +01:00
jvcalderon 03f7fb37ed Calculate creators count when group role changes 2024-01-18 11:14:25 +01:00
mike12345567 b370e2a0e5 Updating dd-trace to 5.0.0 across all packages now that the memory leak is solved, this also removes the erronous message on startup describing DataDog startup problems. 2024-01-15 17:44:52 +00:00
Adria Navarro 73fee7dec7 Fix build 2024-01-15 12:04:35 +01:00
Sam Rose c508a435d6
Isolate and context re-use. 2024-01-12 15:08:08 +00:00
mike12345567 e69ba75849 Fixing typing for performCall. 2024-01-11 17:17:38 +00:00
mike12345567 8483a53178 This removes the need for constant DB HEAD requests to check if a database exists or not. Instead, it tries to make the request, and if it fails it will check if the reason for failure is the database not existing. If it doesn't exist it runs through the same old flow to confirm that it definitely doesn't exist, and if it doesn't then it will create it. 2024-01-11 16:44:15 +00:00