1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00
Commit graph

4673 commits

Author SHA1 Message Date
mike12345567
1d61ff906a 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
7792a07899 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
ea6f580501 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
769f48f935 Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-04-19 16:45:27 +01:00
mike12345567
00bcdd317f 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
e2180397c2
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
b0019c80c7 Move out QUERY_THREAD_TIMEOUT from to remove section 2022-04-08 16:20:55 +02:00
Kacper
3df18be4b2 added parseIntSafe function. 2022-04-08 16:17:19 +02:00
Kacper
33090d5d4f QUERY_THREAD_TIMEOUT is string instead of int fix 2022-04-08 13:23:44 +02:00
mike12345567
c4a42cc181 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
09694e0045 configure bash step to use automation query timeout 2022-04-06 10:43:08 +01:00
mike12345567
cad32631a4 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
d152635e25 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
62f4ecf3e1 Fixing issue #5817 - making sure that date strings are correctly parsed into the bindings. 2022-04-01 17:13:28 +01:00
Martin McKeaveney
6432ca102a
Update index.ts 2022-03-31 09:40:41 +01:00
Martin McKeaveney
e263cc31bb merge with master 2022-03-30 15:44:22 +01:00
Michael Drury
771dfefe68
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
5dcbef58a8 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
5da441cf55 Add additional logging to automations 2022-03-30 14:26:51 +01:00
mike12345567
41ec92bf9b 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
ac129cee01
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
04b17fb634 re-add gsheets to self host 2022-03-28 16:46:05 +01:00
Martin McKeaveney
ee6a16827a fixing google sheets bug, respect google configuration hierarchy 2022-03-28 16:44:33 +01:00
mike12345567
e073bdb5a4 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
00e85766c4 Merge branch 'master' into merge-master 2022-03-25 16:51:58 +00:00
Rory Powell
b4bad65cbf Fix app preview 2022-03-25 16:25:46 +00:00
Rory Powell
0ee41ea10c Merge branch 'master' into merge-master 2022-03-25 13:10:37 +00:00
mike12345567
7cb2cd2139 Linting. 2022-03-25 12:15:42 +00:00
David Duong
82620a9a7b fix: incorrect parameters for public rows editing 2022-03-25 12:09:39 +00:00
Michael Drury
ae157a565a
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
70c54e983d Add typescript linting at the top level 2022-03-25 11:17:58 +00:00
Rory Powell
c623b968ba Revert openapi.ts linting 2022-03-25 10:50:00 +00:00
Martin McKeaveney
33506bebb4 ignore AWS config when using endpoint field 2022-03-25 10:35:59 +00:00
Martin McKeaveney
f40dcbd584 lint 2022-03-24 17:54:27 +00:00
Martin McKeaveney
41e715115f Merge branch 'develop' of github.com:Budibase/budibase into develop 2022-03-24 17:47:59 +00:00
Martin McKeaveney
eef0d21551 fixing lint 2022-03-24 17:44:37 +00:00
David Duong
3b5e45b43c
fix: incorrect parameters for public rows editing 2022-03-24 16:11:13 +01:00
Rory Powell
7350fcb4ef Fix test 2022-03-24 14:24:56 +00:00
mike12345567
040d45ad5d Fixing a mis-match of fields when creating many-to-many relationships on tables from within Budibase - #5049. 2022-03-24 13:59:46 +00:00
Rory Powell
bcc84bf1fd Link app context with tenancy, remove app tenancy middleware 2022-03-24 13:04:49 +00:00
Andrew Kingston
8e361afcda Allow deep-getting of pagination params from REST responses 2022-03-24 10:07:23 +00:00
Rory Powell
5392de54d5 Merge branch 'master' into fix/cross-tenant-apps-with-session 2022-03-23 16:45:36 +00:00
Rory Powell
cb6103a321 Fix cross tenant apps with session 2022-03-23 16:45:06 +00:00
Martin McKeaveney
60da8273fe
Merge pull request #4970 from Budibase/fix/analytics-cleanup
updating analytics endpoint, removing old NPS survey
2022-03-22 16:34:25 +00:00
Peter Clement
bda860693f
Merge pull request #4976 from Budibase/fix/query-rows-automation-fix
Handle error when running a a Query Rows automation with a deleted column
2022-03-22 16:24:59 +00:00
Michael Drury
3811436678
Merge pull request #4991 from Budibase/fix/sql-query-in
Fixing SQL in queries
2022-03-22 13:00:32 +00:00
mike12345567
114c9cf96a Fixing review comment. 2022-03-21 17:57:26 +00:00
mike12345567
d52f6dea05 Adding the ability to expand the max number of rows retrieved by SQL queries (say for table exports). 2022-03-21 17:44:43 +00:00
mike12345567
3eb7ab4e5b Fixing issue #4978 - fixing an issue with using the keyword 'in' as part of an SQL query. 2022-03-21 17:16:18 +00:00
Rory Powell
10699edd3b Remove automation usage increment 2022-03-21 16:08:25 +00:00