Commit Graph

7845 Commits

Author SHA1 Message Date
mike12345567 fe846f86a5 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 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
Budibase Release Bot 20852c30cc v1.0.113 2022-04-13 12:21:10 +00: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
Budibase Release Bot c750c3ef32 v1.0.112 2022-04-12 11:03:43 +00: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
Budibase Release Bot a9c62f0c32 v1.0.111 2022-04-11 08:38:36 +00:00
Michael Drury 3c6a6f8e66
Merge pull request #5288 from Budibase/fix/5187-number
Fix for MySQL number parsing issue
2022-04-11 09:32:08 +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
Budibase Release Bot ab4d4debdc v1.0.110 2022-04-08 09:34:45 +00: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
Budibase Release Bot 4e65e994b9 v1.0.109 2022-04-06 14:17:15 +00:00
Budibase Release Bot a9fafd85e8 v1.0.108 2022-04-06 10:32:58 +00:00
Martin McKeaveney c5e94e1e9b
Merge pull request #5267 from Budibase/fix/bash-step-timeout
configure bash step to use automation query timeout
2022-04-06 11:26:20 +01:00
Budibase Release Bot 7d800287b5 v1.0.107 2022-04-06 09:48:21 +00:00
Martin McKeaveney 09694e0045 configure bash step to use automation query timeout 2022-04-06 10:43:08 +01:00
Budibase Release Bot c3da13864b v1.0.106 2022-04-05 13:38:48 +00:00
Michael Drury 08826a4811
Merge pull request #5240 from Budibase/fix/4978
Fix for IN SQL query parsing - handling parentheses and string interpolation
2022-04-05 14:32:16 +01:00
Budibase Release Bot 0cec607cf1 v1.0.105 2022-04-05 11:16:17 +00:00
Budibase Staging Release Bot af633701a9 v1.0.105-alpha.0 2022-04-05 10:46:38 +00: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
Budibase Release Bot 6dd09b6b4f v1.0.104 2022-04-04 09:54:00 +00: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
Budibase Release Bot 43da53bed1 v1.0.103 2022-03-31 09:27:58 +00:00
Budibase Release Bot 665f572421 v1.0.102 2022-03-31 08:47:33 +00:00
Martin McKeaveney 6432ca102a
Update index.ts 2022-03-31 09:40:41 +01:00
Budibase Release Bot 3862854f5b v1.0.101 2022-03-30 16:29:43 +00:00
Martin McKeaveney 69a0c1254f bump versions 2022-03-30 17:19:41 +01:00
Budibase Staging Release Bot 0e309aca3a v1.0.98-alpha.9 2022-03-30 15:25:14 +00:00
Martin McKeaveney e263cc31bb merge with master 2022-03-30 15:44:22 +01:00
Budibase Release Bot b8678e2f56 v1.0.100 2022-03-30 14:30:40 +00: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
Budibase Staging Release Bot 54a848845e v1.0.98-alpha.8 2022-03-30 12:21:32 +00:00
Budibase Staging Release Bot f8f243976d v1.0.98-alpha.7 2022-03-30 11:45:01 +00:00
Budibase Staging Release Bot ca5bc790f5 v1.0.98-alpha.6 2022-03-29 12:03:54 +00:00
Michael Drury 9e05cc4418
Merge pull request #5154 from Budibase/dep-update-29-03-2022
Dependabot merge
2022-03-29 12:57:49 +01:00
mike12345567 9a8372b845 Merge branch 'dependabot/npm_and_yarn/packages/server/minimist-1.2.6' of github.com:Budibase/budibase into dep-update-29-03-2022 2022-03-29 12:24:40 +01:00
Budibase Staging Release Bot f7f157f509 v1.0.98-alpha.5 2022-03-29 10:18:40 +00:00
Budibase Release Bot c5880f9ec2 v1.0.99 2022-03-29 09:23:26 +00:00
Budibase Staging Release Bot a7ad4837b2 v1.0.98-alpha.4 2022-03-29 07:24:22 +00:00
Martin McKeaveney 44424e648f
Merge pull request #5135 from Budibase/feature/googlesheets-release
Feature/googlesheets release
2022-03-29 08:18:11 +01:00
Budibase Staging Release Bot 4b97a9a1fb v1.0.98-alpha.3 2022-03-29 06:59:36 +00:00