1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00
Commit graph

16 commits

Author SHA1 Message Date
mike12345567 c692a656de PR comments. 2022-07-14 19:02:00 +01:00
mike12345567 4c9b82c9ed Fixing some issues highlighted by test cases, as well as refactoring context a bit to make it easier to edit. 2022-07-14 16:02:05 +01:00
Rory Powell e447fd11d1 Build fixes 2022-06-09 12:33:10 +01:00
Rory Powell 64d73e2f96 Merge branch 'develop' into feature/posthog-v2 2022-05-28 23:03:31 +01:00
mike12345567 eae5d4dc4d Removing the use of pouchdb-all-dbs from testing environment, it was causing more harm than good and was entirely avoidable. 2022-05-20 18:29:37 +01:00
Rory Powell 3e254e46bb Merge branch 'develop' into feature/posthog-v2 2022-05-05 08:47:06 +01:00
Rory Powell bd33c827eb Merge branch 'develop' into feature/posthog-v2 2022-04-27 16:32:00 +01:00
mike12345567 4a02f7f9aa Fix for issue being able to delete apps. 2022-04-27 15:58:55 +01:00
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
Rory Powell 1339af11ae Add createdAt and updatedAt to all new put requests 2022-03-30 14:24:04 +01:00
Rory Powell 4ad846f116 Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-03-29 16:03:44 +01:00
mike12345567 b4f83fa867 Changing directory. 2022-01-10 19:30:35 +00:00
Renamed from packages/auth/src/db/index.js (Browse further)