Commit Graph

11131 Commits

Author SHA1 Message Date
Sam Rose ecdb5eec36
Remove testcontainers debug logging. 2024-03-27 16:59:27 +00:00
Sam Rose 4183a0aeb7
Set default packages/server test timeout to 30 seconds, and unmock console.log. 2024-03-27 16:57:31 +00:00
Sam Rose eb33dac9b1
Make container reuse optional, disabled by default. 2024-03-27 16:40:41 +00:00
Sam Rose 1205cfcbcc
Fix mysql.spec.ts 2024-03-27 16:31:31 +00:00
Sam Rose 385197a5f7
Fix postgres.spec.ts 2024-03-27 15:55:22 +00:00
Sam Rose 831c174362
Give SQL integrations their own database when fetching a new datasource. 2024-03-27 15:25:37 +00:00
Sam Rose f1609e6763
Retry socket hangups. 2024-03-26 17:25:24 +00:00
mike12345567 42214919be Improving types around row search. 2024-03-26 16:34:19 +00:00
Sam Rose 1eae212f83
Stop relying on config.request and create a supertest instance per request. 2024-03-26 15:41:51 +00:00
Sam Rose b84bbd6003
Migrate viewV2.spec.ts to new datasource providers. 2024-03-26 14:43:17 +00:00
Sam Rose 2304aeaa71
Migrate mysql.spec.ts to new datasource providers. 2024-03-26 14:36:18 +00:00
Sam Rose 5530d7f4b6
Migrate mongodb.spec.ts to new datasource providers. 2024-03-26 14:05:58 +00:00
mike12345567 3843dc994b Fixing a type issue. 2024-03-26 13:52:22 +00:00
mike12345567 de518de8fa Merging issue with static index. 2024-03-26 12:53:45 +00:00
Sam Rose 158964c4d2
Got container reuse strategy in place, need to convert tests now. 2024-03-26 11:22:40 +00:00
Sam Rose e267096a0a
Merge master. 2024-03-26 10:31:47 +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 037becfedc
Remove testcontainers debug logging. 2024-03-26 10:05:13 +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 f3e9e3d35e
Share a single globalSetup/globalTeardown. 2024-03-26 09:49:33 +00:00
Michael Drury 69f0c06171 Refactoring, moving SQS around, re-introducing old internal search. 2024-03-25 19:00:08 +00:00
Sam Rose 0dba0cebc7
Remove CouchDB container name. 2024-03-25 17:26:15 +00:00
Adria Navarro f7daceaf07 Remove unused .vscode folders 2024-03-25 18:23:12 +01:00
Sam Rose f68840a580
Remove testcontainers debug logging. 2024-03-25 17:13:04 +00:00
Sam Rose 569f00316b
Merge branch 'master' of github.com:budibase/budibase into remove-jest-testcontainers 2024-03-25 17:12:11 +00:00
Gerard Burns d9033b2636
Un-revert Skeleton Loader PR (#13180)
* wip

* wip

* wip

* client versions init

* wip

* wip

* wip

* wip

* wip

* linting

* remove log

* comment client version script

* lint

* skeleton loader type fix

* fix types

* lint

* fix types again

* fix manifest not being served locally

* remove preinstalled old client version

* add constant for dev client version

* linting

* Dean PR Feedback

* linting

* pr feedback

* wip

* wip

* clientVersions empty array

* delete from git

* empty array again

* fix tests

* pr feedback

---------

Co-authored-by: Andrew Kingston <andrew@kingston.dev>
2024-03-25 16:39:42 +00:00
Sam Rose b303592f4c
Remove content length checks. 2024-03-25 15:30:14 +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
Sam Rose 7bf17932c9
Merge branch 'master' of github.com:budibase/budibase into remove-pg-mock 2024-03-25 15:00:56 +00:00
Sam Rose a925132fdf
Fix broken tests. 2024-03-25 15:00:16 +00:00
Sam Rose 869ed4256e
Merge master. 2024-03-25 14:13:48 +00:00
Sam Rose 419880e4fb
Merge branch 'master' into pull-images-prior-to-tests 2024-03-25 13:51:38 +00:00
Sam Rose 538f3b9dbe
Align our use of images across the codebase. 2024-03-25 13:51:27 +00:00
Michael Drury 37b4b756ea Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-03-25 13:31:31 +00:00
Sam Rose fc41d16d1d
Remove comment added to trigger tests. 2024-03-25 11:52:18 +00:00
Michael Drury 6824d8626a Fixing failing test. 2024-03-25 11:19:31 +00:00
Sam Rose 077ca2d120
Make a change in packages/server to trigger the tests. 2024-03-25 11:16:37 +00:00
Michael Drury 5240c2c2ca
Merge branch 'master' into fix/BUDI-7444 2024-03-25 10:03:38 +00:00
Michael Drury a7142dc618
Merge branch 'master' into remove-mongodb-mock 2024-03-22 16:16:15 +00:00
mike12345567 cc8a0274a4 Updating based on PR comments. 2024-03-22 15:26:02 +00:00
Sam Rose a9aa409d7c
Fix up tests. 2024-03-22 15:01:40 +00:00
Sam Rose 5e6a9d2176
Convert executeQuery.spec.js to TypeScript and make it hit real databases. 2024-03-22 14:41:09 +00:00
mike12345567 defb925d16 Query seq fix. 2024-03-22 13:38:52 +00:00
mike12345567 185e9c3425 Fixing test case. 2024-03-22 13:01:51 +00:00
mike12345567 2464020a22 Test fixes after running in CI. 2024-03-22 12:36:00 +00:00
mike12345567 5b1db96129 Fixing typing issue. 2024-03-22 12:05:55 +00:00
Sam Rose 08fecca9f2
Delete query.seq.spec.ts 2024-03-22 12:00:26 +00:00
mike12345567 ce73832a43 Merge branch 'fix/BUDI-7444' of github.com:Budibase/budibase into fix/BUDI-7444 2024-03-22 11:50:24 +00:00
mike12345567 3f225c94e7 Linting. 2024-03-22 11:50:07 +00:00
Michael Drury f5d085ec83
Merge branch 'master' into fix/BUDI-7444 2024-03-22 11:45:12 +00:00
mike12345567 f4f7ac42ec Adding test cases for interpolation of SQL, confirming that the context correctly gets cleaned up before passing into bindings. 2024-03-22 11:40:44 +00:00
mike12345567 c32163a9be Initial fix for defaulting parameters, switch to null rather than strings, this is important for prepared statements/SQL queries. 2024-03-21 18:26:35 +00:00
Sam Rose 1c13565459
Making really good progress removing the pg mocks. More to do, though. 2024-03-21 18:16:52 +00:00
Adria Navarro 332fa3050a Redo bundle 2024-03-21 18:51:22 +01:00
Adria Navarro ae0ef14a63 Lint 2024-03-21 17:22:33 +01:00
Adria Navarro 8c7ab2e506 Fix ts 2024-03-21 17:14:27 +01:00
Adria Navarro 8da1170b90 Recreate bundles 2024-03-21 16:21:23 +01:00
mike12345567 3a05076c3e Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-03-21 15:01:20 +00:00
Adria Navarro bb87b9943c Import 2024-03-21 14:33:12 +01:00
Adria Navarro a85d4460b1 Clean code 2024-03-21 14:22:07 +01:00
Adria Navarro bc02fb372f
Merge branch 'master' into BUDI-8084/single-attachment-binding 2024-03-21 14:20:15 +01:00
Sam Rose 78c878c3ea
Merge branch 'master' into remove-mongodb-mock 2024-03-21 11:35:09 +00:00
Sam Rose ef435ce9e1
Merge branch 'master' into remove-mssql-mock 2024-03-21 10:26:56 +00:00
Adria Navarro 8a6080ac19
Merge branch 'master' into reorganise-row-tests-3 2024-03-21 10:55:55 +01:00
Adria Navarro 30f08ef232
Merge branch 'master' into BUDI-8084/single-attachment-binding 2024-03-21 10:39:57 +01:00
Adria Navarro 7a779faf6b
Merge branch 'master' into BUDI-8084/single-attachment-binding 2024-03-21 10:39:03 +01:00
Sam Rose a0182b3d9b
Merge branch 'master' into remove-mysql-mock 2024-03-21 09:31:43 +00:00
Adria Navarro 0859e79b1e Lint 2024-03-20 23:19:42 +01:00
Adria Navarro 0827cc6bda Type everywhere! 2024-03-20 19:33:39 +01:00
mike12345567 b3bc092ee0 Allowing deletion of external tables, whether they were createrd in Budibase or not. 2024-03-20 18:25:23 +00:00
Sam Rose 30a8a89f60
Fix debug spec assertions. 2024-03-20 18:03:02 +00:00
Sam Rose 545c67eac6
Remove mssql mock, unify SQL-based query tests. 2024-03-20 17:59:35 +00:00
Adria Navarro 3638c1d266
Merge branch 'master' into BUDI-8084/single-attachment-binding 2024-03-20 18:35:53 +01:00
Sam Rose a81a1b13ce
Remove mysql mocks. 2024-03-20 16:55:34 +00:00
Sam Rose 6da84d2941
Fix lint errors. 2024-03-20 16:06:22 +00:00
Sam Rose a82c38dc0c
Merge branch 'reorganise-row-tests-3' of github.com:budibase/budibase into reorganise-row-tests-3 2024-03-20 16:01:49 +00:00
Sam Rose 07c6dcc0c0
Merge branch 'master' of github.com:budibase/budibase into reorganise-row-tests-3 2024-03-20 16:01:29 +00:00
Sam Rose 681c53156f
Merge master. 2024-03-20 15:52:44 +00:00
Sam Rose db4c3eb214
Remove no longer needed jest.unmnock call. 2024-03-20 15:42:40 +00:00
Sam Rose ff22db3d9f
Fold MongoDB unit tests into integration tests, delete MongoDB mocks. 2024-03-20 15:42:06 +00: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
Adria Navarro 59a7d8052a Single attachment subtype 2024-03-20 13:35:09 +01:00
Sam Rose 4783426b0f
Merge branch 'master' of github.com:budibase/budibase into reenable-no-unused-vars 2024-03-20 11:46:59 +00:00
Sam Rose 217b39c232
Reenable no-unused-vars 2024-03-20 11:46:39 +00:00
Sam Rose 15ddfd1309
Merge branch 'master' into reenable-no-prototype-builtins 2024-03-20 11:10:06 +00:00
Sam Rose 89e2b54aaa
Merge branch 'master' into reenable-no-undef 2024-03-20 10:58:42 +00:00
Michael Drury 910f654df5
Merge branch 'master' into fix/sql-table-update-aliasing 2024-03-20 10:47:23 +00:00
Sam Rose efd4496d48
Reenable no-prototype-builtins 2024-03-20 10:27:51 +00:00
Adria Navarro beb02bfcac Fix flakiness 2024-03-20 11:15:12 +01:00
Sam Rose ab83403ff4
Merge branch 'master' into reenable-no-undef 2024-03-20 09:56:32 +00:00
Sam Rose 282cc5a1e8
Merge branch 'master' into fix/sql-table-update-aliasing 2024-03-20 09:20:15 +00:00
Adria Navarro 7d12af9ba8
Merge branch 'master' into reenable-no-case-declarations 2024-03-19 19:51:11 +01:00
Sam Rose 009c795f54
Reenable no-undefs. 2024-03-19 17:47:39 +00:00
Michael Drury 34b4e8fd1d
Merge branch 'master' into fix/sql-table-update-aliasing 2024-03-19 17:35:23 +00:00
mike12345567 1f1e9758c5 Disabling aliasing for table creation, update and deletion. These operations don't require aliasing and so therefore it should be fully disabled. 2024-03-19 17:23:14 +00:00
Sam Rose 03a702e765
Merge master. 2024-03-19 17:07:26 +00:00
Michael Drury 856334e333
Merge branch 'master' into fix/13282 2024-03-19 17:05:51 +00:00
mike12345567 74abee8902 Fixing snapshot test. 2024-03-19 16:52:16 +00:00
Sam Rose 9eeb04fa95
Fix broken mocks. 2024-03-19 16:50:48 +00:00
mike12345567 8d7267691d Handling aliasing in column conversions. 2024-03-19 16:28:25 +00:00
mike12345567 6a0e46a0a6 Proper fix, making sure that low level handling of JSON column types correctly handles aliasing. 2024-03-19 16:24:15 +00:00
mike12345567 612efba370 Merge branch 'fix/13282' of github.com:Budibase/budibase into fix/13282 2024-03-19 16:11:46 +00:00
mike12345567 4efec72b4d Fixing an issue uncovered by tests, MS-SQL and MariaDB when columns are aliased don't always return an array, they may return a stringified version. Making the reference processor more hardy against this. 2024-03-19 16:11:26 +00:00
Michael Drury 7f509f0b66
Merge branch 'master' into fix/13282 2024-03-19 16:09:44 +00:00
Sam Rose 41a539d516
Merge branch 'master' of github.com:budibase/budibase into reenable-no-inner-declarations 2024-03-19 16:01:45 +00:00
Sam Rose 476f84c6d1
Merge branch 'master' into reenable-no-useless-escape 2024-03-19 16:00:07 +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 7dc9e4ef3f
Fix incorrect test. 2024-03-19 15:34:02 +00:00
Sam Rose 9d351bcfed
Merge branch 'master' of github.com:budibase/budibase into add-lints-for-only 2024-03-19 15:25:33 +00:00
mike12345567 e0805f7056 fix for mysql test as well. 2024-03-19 15:17:13 +00:00
mike12345567 f82f6e7b3b Set on save, isSQL as well. 2024-03-19 15:07:28 +00:00
mike12345567 faee609243 Merge branch 'fix/13282' of github.com:Budibase/budibase into fix/13282 2024-03-19 15:07:13 +00:00
mike12345567 8103e5291c Fix test. 2024-03-19 15:06:23 +00:00
Michael Drury 45bfb8eaf3
Merge branch 'master' into fix/13282 2024-03-19 15:05:23 +00:00
mike12345567 55b9b00771 PR comments. 2024-03-19 14:50:38 +00:00
mike12345567 5c01ba0095 Fix for issue with aliasing not quite working as expected when interacting with very old datasources, there is a flag 'isSQL' which was not set in old versions, this is now set when retrieving datasources to avoid issues with it being unset. 2024-03-19 14:48:56 +00:00
mike12345567 abdff7d8e6 Adding test case. 2024-03-19 13:22:43 +00:00
mike12345567 68bc7bbdf5 Fixing issue, dis-allow passing HBS statements in as query parameters. 2024-03-19 12:52:06 +00: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
Sam Rose 03720b8ea8
Merge branch 'master' of github.com:budibase/budibase into add-lints-for-only 2024-03-19 09:41:42 +00:00
Sam Rose 35add186e0
Merge branch 'master' into reorganise-row-tests-2 2024-03-18 17:08:40 +00:00
Sam Rose ae0eda21a5
Remove uses of console in tests. 2024-03-18 13:43:43 +00:00
Adria Navarro d34b4c9d80 Set inputs to nx 2024-03-18 13:47:54 +01:00
Adria Navarro 6d7712fbdc
Remove .only 2024-03-18 10:18:45 +01:00
Adria Navarro e373387071
Merge branch 'master' into chore/stringtemplates-to-esm 2024-03-18 10:00:27 +01:00
Adria Navarro a0f8609baf
Merge pull request #13260 from Budibase/chore/clean-stringtemplates-usages-in-docker
Remove string-templates links from the docker images
2024-03-18 09:58:28 +01:00
Sam Rose d4f9822c74
Move viewV2 tests out of row.spec.ts and into viewV2.spec.ts. 2024-03-15 17:03:47 +00:00
Sam Rose fec6c7d267
Fold some mocky unit tests into row.spec.ts 2024-03-15 15:57:27 +00:00
Adria Navarro 8f3c21f045 Fix server jest mappers 2024-03-15 16:40:30 +01:00
Adria Navarro dff96b88a2 Remove --frozen-lockfile 2024-03-15 14:53:50 +01:00
Adria Navarro 2d641a9672 Clean worker and server dockerfile string-templates injection 2024-03-15 14:53:50 +01:00
Adria Navarro 21fbd53041 Fix test mapper 2024-03-15 14:53:25 +01:00
Adria Navarro 3b1242b0e1
Merge branch 'master' into reorganise-row-tests 2024-03-15 13:13:43 +01:00
Sam Rose ac61087379
Merge branch 'master' into reorganise-row-tests 2024-03-15 12:02:17 +00:00
Dean b8277fc60f Merge remote-tracking branch 'origin/feature/app-list-actions' into feature/app-favourites 2024-03-15 10:01:38 +00:00
deanhannigan 7a737e7664
Merge branch 'master' into feature/app-list-actions 2024-03-15 09:31:54 +00:00
Dean f2dbeed6e8 Merge remote-tracking branch 'origin/feature/app-list-actions' into feature/app-favourites 2024-03-15 09:20:02 +00:00
deanhannigan 72a671e93b
Merge branch 'master' into feature/app-list-actions 2024-03-15 09:10:57 +00:00
Dean 4949ea1bcd PR feedback 2024-03-15 09:09:44 +00:00
Sam Rose 3c2f2b95b3
Finishing touches. 2024-03-14 17:29:50 +00:00
Sam Rose 3b68873fc4
Move more view tests out of row.spec.ts 2024-03-14 17:17:56 +00:00
Sam Rose 850fb3d4ec
Get viewV2.spec.ts running against real databases. 2024-03-14 17:11:09 +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