mike12345567
|
e2042ebefb
|
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
|
0cf777a0cd
|
Build fixes
|
2022-06-09 12:33:10 +01:00 |
Rory Powell
|
857cd2d735
|
Merge branch 'develop' into feature/posthog-v2
|
2022-05-28 23:03:31 +01:00 |
mike12345567
|
1b86041c68
|
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
|
e4257f1e04
|
Merge branch 'develop' into feature/posthog-v2
|
2022-05-05 08:47:06 +01:00 |
Rory Powell
|
1caf4b1965
|
Merge branch 'develop' into feature/posthog-v2
|
2022-04-27 16:32:00 +01:00 |
mike12345567
|
48eda78f67
|
Fix for issue being able to delete apps.
|
2022-04-27 15:58:55 +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
|
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
|
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 |
Rory Powell
|
2a5df40ffa
|
Add createdAt and updatedAt to all new put requests
|
2022-03-30 14:24:04 +01:00 |
Rory Powell
|
15b676ce1c
|
Remove remaining direct usage of CouchDB. Add common pouch config to backend-core
|
2022-03-29 16:03:44 +01:00 |
mike12345567
|
12ae9993ca
|
Changing directory.
|
2022-01-10 19:30:35 +00:00 |