Commit Graph

24227 Commits

Author SHA1 Message Date
Peter Clement f3703c1055
Merge branch 'master' into fix/filtering-lucene-bug 2024-03-06 14:55:33 +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
Peter Clement b9bb6c775e Merge remote-tracking branch 'refs/remotes/origin/fix/filtering-lucene-bug' into fix/filtering-lucene-bug 2024-03-06 14:43:04 +00:00
Peter Clement 632b9a26f4 remove log 2024-03-06 14:42:30 +00:00
Adria Navarro 5d3209b323
Merge branch 'master' into BUDI-8046/redis-increment 2024-03-06 15:37:48 +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
Martin McKeaveney 545272218d
Merge branch 'master' into feature/form-screen-template 2024-03-06 12:10:14 +00:00
Peter Clement 6bee1f883c
Merge branch 'master' into fix/filtering-lucene-bug 2024-03-06 12:09:31 +00:00
Peter Clement 9f8ba40fe9 Merge remote-tracking branch 'refs/remotes/origin/fix/filtering-lucene-bug' into fix/filtering-lucene-bug 2024-03-06 11:59:54 +00:00
Peter Clement 1f107041a1 use vitest each 2024-03-06 11:57:45 +00: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
Dean 30f0e3459f PR feedback 2024-03-06 10:29:43 +00:00
Dean f494611bd8 Merge remote-tracking branch 'origin/master' into feature/form-screen-template 2024-03-06 10:13:58 +00:00
Peter Clement 3b4b176fdf
Merge branch 'master' into fix/filtering-lucene-bug 2024-03-06 10:10:59 +00:00
Peter Clement eb00ce401f pr comments 2024-03-06 10:10:28 +00:00
Sam Rose 458bb31d27
Merge branch 'master' of github.com:budibase/budibase into budi-7710-user-groups-do-not-fully-support-custom-roles-5 2024-03-06 10:08:17 +00:00
Peter Clement b232371eff remove uneeded comment 2024-03-06 10:01:42 +00:00
Sam Rose 2b206f2105
Fix the TODO I left myself last night. 2024-03-06 10:00:02 +00:00
Adria Navarro edca6f6eca
Merge branch 'master' into BUDI-8046/redis-bulk-store 2024-03-06 10:55:32 +01: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 ee3cb5ae68 Clean 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
Michael Drury de56324a4b Linting 2024-03-05 18:16:27 +00:00
Michael Drury b58b0d3b40 Fixing integration base types. 2024-03-05 18:15:19 +00:00
Michael Drury 1918ec6c68 Reverting type changes. 2024-03-05 18:00:15 +00:00
Michael Drury b72edc21ec Linting. 2024-03-05 17:46:09 +00:00
Michael Drury 4d3e033435
Merge branch 'master' into fix/13189 2024-03-05 17:43:53 +00:00
Michael Drury edda776b14 PR comments. 2024-03-05 17:42:44 +00:00
Sam Rose 11704ea983
TODO. 2024-03-05 17:40:38 +00:00
Sam Rose 182a1df960
Fix the bug, I think. 2024-03-05 17:35:04 +00:00
Michael Drury 0520c0c540 Adding tests to confirm when aliasing should be used. 2024-03-05 17:27:35 +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 b39400f08c Clean 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
Adria Navarro 8f9e8b60c3 Fix types 2024-03-05 17:19:26 +01:00
Michael Drury a332c058ce Disabling aliasing on writes (create, update, delete) for MySQL/MS-SQL datasources. 2024-03-05 16:19:21 +00: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
Sam Rose f1decee010
Get test passing. 2024-03-05 14:37:06 +00:00
Adria Navarro e076c0e5f5 Use typed redis clients 2024-03-05 15:10:51 +01:00
Adria Navarro cb5f3e3bd3 Lint 2024-03-05 14:38:36 +01:00
Adria Navarro e8c3f20c30 Update pro ref 2024-03-05 14:32:18 +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 dfdbc7b22b Update pro ref 2024-03-05 14:05:39 +01:00
Adria Navarro 6b86633c65 Update pro ref 2024-03-05 14:01:41 +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 74a9aa4a72
Merge branch 'master' into BUDI-8064/doc-writethrough 2024-03-05 13:55: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 4c6745ad20
Merge branch 'budi-7710-user-groups-do-not-fully-support-custom-roles-4' of github.com:budibase/budibase into budi-7710-user-groups-do-not-fully-support-custom-roles-5 2024-03-05 09:25:19 +00:00
Sam Rose fced2f3696
Respond to PR feedback. 2024-03-05 09:23:48 +00:00
Sam Rose dd8fb23b52
Merge branch 'master' of github.com:budibase/budibase into budi-7710-user-groups-do-not-fully-support-custom-roles-4 2024-03-05 09:20:46 +00:00
Sam Rose 13563d18dc
Write a failing test. 2024-03-05 09:20:20 +00:00
melohagan 8694b8d772
Relationship picker incorrectly renders selections (#13175)
* Ensure _id is decoded for external search

* Fetch initial value for 'Update' type forms

* test didn't run locally - might run on github workflow

* Tested and appears to be as before

* Null-pointer fix

* undo type change

* update modules

* add test

* update modules
2024-03-05 09:03:19 +00:00
mike12345567 45702ce918 Fixing typing. 2024-03-04 17:02:52 +00:00
mike12345567 86aefcfe1a Updating test values. 2024-03-04 17:00:34 +00:00
mike12345567 691536ce71 Merge branch 'fix/13177' of github.com:Budibase/budibase into fix/13177 2024-03-04 16:55:33 +00:00
mike12345567 a7fcd7cca1 Attempting to fix issue with table name needing to be aliased. 2024-03-04 16:55:10 +00:00
Sam Rose ca4884e9cc
Merge branch 'master' of github.com:budibase/budibase into budi-7710-user-groups-do-not-fully-support-custom-roles-4 2024-03-04 16:43:37 +00:00
Sam Rose 9d8c18337d
Type role controller. 2024-03-04 16:42:41 +00:00
Michael Drury 8fb38e85ca
Merge branch 'master' into fix/13177 2024-03-04 16:19:36 +00:00
Michael Drury 5afb5f2490
Merge branch 'master' into fix/13177 2024-03-04 16:10:04 +00:00
Michael Drury df1821faba
Merge branch 'master' into budi-7710-user-groups-do-not-fully-support-custom-roles-3 2024-03-04 16:07:14 +00:00
melohagan ee0f0abad2
Fix/rename mysql column (#13186)
* Rebuild table schema when adding new column to get externalType

* Added MySQL integration test suite

* Add test for emitting datasource on save new column

* Update packages/server/src/integration-test/mysql.spec.ts

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

* remove duplicate tests

* Use UUID

* update account portal

* Remove _add for internal save

* Internal DB add column unit test

* rename column test

* update modules

* fix tests

---------

Co-authored-by: Sam Rose <hello@samwho.dev>
2024-03-04 15:55:45 +00:00
Sam Rose a9ad0229da
Merge branch 'master' into budi-7710-user-groups-do-not-fully-support-custom-roles-3 2024-03-04 15:53:24 +00:00
mike12345567 02e3b36cd8 Adding missing files. 2024-03-04 15:47:27 +00:00
mike12345567 7b7d10d1ff Fixing an issue with returning statements in MS-SQL and MySQL, when creating, updating or deleting rows the response is not retrieved correctly when aliased. 2024-03-04 15:47:04 +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
Adria Navarro ae85c83248 Clean 2024-03-04 15:43:47 +01: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
Andrew Kingston e7f807f331
Merge branch 'master' into fix-grid-single-char-changes-v2 2024-03-04 14:27:58 +00:00
Sam Rose 1e184605a1
Migrate users of switchToSelfHosted to config.withEnv 2024-03-04 13:47:53 +00:00
Sam Rose 1857383c47
Constrain query execution response slightly based on PR feedback. 2024-03-04 13:37:41 +00:00
melohagan a59647e158
Rebuild table schema when adding new column to get externalType (#13165)
* Rebuild table schema when adding new column to get externalType

* Added MySQL integration test suite

* Add test for emitting datasource on save new column

* Update packages/server/src/integration-test/mysql.spec.ts

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

* remove duplicate tests

* Use UUID

* update account portal

---------

Co-authored-by: Sam Rose <hello@samwho.dev>
2024-03-04 11:21:43 +00:00
Sam Rose c39053bb51
Respond to PR feedback. 2024-03-04 11:06:25 +00:00
Andrew Kingston 50eba97194
Merge branch 'master' into feature/form-screen-template 2024-03-04 10:45:17 +00:00
Peter Clement 90086d9f32 Merge remote-tracking branch 'refs/remotes/origin/fix/filtering-lucene-bug' into fix/filtering-lucene-bug 2024-03-04 10:07:34 +00:00
Peter Clement 3d9a7e5ddf fix type 2024-03-04 10:07:06 +00:00
Peter Clement 15419f2ddb
Merge branch 'master' into fix/filtering-lucene-bug 2024-03-04 09:58:44 +00:00
Peter Clement 5679acb868 fix types 2024-03-04 09:55:28 +00:00
Peter Clement e3c514e45a Update test lucene builder and add more tests 2024-03-04 09:48:47 +00:00
Sam Rose 143daa153c
Fix ViewV2 tests. 2024-03-04 09:38:53 +00:00
Sam Rose 89a03af92a
Fix table test. 2024-03-04 09:20:32 +00:00
Sam Rose 678ce98830
Merge master. 2024-03-04 09:09:09 +00:00
Sam Rose 594cd5ee56
Fix permissions tests. 2024-03-01 17:40:10 +00:00
Sam Rose 90f981724d
Fix typing. 2024-03-01 17:38:21 +00:00
Sam Rose 37a10857df
Migrate ViewV2API 2024-03-01 17:35:51 +00:00
Sam Rose 7fa5dbeec9
Migrate UserAPI 2024-03-01 17:17:38 +00:00
Sam Rose 149d2c0b29
Migrate ScreenAPI 2024-03-01 17:14:30 +00:00
Sam Rose f91db6d985
Migrate RowAPI.search 2024-03-01 17:13:46 +00:00
Sam Rose c0907d37ef
Migrate RowAPI.bulkImport 2024-03-01 17:12:46 +00:00
Sam Rose 02ac338c3f
deleteMany -> bulkDelete 2024-03-01 17:11:19 +00:00
Sam Rose a4e212c0d8
Migrate RowAPI.exportRows 2024-03-01 17:10:49 +00:00
Sam Rose 376bb9c105
Migrate RowAPI.fetch 2024-03-01 17:04:35 +00:00
Sam Rose a98948150d
Migrate RowAPI.delete 2024-03-01 17:03:34 +00:00
Sam Rose 4efafaeeaf
Migrate RowAPI.patch 2024-03-01 16:40:47 +00:00
Sam Rose 58b1c2bca6
Migrate RowAPI.validate 2024-03-01 16:39:57 +00:00
Sam Rose a639ba91d3
Migrate RowAPI.save 2024-03-01 16:38:31 +00:00
Sam Rose d5c6ab8648
Fix tests. 2024-03-01 16:03:52 +00:00
Sam Rose 8d39b24c44
Merge branch 'master' of github.com:budibase/budibase into test-api-unification 2024-03-01 15:20:15 +00:00
Sam Rose 5d42804020
Migrate some of RowAPI, WIP 2024-03-01 15:20:07 +00:00
Peter Clement a13497bc7d
Merge branch 'master' into fix/branding-title-bug 2024-03-01 15:06:27 +00:00
Peter Clement d59b3b628a Ensure title value is passed to client app 2024-03-01 14:59:30 +00:00
Sam Rose 16e9c5ff4e
Migrate QueryAPI 2024-03-01 14:33:18 +00:00
Sam Rose f5f81a5fb0
Fix tests. 2024-03-01 13:59:55 +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 1c701fa81e Log responses 2024-03-01 13:30:43 +01:00
Dean d9b0b1c1e3 Merge remote-tracking branch 'origin/master' into feature/form-screen-template 2024-03-01 12:23:12 +00: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
Michael Drury 30bd1deb37
Merge branch 'master' into revert-13160-revert-13128-feature/sql-query-aliasing 2024-03-01 11:37:45 +00:00