1
0
Fork 0
mirror of synced 2024-09-27 14:51:28 +12:00
Commit graph

2561 commits

Author SHA1 Message Date
Martin McKeaveney
a3970d6f45 Merge branch 'gsheets-updates' of github.com:Budibase/budibase into gsheets-updates 2022-04-25 09:38:06 +01:00
Martin McKeaveney
bbce5a9c7f Merge branch 'master' into gsheets-updates 2022-04-25 09:27:38 +01:00
Martin McKeaveney
31412cb83b moving node fetch import into module 2022-04-25 00:05:32 +01:00
Martin McKeaveney
84d2bb3cf5 auto fetch access token in gsheets integration 2022-04-24 23:32:47 +01:00
mike12345567
77427ddaba Quick fix for #5495 - managing when no relationships exist. 2022-04-23 13:12:57 +01:00
Michael Drury
141f9ed9dc Merge pull request #5542 from Budibase/fix/5495
Fix for SQL relationship based formulas
2022-04-22 16:51:24 +01:00
Michael Drury
94419024a4 Merge pull request #5510 from Budibase/fix/pouch-leak
PouchDB memory leak protection
2022-04-22 15:32:51 +01:00
mike12345567
d36fc9c7ba Fix for #5530 - make MySQL RejectUnauthorized SSL parameter accessible to the user. 2022-04-22 14:53:36 +01:00
mike12345567
9b20daf930 Fix for #5495 - making sure that formula columns have access to the relationship details before squashing the results ready for response from the API. Also making sure that the frontend inputs the relationship bindings as expected with the proper path for access. 2022-04-22 12:56:36 +01:00
mike12345567
345bbf603c Fixing issues with test cases - a lot of test cases didn't setup tenancy in any format, which now means that the API endpoints they call would not have access to a Global DB instance. Also had to disable the closing of the database in test as this was removing the database from memory, meaning future calls would find an empty database when they opened it. 2022-04-21 14:56:14 +01:00
mike12345567
151ed604f8 Fixing some issues detected by the test cases, making the in-use mechanism for context more clear to complete avoid stack up of contexts (leading to loss of knowledge around previous databases. 2022-04-20 23:10:39 +01:00
mike12345567
9899781fc5 Some updates, making sure databases will always close directly using finally checks around the actual tasks, updating how replication works to have a close statement (to make sure it is controlled correctly) and then updating to PouchDB 7.3.0 for one of the memory leak fixes. 2022-04-20 17:33:42 +01:00
mike12345567
192fb1307e Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them. 2022-04-19 19:42:52 +01:00
Rory Powell
41144db055 Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-04-19 16:45:27 +01:00
mike12345567
80a41235dd Fixing REST UI query error notification and adding better error for query timeout. 2022-04-14 17:28:14 +01:00
mike12345567
5180603374 Fix for #5411 - trimming the various binding components for SQL in queries. Also moving SQL interpolation out into a Typescript - prep for further unit testing/improvements. 2022-04-14 13:06:22 +01:00
mike12345567
94720c10aa Fixing issue #5322 - when endpoint is specified for DynamoDB and not in a the region that the whole instance expects it will throw an odd credentials error - making sure connection is commenced everywhere other than localhost. 2022-04-12 18:49:46 +01:00
Martin McKeaveney
dc0eda29f3 Merge pull request #5316 from Upgreydd/Fix_for_parsing_environment_variable_as_an_integer
QUERY_THREAD_TIMEOUT is string instead of int
2022-04-12 11:56:36 +01:00
Kacper
9eb2ab1687 Move out QUERY_THREAD_TIMEOUT from to remove section 2022-04-08 16:20:55 +02:00
Kacper
5c5debff48 added parseIntSafe function. 2022-04-08 16:17:19 +02:00
Kacper
c89b311e81 QUERY_THREAD_TIMEOUT is string instead of int fix 2022-04-08 13:23:44 +02:00
mike12345567
2accebec7f Fix for issue discovered in #5187 - expanding regex to cover all sorts of number coercion. 2022-04-07 10:26:39 +01:00
Martin McKeaveney
dbb81d9c1a configure bash step to use automation query timeout 2022-04-06 10:43:08 +01:00
mike12345567
4d084383f3 Fix for #5242 - string interpolation in SQL queries was too wide, it was combining parts of multiple strings, rather than searching for bindings within distinct strings. 2022-04-04 19:08:56 +01:00
mike12345567
035cda1177 Extension of fix for 4978 - fixing an issue where parentheses are added to the IN query, causing the query system to not recognise the need to switch out the binding. 2022-04-04 15:39:38 +01:00
mike12345567
39182cfbc0 Fixing issue #5817 - making sure that date strings are correctly parsed into the bindings. 2022-04-01 17:13:28 +01:00
Martin McKeaveney
6c878e71f3 Update index.ts 2022-03-31 09:40:41 +01:00
Martin McKeaveney
034408b3c2 merge with master 2022-03-30 15:44:22 +01:00
Michael Drury
5bc426bb33 Merge pull request #5179 from Budibase/fix/5153
Fix for MySQL Limits and offsets (numbers in bindings)
2022-03-30 15:23:31 +01:00
mike12345567
258434b3ed Fix for #5153 - doing it at the mysql level as it seems to be affected by incorrect types in a way that other SQL databases aren't - limits the possible damage this can do. 2022-03-30 14:45:13 +01:00
Rory Powell
b69445264d Add additional logging to automations 2022-03-30 14:26:51 +01:00
mike12345567
db0b096c0a Fix for #5117 - raised a point that the docs didn't describe where to put properties for a query when running through the public API - fixing the spec. 2022-03-28 18:33:54 +01:00
Michael Drury
9890b45d71 Merge pull request #5134 from Budibase/fix/5103
Fix for RBAC on apps built from templates containing public screens
2022-03-28 17:17:19 +01:00
Martin McKeaveney
457a4812cf re-add gsheets to self host 2022-03-28 16:46:05 +01:00
Martin McKeaveney
aed9bfc728 fixing google sheets bug, respect google configuration hierarchy 2022-03-28 16:44:33 +01:00
mike12345567
88437e11d0 Fix for #5103 - some templates are built on an older version that stored permissions differently, we can't migrate these as they will keep being added, easiest to just support the old method (apply the old rule and convert to the new format when retrieving roles). 2022-03-28 16:34:50 +01:00
Rory Powell
a68767d619 Merge branch 'master' into merge-master 2022-03-25 16:51:58 +00:00
Rory Powell
19bc44e2d0 Fix app preview 2022-03-25 16:25:46 +00:00
Rory Powell
69b2b38aea Merge branch 'master' into merge-master 2022-03-25 13:10:37 +00:00
mike12345567
793cb0ca60 Linting. 2022-03-25 12:15:42 +00:00
David Duong
26a29fef67 fix: incorrect parameters for public rows editing 2022-03-25 12:09:39 +00:00
Michael Drury
573374408b Merge pull request #5073 from Budibase/fix/5049
Fixing an issue with many-to-many SQL relationships generated in SQL tables
2022-03-25 12:05:44 +00:00
Rory Powell
dd9503ac09 Add typescript linting at the top level 2022-03-25 11:17:58 +00:00
Rory Powell
e68e7afa9f Revert openapi.ts linting 2022-03-25 10:50:00 +00:00
Martin McKeaveney
25192bad3b ignore AWS config when using endpoint field 2022-03-25 10:35:59 +00:00
Martin McKeaveney
9c4a6dee40 lint 2022-03-24 17:54:27 +00:00
Martin McKeaveney
1e4ccdc0e5 Merge branch 'develop' of github.com:Budibase/budibase into develop 2022-03-24 17:47:59 +00:00
Martin McKeaveney
b2bcf5a1f7 fixing lint 2022-03-24 17:44:37 +00:00
David Duong
df0d99d93a fix: incorrect parameters for public rows editing 2022-03-24 16:11:13 +01:00
Rory Powell
89db1b9cba Fix test 2022-03-24 14:24:56 +00:00