Commit graph

405 commits

Author SHA1 Message Date
Tilman Vatteroth
b199cdba67 test: increase coverage of constructor tests
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 12:33:09 +02:00
Tilman Vatteroth
2f59869e12 fix: retrieve read-only state for realtime user status adapter from connection
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 12:33:09 +02:00
Tilman Vatteroth
f012282a41 fix: restore of test state
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 12:33:09 +02:00
Tilman Vatteroth
02a3b7f07b refactor: make displayName readonly
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 12:33:09 +02:00
Tilman Vatteroth
3c1ea7bda9 fix: allow change of accept edits in realtime connection
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 12:33:09 +02:00
Tilman Vatteroth
eebbb79d08 fix: retrieve read-only state for y-doc-sync-server-adapter from connection
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-09 12:33:09 +02:00
renovate[bot]
0dcfb0524c chore(deps): update dependency @types/node to v18.16.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-09 11:30:41 +02:00
renovate[bot]
efb96bd259 fix(deps): update dependency node-fetch to v2.6.10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-08 21:58:37 +02:00
renovate[bot]
6698f49af5 chore(deps): update typescript-eslint monorepo to v5.59.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-08 21:48:54 +02:00
Yannick Bungers
ed3c688e8b refactor: extract mocking in permissions.service.spec.ts
Signed-off-by: Yannick Bungers <git@innay.de>
2023-05-07 20:45:15 +02:00
Yannick Bungers
d73bbcaeff fix: increase test coverage
Signed-off-by: Yannick Bungers <git@innay.de>
2023-05-07 20:45:15 +02:00
Yannick Bungers
dad60a25ea fix: change logging from id to publicId in media upload
Signed-off-by: Yannick Bungers <git@innay.de>
2023-05-07 20:45:15 +02:00
Yannick Bungers
c20e20b30a refactor: exclude create permission from note permission check
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 20:45:15 +02:00
Yannick Bungers
fad5e1e22e test: add private api tests for checkPermissionOnNote and checkMediaDeletePermission
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 20:45:15 +02:00
Yannick Bungers
001a49329c refactor: extract permission checking from controllers and guard
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 20:45:15 +02:00
Yannick Bungers
485f7cd338 feat: Add guest file uploads and add deletion for note owners
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 20:45:15 +02:00
Yannick Bungers
0f464dedfe fix: clean up decorators in the public notes.controller.ts
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 20:45:15 +02:00
Yannick Bungers
d369132519 fix: add CompleteRequest type to have better type checks for HTTP-Request attribute injection.
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 20:45:15 +02:00
Tilman Vatteroth
0263c09ce1 fix(deps): migrate zxcvbn
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 19:37:41 +02:00
renovate[bot]
2c3e8662f3 fix(deps): update dependency @zxcvbn-ts/language-common to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-07 19:37:41 +02:00
renovate[bot]
53e3be7448 fix(deps): update dependency @zxcvbn-ts/core to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-07 19:37:41 +02:00
renovate[bot]
894f65d5ca fix(deps): update dependency @zxcvbn-ts/language-en to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-07 19:18:47 +02:00
renovate[bot]
d734163e5f chore(deps): update dependency eslint to v8.40.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-06 17:29:35 +02:00
renovate[bot]
c9d0201452 chore(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-06 17:29:20 +02:00
renovate[bot]
a21fef5956 chore(deps): update dependency @types/node to v18.16.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-05 08:28:21 +00:00
renovate[bot]
a637556832 chore(deps): update node.js to 6e56967
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-05 08:08:08 +00:00
Tilman Vatteroth
e02221acd2 fix: don't create user permissions for owner
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-04 22:34:24 +02:00
Tilman Vatteroth
825b3b72ff test: add e2e tests for note permissions
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-04 22:34:24 +02:00
renovate[bot]
122d3e6354 fix(deps): update dependency yjs to v13.6.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-04 17:24:04 +02:00
Tilman Vatteroth
a5e12b9ad0 fix(backend): fix extraction body values in permission controllers
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-05-04 14:54:37 +02:00
renovate[bot]
9d5ec78696 chore(deps): update node.js to 1d34273
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-03 09:05:57 +00:00
renovate[bot]
993d0e8b7e chore(deps): update yarn to v3.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-02 05:55:25 +00:00
renovate[bot]
d1df704d22 chore(deps): update typescript-eslint monorepo to v5.59.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-02 02:40:39 +00:00
renovate[bot]
1e4c64afaf chore(deps): update dependency @types/node to v18.16.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-29 10:49:09 +02:00
renovate[bot]
0645af761f fix(deps): update dependency minio to v7.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-28 21:51:28 +02:00
renovate[bot]
291ed7c706 chore(deps): update dependency @types/node to v18.16.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-28 06:21:46 +00:00
renovate[bot]
8aea44ad4d fix(deps): update dependency rxjs to v7.8.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-27 07:03:52 +00:00
renovate[bot]
026609902b chore(deps): update dependency @types/node to v18.16.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-26 05:26:21 +00:00
renovate[bot]
2496b983eb fix(deps): update dependency joi to v17.9.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-25 09:31:31 +02:00
renovate[bot]
138278bb13 chore(deps): update typescript-eslint monorepo to v5.59.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-25 09:31:21 +02:00
renovate[bot]
4e8d79d5b4 chore(deps): update dependency @nestjs/cli to v9.4.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-24 13:17:55 +02:00
renovate[bot]
f5665629af chore(deps): update node.js to v20
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-24 12:44:53 +02:00
renovate[bot]
745247c04f chore(deps): update dependency eslint to v8.39.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-23 20:25:57 +02:00
renovate[bot]
fa7b262ad1 fix(deps): update dependency yjs to v13.6.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-23 20:25:43 +02:00
renovate[bot]
a942c374b8 chore(deps): update dependency @types/node to v18.16.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-23 20:25:26 +02:00
renovate[bot]
777e9d7015 chore(deps): update dependency prettier to v2.8.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-23 14:46:32 +00:00
renovate[bot]
4c1beef1c9 chore(deps): update dependency @nestjs/cli to v9.4.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-21 18:14:56 +00:00
renovate[bot]
5f0927bf9b chore(deps): update dependency @types/node to v18.15.13
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-21 13:08:27 +00:00
renovate[bot]
ab3e206081 chore(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-20 16:19:07 +02:00
renovate[bot]
d5d8112e8c chore(deps): update dependency @types/jest to v29.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-19 16:16:10 +02:00
renovate[bot]
b962676dad fix(deps): update dependency yjs to v13.5.53
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-19 16:15:35 +02:00
renovate[bot]
d47da83391 chore(deps): update dependency @tsconfig/node18 to v2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-18 18:27:50 +02:00
renovate[bot]
07c7c97b86 chore(deps): update typescript-eslint monorepo to v5.59.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 10:19:15 +02:00
renovate[bot]
5a8026bc90 chore(deps): update dependency @tsconfig/node18 to v1.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 07:37:52 +00:00
Avinash
bb7a6a74f7 refactor(backend): create mock function for noteRepo and eventemiter
Signed-off-by: Avinash <avinash.kumar.cs92@gmail.com>
2023-04-16 20:55:26 +02:00
Tilman Vatteroth
0950e036b0 refactor(s3-backend): use URL object to construct complete URL instead of string template
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 18:41:03 +02:00
Tilman Vatteroth
b6db47a9c2 test(s3-backend): add unit test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 18:41:03 +02:00
Tilman Vatteroth
e8d4fc692d fix(s3-backend): remove redundant parameter
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 18:41:03 +02:00
Tilman Vatteroth
baaa41b1e5 fix(media config): expect HD_MEDIA_BACKEND_S3_ENDPOINT to be an uri
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 18:41:03 +02:00
Tilman Vatteroth
3c2f59c382 fix(s3-backend): force endpoint to be a uri
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 18:41:03 +02:00
Tilman Vatteroth
2016874a3d fix(s3-backend): let minio lib handle the port fallback
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 18:41:03 +02:00
Tilman Vatteroth
a72f695124 fix(s3-backend): correct endpoint
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-16 18:41:03 +02:00
renovate[bot]
165cd4c7a3 fix(deps): update dependency typeorm to v0.3.15
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-16 14:40:34 +02:00
renovate[bot]
3529e68511 fix(deps): update dependency @azure/storage-blob to v12.14.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-14 09:43:42 +02:00
renovate[bot]
f47b3c8f12 chore(deps): update dependency @nestjs/cli to v9.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-13 14:40:35 +02:00
Tilman Vatteroth
4bd6c1f359 fix: add .env file symlinks
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-13 10:39:17 +02:00
renovate[bot]
8e8a7ea21a chore(deps): update node.js to 53741c7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-12 06:32:11 +00:00
renovate[bot]
1c58a732e4 chore(deps): update typescript-eslint monorepo to v5.58.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-10 20:48:24 +02:00
renovate[bot]
cb03442f5f fix(deps): update dependency rimraf to v5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-10 11:27:52 +02:00
renovate[bot]
2e275652c2 fix(deps): update dependency typeorm to v0.3.14
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-09 13:20:39 +02:00
renovate[bot]
2f200078ef chore(deps): update dependency eslint to v8.38.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-08 14:53:57 +02:00
renovate[bot]
143da53e46 chore(deps): update dependency typescript to v5.0.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-07 22:21:41 +02:00
Philip Molares
2fc89a7de5 feat: don't let read-only users send their cursors or selections
This was done as it may be used to distract or annoy other users either intentionally or unintentionally.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-06 22:54:50 +02:00
Philip Molares
c2f41118b6 feat: check permissions in realtime code and frontend
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-06 22:54:50 +02:00
renovate[bot]
ca586413d2 fix(deps): update dependency typeorm to v0.3.13
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-06 14:34:21 +00:00
renovate[bot]
5b87029312 fix(deps): update nestjs packages to v9.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-05 18:29:11 +02:00
renovate[bot]
e89f7757a3 fix(deps): update dependency @nestjs/schedule to v2.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-04 21:17:35 +02:00
Tilman Vatteroth
6fb58d56c2 fix: add missing tests for realtime-user-status-adapter
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-04 18:29:20 +02:00
Tilman Vatteroth
2a2d3756ad refactor: test code of realtime
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-04-04 18:29:20 +02:00
renovate[bot]
5d9e220e1f chore(deps): update typescript-eslint monorepo to v5.57.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-03 20:20:47 +02:00
renovate[bot]
266eaf29e6 chore(deps): update dependency ts-jest to v29.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-03 20:06:05 +02:00
renovate[bot]
84ab3ecc58 fix(deps): update dependency yjs to v13.5.52
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 17:08:10 +00:00
Tilman Vatteroth
15374acb93 fix(backend): throw error if key in param decorator is not defined
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-31 15:43:28 +02:00
renovate[bot]
ae58cab019 chore(deps): update dependency typescript to v5.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-31 15:43:28 +02:00
renovate[bot]
f3de6a50dc chore(deps): update nestjs packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-31 15:22:31 +02:00
renovate[bot]
45d379680a chore(deps): update node.js to ce9dd01
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-30 14:18:28 +00:00
renovate[bot]
a31810fe8b chore(deps): update node.js to fcf4e6f
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-30 09:07:44 +02:00
renovate[bot]
b8ae513007 chore(deps): update dependency tsconfig-paths to v4.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-30 09:05:54 +02:00
renovate[bot]
69ea23dca7 chore(deps): update node.js to c662fff
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-30 03:26:46 +00:00
renovate[bot]
214c829ef9 fix(deps): update dependency @types/minio to v7.0.18
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-29 21:42:52 +02:00
renovate[bot]
d0f2b0a471 chore(deps): update dependency eslint to v8.37.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-29 15:09:22 +02:00
renovate[bot]
2f1c6d3033 chore(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-29 02:25:00 +02:00
Tilman Vatteroth
598fc8ee11 feat(realtime): synchronize and show realtime activity state
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-29 01:16:43 +02:00
Tilman Vatteroth
5299b569f7 fix(backend): keep log output in dev mode
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-28 11:34:05 +02:00
renovate[bot]
4d749fb480 chore(deps): update typescript-eslint monorepo to v5.57.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-27 19:58:01 +02:00
David Mehren
f238b216f9 build: use node18 tsconfig preset
Because of https://github.com/typeorm/typeorm/pull/9884, we need to manually disable useDefineForClassFields

Signed-off-by: David Mehren <git@herrmehren.de>
2023-03-26 20:21:46 +02:00
Tilman Vatteroth
8fc59aad82 refactor: make permission service less complex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-26 20:21:13 +02:00
Tilman Vatteroth
0f8effd318 fix: use correct body parameter for permission controller
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-26 20:21:13 +02:00
David Mehren
f7f052fca1 refactor: use separate env vars for frontend/backend port
As we moved to a combined .env file for simplicity, frontend and backend need to be configured with separate variables.

Signed-off-by: David Mehren <git@herrmehren.de>
2023-03-26 15:53:49 +02:00
David Mehren
55f3bd9b60 refactor: move .env file to repo root
Signed-off-by: David Mehren <git@herrmehren.de>
2023-03-26 15:53:49 +02:00