CuriousCorrelation
24c71c38a5
feat: Document subscriptions ( #3834 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-08-25 23:47:13 -07:00
Tom Moor
354a68a8b7
Remove long-deprecated documents.star/documents.unstar
2022-08-25 21:51:34 +02:00
Tom Moor
bb12f1fabb
SocketProvider -> WebsocketProvider
2022-08-25 21:34:54 +02:00
Tom Moor
debadcb711
fix: Wrap websocket handlers in action
...
Separate documents.archive
2022-08-25 21:34:54 +02:00
Tom Moor
d2aea687f3
Remove collection fetch on document delete
2022-08-25 21:34:54 +02:00
Tom Moor
60309975e0
Allow usePolicy to fetch missing policies
2022-08-25 21:34:54 +02:00
Tom Moor
983010b5d8
fix: collections.create event not propagated when initialized with private permissions
2022-08-25 21:34:54 +02:00
Tom Moor
de5524d366
Add tracing around websocket processor
2022-08-25 21:34:54 +02:00
Tom Moor
c62bfc4a60
Separate documents.update event
2022-08-25 21:34:54 +02:00
Tom Moor
7804f33e0d
Separate teams.update event
2022-08-25 21:34:54 +02:00
Tom Moor
d17e6f3432
Separate documents.delete event
2022-08-25 21:34:54 +02:00
Tom Moor
4f1277f912
Separate groups.delete event
2022-08-25 21:34:54 +02:00
Tom Moor
b172da6fdf
Separate collections.delete event
2022-08-25 21:34:54 +02:00
Tom Moor
138bc367dd
types
2022-08-25 21:34:54 +02:00
Tom Moor
864f585e5b
chore: Remove long deprecated database columns ( #3821 )
...
* chore: Remove long deprecated database columns
* test
* Update 20220720221531-remove-deprecated-columns.js
* fix rollback
* Add guard for upgrading past v0.54.0
2022-08-25 11:52:01 -07:00
Tom Moor
a869ab7609
fix: Improve error messaging when file cannot be fetched for import
...
related #4006
2022-08-24 21:25:19 +02:00
Tom Moor
421312b845
Possible fix for #3986
2022-08-22 09:47:47 +02:00
Tom Moor
f1bd4a5b31
Merge branch '3991-add-explicit-timeouts-to-requests'
2022-08-22 09:21:22 +02:00
Tom Moor
72b0e78788
fix: Validate uuid on attachments.create endpoint
2022-08-20 23:46:01 +02:00
Tom Moor
8302840ab5
feat: Add timeout to incoming requests
2022-08-19 08:14:11 +02:00
Tom Moor
f32f07cdcc
chore: Refactor user activation to command
2022-08-18 11:24:27 +02:00
Tom Moor
f620a9d34c
fix: Cannot start without --services argument, regressed in 41d7cc26b5
...
closes #3984
2022-08-18 09:48:28 +02:00
Tom Moor
7113b5f604
fix: Restore user deletion through API, increase rate limit
2022-08-17 22:40:00 +02:00
Tom Moor
41d7cc26b5
chore: Adds name to Redis connections for debugging ( #3982 )
...
* chore: Adds name to Redis connections for debugging, minor associated refactoring
* Upgrade bull, ioredis
* Add pid to redis connection name in development
2022-08-17 12:55:57 -07:00
Tom Moor
e57941732a
fix: emoji column no longer filled in db, simplified state length validation
2022-08-16 22:05:10 +02:00
Tom Moor
85dab03820
docs
2022-08-16 19:43:50 +02:00
Tom Moor
ed8176ca7d
fix: Limit ws payload size
2022-08-16 10:27:55 +02:00
Tom Moor
cfa7ecd7f8
fix: Add missing validation to document state
2022-08-16 09:35:31 +02:00
Apoorv Mishra
7a758f84a0
chore: refactor server test setup ( #3976 )
...
* chore: refactor server test setup
* Close dangling redis connections instead of mocking rate limiter
specific modules
* Segregate pre and post env test setup
* fix: remove mock file
2022-08-16 09:16:57 +05:30
Tom Moor
4d0473c22c
Reference email image by cid for self hosted instances ( #3957 )
2022-08-14 08:50:49 -07:00
Tom Moor
a326e0ee88
chore: Rate limiter audit ( #3965 )
...
* chore: Rate limiter audit api/users
* Make requests required
* api/collections
* Remove checkRateLimit on FileOperation (now done at route level through rate limiter)
* auth rate limit
* Add metric logging when rate limit exceeded
* Refactor to shared configs
* test
2022-08-14 08:04:04 -07:00
Tom Moor
9338328a82
fix: Add expiry to socket<->user mapping in Redis
2022-08-13 22:26:13 +02:00
Tom Moor
7deda03000
test: Fix test memory leakage by mocking RateLimiter
2022-08-12 15:14:58 +02:00
Apoorv Mishra
0c51bfb899
perf: reduce memory usage upon running server tests ( #3949 )
...
* perf: reduce memory usage upon running server tests
* perf: plug leaks in server/routes
* perf: plug leaks in server/scripts
* perf: plug leaks in server/policies
* perf: plug leaks in server/models
* perf: plug leaks in server/middlewares
* perf: plug leaks in server/commands
* fix: missing await on db.flush
* perf: plug leaks in server/queues
* chore: remove unused legacy funcs
* fix: await on db.flush
* perf: await on GC to run in between tests
* fix: remove db refs
* fix: revert embeds
* perf: plug leaks in shared/i18n
2022-08-11 21:39:17 +05:30
akp
8e1f42a9cb
Add optional export notifications ( #3935 )
...
* Add `emails.export_completed` notification to settings menu
Signed-off-by: AKP <tom@tdpain.net >
* Don't send email when export_completed notifications are disabled
Signed-off-by: AKP <tom@tdpain.net >
* Automatically subscribe new users to `export_completed` notifications
Signed-off-by: AKP <tom@tdpain.net >
* Alter secondary text on export page to mention optional notifications
Signed-off-by: AKP <tom@tdpain.net >
* Alter toast text on collection export for optional notifications
Signed-off-by: AKP <tom@tdpain.net >
* Only subscribe new admins to export notifs
Signed-off-by: AKP <tom@tdpain.net >
* Move `export_completed` notification decision into `beforeSend`
Signed-off-by: AKP <tom@tdpain.net >
* Update server/emails/templates/ExportFailureEmail.tsx
Co-authored-by: Tom Moor <tom.moor@gmail.com >
* Update server/emails/templates/ExportSuccessEmail.tsx
Co-authored-by: Tom Moor <tom.moor@gmail.com >
Signed-off-by: AKP <tom@tdpain.net >
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-08-11 07:31:35 -07:00
Tom Moor
1d242d44b1
chore: Add eslint rule for object shorthand ( #3955 )
2022-08-11 05:18:14 -07:00
Apoorv Mishra
7eaa8eb961
feat: Put request rate limit at application server ( #3857 )
...
* feat: Put request rate limit at application server
This PR contains implementation for a blanket rate limiter at
application server level. Currently the allowed throughput is set high
only to be changed later as per the actual data gathered.
* Simplify implementation
1. Remove shutdown handler to purge rate limiter keys
2. Have separate keys for default and custom(route-based) rate limiters
3. Do not kill default rate limiter because it is not needed anymore due
to (2) above
* Set 60s as default for rate limiting window
* Fix env types
2022-08-11 15:40:30 +05:30
Tom Moor
593cf73118
test: Update jest configuration ( #3951 )
...
* Split shared tests
* Centralize and parallelize jest config
* ci
2022-08-10 13:26:36 -07:00
dependabot[bot]
6a5d6ee3db
chore(deps): bump oy-vey from 0.10.0 to 0.11.2 ( #3902 )
...
* chore(deps): bump oy-vey from 0.10.0 to 0.11.2
Bumps [oy-vey](https://github.com/oysterbooks/oy ) from 0.10.0 to 0.11.2.
- [Release notes](https://github.com/oysterbooks/oy/releases )
- [Changelog](https://github.com/revivek/oy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/oysterbooks/oy/compare/0.10.0...0.11.2 )
---
updated-dependencies:
- dependency-name: oy-vey
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* tsc
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-08-08 07:02:41 -07:00
Tom Moor
e97cc61e2f
test: Mock bull, fix setInterval capturing memory in tests
...
Towards #3939
2022-08-08 13:15:06 +02:00
Tom Moor
71c9fcf59b
test: Avoid creation of new server/app instance for each route test
2022-08-08 12:06:54 +02:00
Tom Moor
b45e6c504f
fix: Prevent webhook delivery for deleted teams
2022-08-08 11:15:04 +02:00
Tom Moor
1b00d51c74
fix: Check WebhookSubscription is not disabled before delivery attempt
2022-08-08 11:10:10 +02:00
Tom Moor
7923a7e071
Enforce user invites/request on server
2022-08-08 11:02:37 +02:00
Tom Moor
b37a848914
Add limit of 10 webhooks/team
2022-08-08 10:58:47 +02:00
Nan Yu
74d9409cc3
fix: refactor auth flow to explicitly pass in a host ( #3909 )
...
* fix: refactor auth flow to explicitly pass in a host
* add new error handler to all SSO providers
* refactor passport error into middleware
2022-08-04 02:00:52 -07:00
Apoorv Mishra
0a6cfe5a6a
feat: Choose random color on collection creation ( #3912 )
...
Choose a random color from a shared color palette between backend
and frontend during collection creation.
2022-08-04 01:48:19 -07:00
Tom Moor
cb9773ad85
chore: Add emailed confirmation code to account deletion ( #3873 )
...
* wip
* tests
2022-07-31 10:59:40 -07:00
Tom Moor
383bac241e
fix: Suppress ForbiddenError in error tracker
2022-07-26 23:18:26 +01:00
Tom Moor
ea28dc46eb
fix: Error in WebhookProcessor when team is permanatly destroyed
2022-07-26 22:33:48 +01:00