Commit graph

297 commits

Author SHA1 Message Date
renovate[bot]
e23f0ff259 fix(deps): update dependency typeorm to v0.3.12
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-25 12:43:27 +01:00
renovate[bot]
da8424abdf chore(deps): update dependency @types/node to v18.15.9
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-25 10:07:12 +01:00
David Mehren
162a8e8816 docs: Move 'User Profiles & Authentication' to design docs
Signed-off-by: David Mehren <git@herrmehren.de>
2023-03-24 20:06:11 +01:00
Philip Molares
e01628cfb0 fix(backend): fix permission routes in NotesController
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-03-24 18:47:23 +01:00
Tilman Vatteroth
a826677225 refactor: save ydoc state in the database, so it can be restored easier
By storing the ydoc state in the database we can reconnect lost clients easier
and enable offline editing because we continue using the crdt data that has been
used by the client before the connection loss.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-24 16:03:55 +01:00
Tilman Vatteroth
3a06f84af1 refactor: reimplement realtime-communication
This commit refactors a lot of things that are not easy to separate.
It replaces the binary protocol of y-protocols with json.
It introduces event based message processing.
It implements our own code mirror plugins for synchronisation of content and remote cursors

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-24 14:06:03 +01:00
renovate[bot]
83754a9b01 fix(deps): update dependency minio to v7.0.33
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-24 13:02:33 +01:00
renovate[bot]
1219d83bc8 chore(deps): update dependency prettier to v2.8.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-24 12:16:22 +01:00
renovate[bot]
c1e085487b chore(deps): update dependency @types/node to v18.15.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-24 12:15:17 +01:00
renovate[bot]
3a441caf5e chore(deps): update dependency @types/node to v18.15.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-23 23:43:57 +00:00
renovate[bot]
f0996c218c chore(deps): update dependency @types/diff to v5.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-23 19:23:15 +01:00
renovate[bot]
9d4a5f45d9 fix(deps): update dependency lib0 to v0.2.73
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-23 19:22:48 +01:00
renovate[bot]
0e88fb5cef fix(deps): update dependency rimraf to v4.4.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-22 21:21:47 +01:00
renovate[bot]
a015655406 fix(deps): update dependency yjs to v13.5.51
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-22 13:53:17 +01:00
renovate[bot]
f2329608cf fix(deps): update nestjs packages to v9.3.12
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-22 13:52:41 +01:00
renovate[bot]
26d8a012e1 fix(deps): update dependency lib0 to v0.2.72
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 14:34:20 +01:00
renovate[bot]
cf6d30acb1 fix(deps): update nestjs packages to v9.3.11
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 13:45:18 +01:00
renovate[bot]
7f537f7617 chore(deps): update dependency prettier to v2.8.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 13:45:04 +01:00
renovate[bot]
18cad5502e fix(deps): update dependency joi to v17.9.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 10:18:49 +01:00
renovate[bot]
b0d182f7fb chore(deps): update typescript-eslint monorepo to v5.56.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 10:01:30 +01:00
renovate[bot]
1bbc0d0f61 chore(deps): update dependency eslint-config-prettier to v8.8.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 10:01:15 +01:00
renovate[bot]
7a77df6c0d fix(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 04:37:15 +00:00
renovate[bot]
64dcc08f95 fix(deps): update dependency lib0 to v0.2.70
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-21 00:43:59 +00:00
renovate[bot]
1f4e7d9466 fix(deps): update dependency joi to v17.9.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-20 17:05:02 +01:00
renovate[bot]
48068e8500 chore(deps): update dependency @types/express-session to v1.17.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-20 11:03:26 +01:00
renovate[bot]
bb87c5f82c chore(deps): update dependency prettier to v2.8.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-20 11:03:16 +01:00
Tilman Vatteroth
229d4a4a1d fix: change sessionstate type to prevent unset values
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-19 22:45:44 +01:00
renovate[bot]
45638b7456 chore(deps): update dependency typescript to v5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-18 22:15:01 +01:00
renovate[bot]
581e3c6ef7 chore(deps): update dependency @nestjs/cli to v9.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-18 14:10:26 +01:00
renovate[bot]
307437d8c3 fix(deps): update dependency lib0 to v0.2.69
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-17 15:01:48 +00:00
renovate[bot]
173406215c chore(deps): update yarn to v3.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-17 09:01:42 +01:00
renovate[bot]
dd10cdf190 chore(deps): update node.js to a67a33f
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-17 03:28:25 +00:00
renovate[bot]
c1b17e58b1 fix(deps): update dependency lib0 to v0.2.68
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-16 20:41:34 +01:00
renovate[bot]
35ba072a91 chore(deps): update dependency @types/jest to v29.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-16 19:28:01 +01:00
renovate[bot]
07f6753110 chore(deps): update dependency @types/jest to v29.4.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-16 01:03:44 +00:00
renovate[bot]
73a29d88cc chore(deps): update dependency @types/jest to v29.4.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-15 21:41:39 +01:00
renovate[bot]
c6cd5bd0d7 fix(deps): update nestjs packages to v9.3.10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-15 15:42:29 +01:00
renovate[bot]
e1e01c0c44 chore(deps): update dependency @types/jest to v29.4.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-15 10:50:43 +01:00
renovate[bot]
ce7d93d1b9 fix(deps): update dependency sqlite3 to v5.1.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 20:23:44 +01:00
renovate[bot]
bb461c65c0 fix(deps): update dependency lib0 to v0.2.67
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 20:23:26 +01:00
renovate[bot]
7a441f3f2a chore(deps): update dependency @types/jest to v29.4.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 16:53:29 +01:00
renovate[bot]
1ad55278b7 chore(deps): update dependency @types/node to v18.15.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 16:38:14 +01:00
renovate[bot]
f294ac6b48 fix(deps): update dependency joi to v17.8.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 16:37:49 +01:00
renovate[bot]
ae1fef26c3 chore(deps): update typescript-eslint monorepo to v5.55.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 16:33:53 +01:00
renovate[bot]
cb9425572a chore(deps): update node.js to d3a3d69
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 06:30:53 +00:00
renovate[bot]
e9fb9a9c6d fix(deps): update dependency sqlite3 to v5.1.5 [security]
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-14 03:12:48 +00:00
renovate[bot]
b832e14890 chore(deps): update dependency @types/node to v18.15.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-13 09:30:38 +01:00
renovate[bot]
92bfb3c476 fix(deps): update dependency pg to v8.10.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 21:57:13 +01:00
renovate[bot]
65b0ffcb1f fix(deps): update dependency ws to v8.13.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 21:57:13 +01:00
renovate[bot]
2a0bba6a7f chore(deps): update dependency @types/node to v18.15.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 21:50:11 +01:00
renovate[bot]
2075dc8103 fix(deps): update dependency rimraf to v4.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 21:06:12 +01:00
renovate[bot]
3ca0e3bfd4 chore(deps): update test packages to v29.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 20:51:41 +01:00
renovate[bot]
c44c8b6477 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 20:51:24 +01:00
renovate[bot]
3b0bcec075 fix(deps): update dependency yjs to v13.5.50
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 14:17:56 +01:00
renovate[bot]
4f1c3a6ebd chore(deps): update typescript-eslint monorepo to v5.54.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 14:14:54 +01:00
renovate[bot]
f56d20e238 fix(deps): update dependency rimraf to v4.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 14:12:18 +01:00
renovate[bot]
b748c444e9 fix(deps): update dependency lib0 to v0.2.66
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 14:00:20 +01:00
renovate[bot]
1c69d3b3e6 chore(deps): update node.js to 4a3a2cc
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-11 06:45:40 +00:00
renovate[bot]
7a7c83d934 chore(deps): update typescript-eslint monorepo to v5.54.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-05 18:38:34 +01:00
renovate[bot]
bae38c21af fix(deps): update dependency rimraf to v4.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-05 18:33:45 +01:00
renovate[bot]
1a78330716 chore(deps): update node.js to 155e324
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-05 18:33:35 +01:00
renovate[bot]
e0144f8769 fix(deps): update dependency yjs to v13.5.48
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-04 13:20:44 +01:00
renovate[bot]
8a09cb8f0d fix(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-04 12:01:02 +01:00
Tilman Vatteroth
86de2924bc fix(docker): fix yarn cache folder
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-02 21:33:14 +01:00
renovate[bot]
7394f274dc chore(deps): update dependency @types/node to v18.14.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-27 01:29:01 +00:00
renovate[bot]
2585fdb981 fix(deps): update dependency @types/minio to v7.0.16
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-26 17:22:12 +00:00
renovate[bot]
a5102954d2 chore(deps): update dependency eslint to v8.35.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-26 12:57:35 +01:00
renovate[bot]
c692ee5273 chore(deps): update dependency @trivago/prettier-plugin-sort-imports to v4.1.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 20:05:40 +01:00
renovate[bot]
565000446e fix(deps): update dependency yjs to v13.5.47
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 19:13:32 +01:00
renovate[bot]
671a53d452 fix(deps): update dependency @azure/storage-blob to v12.13.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 17:38:14 +01:00
renovate[bot]
9b82e0cce7 chore(deps): update typescript-eslint monorepo to v5.53.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 17:37:48 +01:00
renovate[bot]
2e086e1366 fix(deps): update dependency raw-body to v2.5.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 14:00:22 +01:00
renovate[bot]
dac8e943b6 fix(deps): update dependency lib0 to v0.2.63
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 13:59:28 +01:00
renovate[bot]
bb25c6a4c6 fix(deps): update dependency joi to v17.8.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 13:58:49 +01:00
renovate[bot]
d1389c5c54 chore(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 13:47:50 +01:00
renovate[bot]
6b755883bf chore(deps): update node.js to 667dc6e
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-25 12:39:24 +00:00
Erik Michelson
08eaff862d enhancement(dockerfiles): add/update oci labels
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-02-21 13:09:32 +01:00
David Mehren
944304b274 test(setup): use HD_BASE_URL
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
15a691b364 test(public/notes): compare permission lists as Set
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
5fc6265b77 test(public/notes): update tests for default groups
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
679d8a8655 refactor(default-access-level): rename from default-access-permission
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
7233f862f2 test(auth-service): add mock for find
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
ebb8b10804 fix(public/notes-controller): extract canEdit parameter from body
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
976e5671fa test(e2e/public/notes): test permission api
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
068517a73b fix(public/notes-controller): bind setUserPermission to an URL
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
3884d79474 test(e2e/public/notes): enable real auth
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
845861a030 style: fix linting errors
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
1f2cec2f7c test(e2e/public/media): test using real auth
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
ada90ed30b fix: map PermissionError to HTTP Forbidden
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
4271ef740c test: use constant credentials
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
4ade25036e test(setup): set HD_DOMAIN
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
7256717611 test(e2e/private/tokens): check token can't be deleted by wrong user
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
921cffb76f fix(auth-service): typeorm query in getTokensbyUser
TypeORM does not support WHERE queries for relation-colums directly.
This replaces the Equal() constructor with a manual comparison of the IDs.

See https://github.com/typeorm/typeorm/issues/2707

Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
e52cf4b4ae test(e2e/private/media): check upload can't be deleted by wrong user
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
David Mehren
7012f807b8 test: fix URLs in mock config
Signed-off-by: David Mehren <git@herrmehren.de>
2023-02-19 20:56:18 +01:00
renovate[bot]
4720d7c418 fix(deps): update dependency joi to v17.8.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-19 20:39:21 +01:00
renovate[bot]
5ddce7a316 chore(deps): update typescript-eslint monorepo to v5.52.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-19 08:14:22 +01:00
renovate[bot]
6b24399668 chore(deps): update dependency @types/node to v18.14.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-19 08:04:22 +01:00
renovate[bot]
96ebb38893 fix(deps): update nestjs packages to v9.3.9
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-19 00:31:39 +00:00
renovate[bot]
0848792af0 chore(deps): update test packages to v29.4.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-02-18 21:42:18 +00:00