1
0
Fork 0
mirror of synced 2024-09-14 00:08:25 +12:00
Commit graph

27 commits

Author SHA1 Message Date
mike12345567
b803a3fd93 Replacing all plural TS enumerations with singular - this involves a major rename of the DocumentTypes. 2022-08-11 13:50:05 +01:00
mike12345567
2f27e750f5 PR comments. 2022-07-18 18:18:01 +01:00
mike12345567
078cf9e95f Fixing an issue with automations being unable to access app databases due to new context stack up. 2022-07-18 17:38:58 +01:00
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
1c4473ba30 WIP: Memory leak fix 2022-07-13 08:22:21 -04:00
Rory Powell
0cf777a0cd Build fixes 2022-06-09 12:33:10 +01:00
Rory Powell
2a00f6498d Merge branch 'feature/posthog-v2' into feature/event-backfill 2022-05-29 00:25:40 +01:00
Rory Powell
c0d6fa34a4 Identity tenant and installation groups, property updates 2022-05-28 21:38:22 +01:00
Rory Powell
b3f04e7e8f Identity updates 2022-05-24 20:01:13 +01:00
Rory Powell
ff48aaec6e User context updates and misc fixes 2022-05-24 09:54:36 +01:00
mike12345567
484dbbb605 Adding the ability to force a new context. 2022-05-23 23:23:49 +01:00
Rory Powell
28b48a88fe Event identification 2022-05-23 22:14:44 +01:00
mike12345567
e5922269aa 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. 2022-05-10 16:37:24 +01:00
Rory Powell
12abe4adcc Bypass couch db when using tenancy middleware 2022-04-26 17:13:45 +01:00
mike12345567
2441f42c54 Merge branch 'develop' of github.com:Budibase/budibase into fix/develop-merge 2022-04-26 16:31:17 +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
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
Dean
f78aaa640f Code style check 2022-04-19 14:56:56 +01:00
Dean
26c19891bb Unpublish refactored to stop development applications being mistakenly deleted. Minor updates to the modal content component to allow the replacement of the header. Further work to implement the publishing workflow changes 2022-04-19 14:38:09 +01:00
Rory Powell
819f9b75de Link app context with tenancy, remove app tenancy middleware 2022-03-24 13:04:49 +00:00
Rory Powell
02c0c49594 Deprovision and local couch db url fix 2022-02-18 17:36:23 +00:00
Rory Powell
da9be1b20a Add 'location = /' -> 4001 to nginx dev conf 2022-02-18 11:18:59 +00:00
mike12345567
72534c6ed2 Refactoring backend-core tenancy to context, splitting out tenancy functionality to its own area. 2022-01-31 17:53:19 +00:00