Commit Graph

311 Commits

Author SHA1 Message Date
Michael Drury 94419024a4 Merge pull request #5510 from Budibase/fix/pouch-leak
PouchDB memory leak protection
2022-04-22 15:32:51 +01:00
Budibase Release Bot ab6473dfb7 v1.0.115 2022-04-22 09:55:33 +00:00
Budibase Release Bot 980c9d1444 v1.0.114 2022-04-21 14:31:17 +00:00
mike12345567 7083470baa Adding a dep:clean function, cleaning up lock files and fixing backend-core test which did not utilise tenancy (no global db). 2022-04-21 15:20:23 +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 13cb5f7f7c Adding another check to make sure context is the same. 2022-04-20 23:13:08 +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 6afe3a28ef Closing global DB using the standard function - not directly. 2022-04-20 18:07:48 +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
Budibase Release Bot f2abbc8377 v1.0.113 2022-04-13 12:21:10 +00:00
Budibase Release Bot c717273996 v1.0.112 2022-04-12 11:03:43 +00:00
Budibase Release Bot 37d723fa07 v1.0.111 2022-04-11 08:38:36 +00:00
Budibase Release Bot 7eb13151f3 v1.0.110 2022-04-08 09:34:45 +00:00
Budibase Release Bot d0773466d3 v1.0.109 2022-04-06 14:17:15 +00:00
Budibase Release Bot 496b582538 v1.0.108 2022-04-06 10:32:58 +00:00
Budibase Release Bot d1ea717bdd v1.0.107 2022-04-06 09:48:21 +00:00
Budibase Release Bot b9bf678770 v1.0.106 2022-04-05 13:38:48 +00:00
Budibase Release Bot 6840d8d166 v1.0.105 2022-04-05 11:16:17 +00:00
Budibase Staging Release Bot 476386f35a v1.0.105-alpha.0 2022-04-05 10:46:38 +00:00
Budibase Release Bot defd0a29a7 v1.0.104 2022-04-04 09:54:00 +00:00
Budibase Release Bot db768fa6f6 v1.0.103 2022-03-31 09:27:58 +00:00
Budibase Release Bot b94a48eac3 v1.0.102 2022-03-31 08:47:33 +00:00
Budibase Release Bot 42c82f30fe v1.0.101 2022-03-30 16:29:43 +00:00
Martin McKeaveney cd8188a800 bump versions 2022-03-30 17:19:41 +01:00
Budibase Staging Release Bot 733b20c0b4 v1.0.98-alpha.9 2022-03-30 15:25:14 +00:00
Martin McKeaveney 034408b3c2 merge with master 2022-03-30 15:44:22 +01:00
Budibase Release Bot f5e10d7a96 v1.0.100 2022-03-30 14:30:40 +00:00
Budibase Staging Release Bot 96ed7abf85 v1.0.98-alpha.8 2022-03-30 12:21:32 +00:00
Budibase Staging Release Bot be20424695 v1.0.98-alpha.7 2022-03-30 11:45:01 +00:00
Budibase Staging Release Bot f8f8d3c9cb v1.0.98-alpha.6 2022-03-29 12:03:54 +00:00
Budibase Staging Release Bot 21f7599509 v1.0.98-alpha.5 2022-03-29 10:18:40 +00:00
Budibase Release Bot 04b8886ce8 v1.0.99 2022-03-29 09:23:26 +00:00
Budibase Staging Release Bot be02c8be94 v1.0.98-alpha.4 2022-03-29 07:24:22 +00:00
Martin McKeaveney 56b1d1dbc1 Merge pull request #5135 from Budibase/feature/googlesheets-release
Feature/googlesheets release
2022-03-29 08:18:11 +01:00
Budibase Staging Release Bot 866965c02c v1.0.98-alpha.3 2022-03-29 06:59:36 +00: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 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
Budibase Staging Release Bot 52b33fce2e v1.0.98-alpha.2 2022-03-28 13:07:09 +00:00
Martin McKeaveney dc940d33db fix launch.json 2022-03-28 12:03:44 +01:00
Budibase Staging Release Bot 7ee95962e1 v1.0.98-alpha.1 2022-03-25 17:00:35 +00:00
Budibase Release Bot aeee34cb7c v1.0.98 2022-03-25 16:59:39 +00:00
Budibase Staging Release Bot 3776c8b8d4 v1.0.98-alpha.0 2022-03-25 14:13:59 +00:00
Budibase Release Bot dc292a072c v1.0.97 2022-03-25 12:22:30 +00:00
Budibase Release Bot afb1dc5210 v1.0.96 2022-03-25 12:04:42 +00:00
Rory Powell 36a7323676 Merge branch 'master' into fix/cross-tenant-apps-with-session 2022-03-25 10:53:10 +00:00
Budibase Release Bot 79f6f92dd4 v1.0.95 2022-03-24 18:31:41 +00:00
Rory Powell 819f9b75de Link app context with tenancy, remove app tenancy middleware 2022-03-24 13:04:49 +00:00