1
0
Fork 0
mirror of synced 2024-09-21 20:01:32 +12:00
Commit graph

1072 commits

Author SHA1 Message Date
Sam Rose
d42ce6ac09
Merge branch 'master' into postgres-query-tests 2024-02-14 16:26:22 +00:00
Sam Rose
75c2392b60
Flesh out Postgres tests, add MySQL tests. 2024-02-08 15:32:38 +00:00
Adria Navarro
a7859f7fd8 Fix test 2024-02-07 14:09:19 +01:00
Adria Navarro
456edfa7b4 Fix mongo findOneAndUpdate 2024-02-07 13:37:06 +01:00
Adria Navarro
b8d22d6ef1 Lint 2024-02-07 00:01:09 +01:00
Adria Navarro
2c4601440f Merge branch 'master' into revert-12934-revert-12930-revert-12929-revert-12769-isolated-vm 2024-02-06 17:53:22 +01:00
Sam Rose
3be9ad7d78
Disable schema dumping for Postgres in Budicloud. 2024-02-06 15:47:47 +00:00
mike12345567
e8e7eea47a Adding some test cases for aliasing. 2024-02-05 15:23:24 +00:00
Sam Rose
a773841518
Improve error messages relating to failing to connect to datasources. 2024-02-05 14:53:05 +00:00
Sam Rose
1573242031
Respond to PR feedback. 2024-02-05 14:26:19 +00:00
mike12345567
c4f4a46d70 Quick fix based on testing. 2024-02-05 12:45:19 +00:00
Sam Rose
7cceb04ca2
Basic Postgres and Mongo query testcases. 2024-02-05 11:43:40 +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
mike12345567
bb0b776684 Updating how aliasing is handled. 2024-01-30 17:57:10 +00:00
mike12345567
09a0d00aa7 Fixing some test cases. 2024-01-30 13:50:36 +00:00
mike12345567
5d2ba68fae Adding test case based on capture of real failing query. 2024-01-30 13:35:45 +00:00
mike12345567
6964e2d146 Fixing update aliasing. 2024-01-29 13:43:51 +00:00
mike12345567
fcf8cf61da Merge branch 'master' of github.com:Budibase/budibase into feature/sql-query-aliasing 2024-01-29 12:35:54 +00:00
mike12345567
99c2a51f41 Updating back to use our own home-rolled version which allows us to specify the image version correctly, but using the testcontainers option to wait for two logs. 2024-01-26 16:48:56 +00:00
mike12345567
ccd6c2ece6 Merge branch 'fix/postgres-test-db-not-starting' of github.com:Budibase/budibase into fix/postgres-test-db-not-starting 2024-01-26 15:59:27 +00:00
mike12345567
cf60138832 Trying proper Postgres testcontainers - should have more accurate startup. 2024-01-26 15:59:06 +00:00
Michael Drury
555871d84d
Merge branch 'master' into fix/postgres-test-db-not-starting 2024-01-26 14:36:59 +00:00
mike12345567
870ca2266e Adding a 2 second timeout after the message occurs to make sure DB is fully started - can't wait for both messages. 2024-01-26 14:22:25 +00:00
mike12345567
d4fd775c37 Attempting to fix issue with Postgres not being fully started in Github CI - previous message the DB was starting, this message means the database is fully started. 2024-01-26 13:42:39 +00:00
mike12345567
0eb29ef73f PR comments. 2024-01-24 18:00:32 +00:00
mike12345567
ccc751d09c A quick refactor to get rid of the old 'FieldTypes' enumeration, considering how core it is to all data handling in Budibase, the fact we had both 'FieldType' and 'FieldTypes' was confusing - righting this fully. 2024-01-24 16:58:13 +00:00
mike12345567
2a21556402 Get rid of schemaFields on backend. 2024-01-22 13:29:14 +00:00
mike12345567
3ce00c42a2 Adding SQL logging capabilities. 2024-01-18 18:13:11 +00:00
mike12345567
88c54bcc1d Merge branch 'master' of github.com:Budibase/budibase into feature/sql-query-aliasing 2024-01-15 12:26:31 +00:00
mike12345567
82ba1df4ef Fixing an issue with typing in the information_schema table that was leading to an 'invalid syntax name' message when attempting to fetch tables from our QA postgres database. 2024-01-09 13:40:34 +00:00
Martin McKeaveney
a34ae9e2e2 merge with master 2024-01-08 16:44:32 +00:00
Martin McKeaveney
de80d895a2 remove deprecated mongodb TLS option 2024-01-08 16:15:37 +00:00
Michael Drury
fa41b15ded
Merge branch 'master' into feature/postgresql-multiple-schema 2024-01-08 15:39:12 +00:00
Adria Navarro
6df4bf84df Lint 2024-01-08 14:19:25 +01:00
rg2011
f73f8f4433 Add support for full search path to postgres integration 2024-01-05 17:46:44 +01:00
Adria Navarro
92950cef91 Maintain views on finaliseExternalTables 2024-01-04 16:20:48 +01:00
mike12345567
4ddcecfd04 Merge branch 'master' of github.com:Budibase/budibase into feature/sql-query-aliasing 2024-01-02 16:21:05 +00:00
melohagan
6adb5cfe79
Do not throw error on 204 no content (#12643) 2023-12-20 11:02:59 +00:00
Sam Rose
93da29611d
Fix type error. 2023-12-19 10:11:51 +00:00
mike12345567
d681d5298b Type fixes. 2023-12-18 18:33:04 +00:00
mike12345567
615bf4a5b6 Merge branch 'master' of github.com:Budibase/budibase into feature/sql-query-aliasing 2023-12-12 17:36:29 +00:00
mike12345567
b2b51a03f8 merge branch 'master' of github.com:Budibase/budibase into fix/budi-7827 2023-12-12 15:00:27 +00:00
mike12345567
185e4d2f82 Merge branch 'master' of github.com:Budibase/budibase into feature/sql-query-aliasing 2023-12-12 13:47:07 +00:00
Sam Rose
c50e8fd05b
Split withEnv, so the core env isn't touched in it. 2023-12-11 17:43:56 +00:00
mike12345567
a3ebf0bffd Allowing external formulas to be updated. 2023-12-11 16:58:41 +00:00
mike12345567
4302c720ed Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2023-12-08 16:13:09 +00:00
mike12345567
8110a33fd8 Merge branch 'master' of github.com:Budibase/budibase into feature/sql-query-aliasing 2023-12-07 13:12:16 +00:00
melohagan
269ad4ee66
Support enum types in PostgreSQL and MySQL (#12512)
* Support enums in Postgres table fetch

* MySQL support for enum values

* null safety

* Refactor
2023-12-06 14:01:36 +00:00
mike12345567
7eccbb851d Fixing issues with other SQL functions than just reading. 2023-12-01 15:27:49 +00:00
mike12345567
5c4dc0dc83 Fixing issue with aliasing. 2023-12-01 14:14:44 +00:00
mike12345567
649025ca12 Fixing missed from. 2023-11-28 18:45:05 +00:00
mike12345567
65cddae9da Getting relationship aliasing working. 2023-11-28 18:43:38 +00:00
mike12345567
cb7c1898f2 Getting basic aliasing working after some testing. 2023-11-27 19:02:06 +00:00
mike12345567
478e297e9e Initial work towards aliasing queries for SQL. 2023-11-24 18:11:53 +00:00
mike12345567
90a624884e Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2023-11-22 12:52:27 +00:00
Adria Navarro
db2c20e3ae eslint import/newline-after-import 2023-11-20 21:52:29 +01:00
Adria Navarro
92f411bf77 Prettier 2023-11-20 21:48:49 +01:00
Adria Navarro
4d27ff1dc0 eslint import/no-duplicates 2023-11-20 21:48:49 +01:00
mike12345567
3228463749 Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2023-11-17 17:23:25 +00:00
melohagan
b68607b048
Redis query command doesn't accept spaced values (#12357)
* Handle string phrase with spaces value

* Unit test
2023-11-09 18:21:28 +00:00
mike12345567
17319a6981 Moving things around so that DEFAULT_BB_DATASOURCE_ID can be imported without cyclics occurring. 2023-10-31 17:52:39 +00:00
Dean
7e33aacbb1 Stop the sample data being identified as an external source. 2023-10-31 14:48:23 +00:00
Michael Drury
9643d9c0e2
Merge branch 'master' into feature/budi-7607-migrate-user-relationship-columns-to-the-new-user-column 2023-10-30 17:41:44 +00:00
Sam Rose
af59039d1c
Add tests for attachment processing endpoint. 2023-10-30 16:46:27 +00:00
mike12345567
9b1a7bd854 PR comments - updating pickAPI to use a common function. 2023-10-27 11:43:01 +01:00
mike12345567
19eaafd946 Fixing some test cases. 2023-10-26 16:32:34 +01:00
mike12345567
ed0670a008 Major update to make the table.type always 'table' and then adding a new sourceType which states what source the table came from, external or internal. Don't want to keep using a type that should be static as two different things. 2023-10-26 13:19:09 +01:00
mike12345567
455b26bac9 Making sure the source ID is always set when creating a table - the frontend expects this to be set for every table so making the type represent this correctly. 2023-10-25 19:00:25 +01:00
Sam Rose
007e919d0e
Spring cleaning before review. 2023-10-25 14:53:51 +01:00
mike12345567
fdfd58391a Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2023-10-19 18:25:11 +01:00
Sam Rose
767900aec6
Remove type information from JSDoc in .ts files, it's redundant. 2023-10-17 16:46:32 +01:00
mike12345567
b267e4ca28 Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2023-10-17 14:53:09 +01:00
Sam Rose
89e64d18a5 Remove TODOs. 2023-10-13 16:11:56 +01:00
Sam Rose
2f0e88c17c Merge branch 'master' of github.com:Budibase/budibase into fix/budi-7433-google-sheets-validation-wont-let-you-import-any-sheets-if-2 2023-10-13 13:13:41 +01:00
Sam Rose
18363b7b60 Make sure to stop postgres container after the postgres integration tests have run. 2023-10-13 09:50:45 +01:00
Sam Rose
6af05500e9 Fix lint warnings. 2023-10-12 17:59:02 +01:00
Sam Rose
f4fa542e86 Remove some unused fields, fix a broken spec. 2023-10-12 17:34:48 +01:00
Sam Rose
16451904c9 Expose an errors object via the buildSchemaFromDb endpoint. 2023-10-12 17:12:49 +01:00
Sam Rose
1faf920c67 DatasourcePlus deals exclusively in ExternalTables, reflect that in the types. 2023-10-12 16:38:15 +01:00
Sam Rose
85b3af2971 Refactor DatasourcePlus's buildSchema to return a value, rather than rely on member variables. 2023-10-12 16:27:18 +01:00
Sam Rose
6e1962e6ea Plumb Google Sheets table fetching error through to buildSchemaFromDb endpoint. 2023-10-12 12:07:13 +01:00
Adria Navarro
62fd9011f3 Merge branch 'labday/type_schema' into feature/multi-user-type-column 2023-10-11 14:13:55 +02:00
Adria Navarro
164e1f4c18 Clean 2023-10-11 13:15:59 +02:00
Adria Navarro
6c328109b6 Fixes 2023-10-10 18:54:57 +02:00
Adria Navarro
21e2d7ddbe Fix relationship types 2023-10-10 18:54:57 +02:00
mike12345567
635f33f81e Make sure that external tables preserve the BB_REFERNECE type, under the hood it is text/array, but it should continue to be treated correctly as its own indpendent type when updating Budibase tables (fetching). 2023-10-09 18:28:09 +01:00
Adria Navarro
91306c79eb Fix tests 2023-10-04 17:55:23 +02:00
Adria Navarro
46b85ac12c Multiple users column 2023-10-04 17:55:23 +02:00
mike12345567
1db95a3006 Merge branch 'develop' of github.com:Budibase/budibase into labday/sqs 2023-10-02 16:32:10 +01:00
Adria Navarro
8be76f1f97 Move the -2 magic number in its right place 2023-09-28 13:55:35 +02:00
Adria Navarro
c202f88b6d Allow deleting cell 2023-09-28 12:42:42 +02:00
Adria Navarro
606bad7f4d Clean 2023-09-28 11:41:20 +02:00
Adria Navarro
0c4cdde25f Allow BB_REFERENCE to google sheets 2023-09-28 10:12:45 +02:00
mike12345567
7bd84bd048 Some typing fixes as well as a fix for the frontend issue of tables not correctly having their schemas updated in the table store when relationships added. 2023-09-26 17:01:30 +01:00
Adria Navarro
79e693c89d Merge branch 'develop' into feature/user-column-type 2023-09-25 19:03:25 +02:00
Adria Navarro
235799c07d Merge branch 'develop' into backmerge-20230919 2023-09-19 12:33:04 +02:00
Adria Navarro
3ee95938c3 Allow bb_refs to externals 2023-09-19 10:06:17 +02:00
Gerard Burns
36acd69fdd Note about MySQL SSL (#11797) 2023-09-18 12:14:12 +01:00
mike12345567
8ca3f13a1c Quick re-jig based on test failure, seems the base sql.ts is depended on fairly heavily, importing the SDK can create a lot of cycles. 2023-09-14 16:53:36 +01:00
mike12345567
217d10f5fb Fix for more than/less than ranges, zeros were ignored when building up ranges, so that it simply acted like an upper limit, rather than a range. 2023-09-14 14:00:49 +01:00
Adria Navarro
881ff02a7d Merge branch 'develop' into BUDI-7367/ds_plus_row_unittest 2023-09-13 14:49:17 +02:00
Adria Navarro
c530d5fa34 Timeout issues 2023-09-13 13:17:51 +02:00
Mel O'Hagan
17dc01808c Additional unit test 2023-09-11 21:35:51 +01:00
Mel O'Hagan
7147752b9c Fix date validation regex 2023-09-11 21:26:05 +01:00
Adria Navarro
3fe7a9f4cb Unmock pg 2023-09-06 12:51:08 +02:00
Adria Navarro
887ebb2eeb Simplify 2023-09-05 11:16:37 +02:00
Adria Navarro
6240740a42 Simplify 2023-09-05 11:11:47 +02:00
Adria Navarro
b27899b1e6 Redo helpers 2023-09-05 10:47:59 +02:00
Adria Navarro
baab7d3fb5 Use docker utils helpers 2023-09-04 19:05:11 +02:00
mike12345567
7110351bdc Revert "revert develop into master"
This reverts commit fd099658a0.
2023-08-18 14:33:21 +01:00
mike12345567
e174211440 Merge branch 'master' of github.com:Budibase/budibase into develop 2023-08-17 17:34:44 +01:00
Martin McKeaveney
fd099658a0 revert develop into master 2023-08-17 10:28:15 +01:00
melohagan
6d40a54fd5 Only get definition for given schema (#11532) 2023-08-17 10:10:52 +01:00
Michael Drury
08e663a8d3 Merge branch 'master' into budi-7350-filter-equal-for-numbers-not-working-in-data-providers 2023-08-10 16:28:59 +01:00
melohagan
ece1c421fa Fix/formula as display (#11439)
* Allow formulas to be display columns in the grid

* Ensure SQL Server always has a sort order
2023-08-04 13:53:30 +01:00
Mel O'Hagan
20f71fadd3 Refactor 2023-08-03 18:52:55 +01:00
Mel O'Hagan
8c61359b9d Allow user specified type casting in MySQL queries 2023-08-03 17:23:15 +01:00
mike12345567
8c2d0f594c Quick fix for utilising a hyphen in a Postgres schema - this needed to be escaped correctly. 2023-08-01 18:18:53 +01:00
Adria Navarro
f4675aab6e Fix import 2023-08-01 12:52:12 +02:00
Adria Navarro
b9820f94e6 Import lodash modules 2023-07-28 17:11:48 +02:00
Adria Navarro
1ce9bffe40 Remove duplicated key 2023-07-28 17:11:48 +02:00
mike12345567
c185dd7dd0 Merge branch 'develop' of github.com:Budibase/budibase into labday/sqs 2023-07-21 18:41:48 +01:00
mike12345567
7673673db2 Updating RelationshipTypes -> RelationshipType. 2023-07-21 12:57:47 +01:00
Adria Navarro
58c59eba5e Remove unused db usages 2023-07-18 12:00:02 +02:00
Adria Navarro
13ef7b8858 Merge branch 'develop' into backmerge-20230717 2023-07-17 17:13:26 +01:00
Adria Navarro
a7801c52f8 Allow authtype undefined by default 2023-07-13 11:09:40 +02:00
Adria Navarro
2dadf1d429 Fix conflicting mssql configuration 2023-07-11 20:05:10 +02:00
Adria Navarro
02fa87b59b Merge pull request #11200 from Budibase/budi-7265-sql-ntlm-configuration
Allow MSSQL ntlm configuration
2023-07-11 15:33:49 +01:00
Adria Navarro
119506fcc7 Fix typo 2023-07-11 15:41:49 +02:00
Adria Navarro
4280e08f22 Renames 2023-07-11 15:31:59 +02:00
melohagan
89c0d3b389 Add BigInt type support (#11145) (#11195)
* Add BigInt type

* Allow BigInt columns to be added

* Sort fixes

* Add BigInt field
2023-07-11 14:01:55 +01:00
Adria Navarro
c4fec6973f Add ntml config 2023-07-11 13:08:15 +02:00
Adria Navarro
00fff6eded Add local AD option 2023-07-11 12:35:00 +02:00
mike12345567
f7a60bc65a Some minor improvements while working on documenting the outcomes. 2023-07-07 13:47:42 +01:00
mike12345567
adef1ed5ce Initial attempt to get SQS up and running within BB. 2023-07-06 21:49:25 +01:00
mike12345567
4428678ebd Quick fix for QA-core tests, when encrypt is undefined for MS-SQL, it defaults to true, need to be aware of this so can set trustServerCertificate correctly. Also fixing the naming of a test. 2023-06-30 12:05:18 +01:00
mike12345567
63d16f1809 Only enable trust server certificate if encryption enabled. 2023-06-29 16:09:25 +01:00
mike12345567
7b6246ee59 Fixes discovered by MS-SQL validator tests in QA-core, fixing custom ports being used (not default) and allowing the use of self signed certificates. Also updating an error message in line with Peters changes. 2023-06-29 16:09:25 +01:00
mike12345567
a66d5bf7be Merge branch 'develop' of github.com:Budibase/budibase into feat/surface-sql-errors 2023-06-28 17:58:56 +01:00
Michael Drury
72e7373073 Merge pull request #11058 from Budibase/feature/budi-7076
Datasource settings tab for SQL databases and SQL schema export functionality
2023-06-28 17:56:03 +01:00
mike12345567
30a9b349d8 Merge branch 'develop' of github.com:Budibase/budibase into feat/surface-sql-errors 2023-06-28 17:31:03 +01:00
Adria Navarro
ec3f962d3c Fix typings 2023-06-28 15:16:47 +01:00
Adria Navarro
b6f9ae762d Lint 2023-06-28 14:59:49 +01:00
Adria Navarro
47d6113fee Submit nested 2023-06-28 14:33:52 +01:00
Adria Navarro
a95a5f1cb2 Populate fields 2023-06-28 14:33:52 +01:00
Adria Navarro
758b4f8254 Allow open by default for field groups 2023-06-28 14:33:52 +01:00
Adria Navarro
352ea72c53 Select and conditional fields 2023-06-28 14:33:52 +01:00
Adria Navarro
8a7d610faf Move creation pool on the connect step 2023-06-28 14:33:51 +01:00
Adria Navarro
c9bee9e423 Display errors 2023-06-28 14:33:51 +01:00