Commit Graph

14 Commits

Author SHA1 Message Date
Iain Sproat 1c0b6e228d chore(server/middleware): allow CORS to be configurable (#4018)
- renames corsMiddleware to corsMiddlewareFactory to follow naming convention
- optionally allow cors middleware to be configured
- amend direct calls of `cors` package to now use middleware factory
2025-02-18 13:50:34 +00:00
Iain Sproat 947f8fd4fa fix(server/database streams): remove event listener on batch completion (#3938) 2025-02-05 15:16:22 +00:00
Iain Sproat 55315feb59 fix(server/diffdownload): fix the bug where client connection close events were not propogated to the database stream connection (#3921)
* WIP: trying to catch a bug

* great success

* reinstate gzip

* Remove feature flag

* remove stream-chain dependency

* remove superfluous logging lines

* re-align with original where possible

* re-align package.json

* More re-alignment with main branch before the previous 'fix'

* A smaller failing example
2025-02-04 11:09:53 +01:00
Iain Sproat c59e6043bb fix(server/errors): derive errors from BaseError (#3918) 2025-01-30 18:15:56 +01:00
Iain Sproat 32c310f849 fix(server/objects): solves database connection resource leak when client connections are prematurely closed (#3889) 2025-01-28 15:56:21 +01:00
Iain Sproat ce9f154e80 fix(server): diff upload and download can handle JSON parsing errors (#3759) 2025-01-03 07:59:33 +00:00
Kristaps Fabians Geikins 8d0cbad8b6 feat(server): multi region blob support (#3653)
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
2024-12-10 09:05:18 +00:00
Gergő Jedlicska 2e3e8bed1d gergo/sendReceiveMultiRegion (#3461)
* feat(webhooks): multi region webhook resolver

* feat(webhooks): multi region webhook cleanup

* fix(webhooks): DI fixes

* feat(activitystream): region aware save activity

* feat(accessrequests): multi region

* feat(cli): allow multi region project and commit download

* feat(postgres): make docker postgres 0 day multi region ready

* feat(cli): allow multi region project and commit download properly

* fix(cross-server-sync): di fix

* feat(activitystream): non region aware activities, they are not project data

* fix(webhooks): triggers need to be included

* feat(stream/projectCreate): activity save is not needed any more, its all event based

* feat(multiRegion): get all registered db clients

* fix(regions): test equal in any order

* feat(objects): use project region for send and receive
2024-11-08 14:46:36 +01:00
Kristaps Fabians Geikins b128d13dbe chore(server): core IoC #103 - validatePermissionsReadStream 2024-10-22 12:16:04 +03:00
Kristaps Fabians Geikins b373e446b3 chore(server): core IoC #97 - getObjectsStreamFactory 2024-10-21 17:49:14 +03:00
Adam Hathcock 86f5c3da2b Add stream destroy where db streams are used on download (#3300) 2024-10-17 11:35:39 +02:00
Iain Sproat 8ed98d8404 chore(diff download): close stream as recommended by knex (#2723) 2024-08-22 10:23:35 +01:00
Iain Sproat 9b09114b2e fix(logging): premature stream close should be info (#2673)
- we want to be able to correlate this behaviour with free connections for the meantime
2024-08-16 12:48:43 +01:00
Iain Sproat 6d6d37b007 fix(server/api/getobjects): handle closing of client stream (#2669) 2024-08-16 09:16:03 +01:00