3 Commits (13d321350bfab5d4ee46447ddbc80d72af137568)

Author SHA1 Message Date
mike12345567 bba1fdcb7c Switching over to using our own version of cls-hooked which has the memory leak (no async hooks disable call) fixed as well as changing how we use the CLS namespaces to allow us to destroy the namespace we use per request. 4 years ago
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. 4 years ago
mike12345567 9fa10ff02f Refactoring backend-core tenancy to context, splitting out tenancy functionality to its own area. 4 years ago
mike12345567 72534c6ed2 Refactoring backend-core tenancy to context, splitting out tenancy functionality to its own area. 4 years ago
mike12345567 40c6eb2007 Main body of work, refactoring most usages. 4 years ago
mike12345567 d2fe119d90 Main body of work, refactoring most usages. 4 years ago
mike12345567 b4f83fa867 Changing directory. 4 years ago
mike12345567 12ae9993ca Changing directory. 4 years ago
mike12345567 42f08f97cc Revert "Merge pull request #2253 from Budibase/revert-2076-feature/multi-tenants" 5 years ago
mike12345567 46ea3f3e9e Revert "Merge pull request #2253 from Budibase/revert-2076-feature/multi-tenants" 5 years ago
Michael Drury f37946d47e
Revert "Multi-tenancy/organisations" 5 years ago
Michael Drury b86a6fddc9 Revert "Multi-tenancy/organisations" 5 years ago
mike12345567 55ff798803 Linting. 5 years ago
mike12345567 88c07d28eb Linting. 5 years ago
mike12345567 54e765a182 Implementing some changes to how context gets set for tenancy, after testing, as well as updating server. 5 years ago
mike12345567 e7974f7e86 Implementing some changes to how context gets set for tenancy, after testing, as well as updating server. 5 years ago