Renovate Bot
8e7a283624
chore(deps): update dependency ts-loader to v9.2.3
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 15:46:17 +00:00
Renovate Bot
91211e59ee
chore(deps): update dependency prettier to v2.3.1
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 15:45:47 +00:00
Renovate Bot
8de2d872bb
chore(deps): update dependency @types/node to v14.17.2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 15:45:18 +00:00
David Mehren
73802506a0
Merge pull request #1358 from hedgedoc/renovate/develop-mkdocs-material-7.x
...
chore(deps): update dependency mkdocs-material to v7.1.7 (develop)
2021-06-07 17:41:39 +02:00
Renovate Bot
04bc1f41b0
chore(deps): update dependency mkdocs-material to v7.1.7
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 00:18:47 +00:00
David Mehren
72764bf5aa
Merge pull request #1361 from hedgedoc/fix/contributing
...
docs: fix links in CONTRIBUTING.md
2021-06-06 21:35:41 +02:00
Philip Molares
54d7f7e2ef
docs: fix links in CONTRIBUTING.md
...
The links should have used `[]` for the reference, but used `()` instead.
See https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#links
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-06-06 20:33:45 +02:00
David Mehren
0d52de5ecd
Merge pull request #1329 from hedgedoc/renovate/develop-lock-file-maintenance
...
chore(deps): lock file maintenance (develop)
2021-06-01 21:16:58 +02:00
Renovate Bot
dd2ea7ba4e
chore(deps): lock file maintenance
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:50:03 +00:00
David Mehren
7cd613ac83
Merge pull request #1322 from hedgedoc/renovate/develop-major-definitelytyped
...
chore(deps): update dependency @types/node to v14 (develop)
2021-06-01 20:48:52 +02:00
Renovate Bot
3537b4597a
chore(deps): update dependency @types/node to v14
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:45:57 +00:00
David Mehren
663b54cdcd
Merge pull request #1327 from hedgedoc/renovate/develop-ts-node-10.x
...
chore(deps): update dependency ts-node to v10 (develop)
2021-06-01 20:44:07 +02:00
David Mehren
21595934e5
Merge pull request #1345 from hedgedoc/renovate/develop-typeorm-0.x
...
fix(deps): update dependency typeorm to v0.2.33 (develop)
2021-06-01 20:43:20 +02:00
Renovate Bot
eee9412a63
chore(deps): update dependency ts-node to v10
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:40:23 +00:00
Renovate Bot
ca1e6c89bf
fix(deps): update dependency typeorm to v0.2.33
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:39:56 +00:00
David Mehren
d0e3bc028e
Merge pull request #1324 from hedgedoc/renovate/develop-rxjs-7.x
...
fix(deps): update dependency rxjs to v7.1.0 (develop)
2021-06-01 20:37:23 +02:00
David Mehren
83f19d42d0
Merge pull request #1339 from hedgedoc/renovate/develop-file-type-16.x
2021-06-01 20:37:06 +02:00
David Mehren
f05c91582d
Merge pull request #1336 from hedgedoc/renovate/develop-typescript-4.x
...
chore(deps): update dependency typescript to v4.3.2 (develop)
2021-06-01 20:36:27 +02:00
Renovate Bot
2b1a371698
fix(deps): update dependency rxjs to v7.1.0
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:31:50 +00:00
Renovate Bot
49c2a35561
fix(deps): update dependency file-type to v16.5.0
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:31:37 +00:00
Renovate Bot
09a8671409
chore(deps): update dependency typescript to v4.3.2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:31:24 +00:00
David Mehren
41f412725f
Merge pull request #1313 from hedgedoc/renovate/develop-ts-loader-9.x
...
chore(deps): update dependency ts-loader to v9.2.2 (develop)
2021-06-01 20:29:36 +02:00
David Mehren
982666f1c8
Merge pull request #1310 from hedgedoc/renovate/develop-nestjs-packages
...
fix(deps): update nestjs packages to v7.6.17 (develop)
2021-06-01 20:29:10 +02:00
Renovate Bot
c4e368fdfc
chore(deps): update dependency ts-loader to v9.2.2
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:22:22 +00:00
Renovate Bot
d0b157397d
fix(deps): update nestjs packages to v7.6.17
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:22:08 +00:00
David Mehren
a7b417ec51
Merge pull request #1333 from hedgedoc/renovate/develop-definitelytyped
...
chore(deps): update dependency @types/express to v4.17.12 (develop)
2021-06-01 20:18:03 +02:00
David Mehren
59573c73a4
Merge pull request #1332 from hedgedoc/renovate/develop-major-test-packages
2021-06-01 20:17:41 +02:00
David Mehren
0eb03192eb
Update dependency ts-jest to v27
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-06-01 20:11:13 +02:00
Renovate Bot
b79d8b5e98
chore(deps): update dependency jest to v27
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:07:00 +00:00
Renovate Bot
d72716c80a
chore(deps): update dependency @types/express to v4.17.12
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:05:20 +00:00
David Mehren
48781789f6
Merge pull request #1342 from hedgedoc/renovate/develop-mkdocs-material-7.x
2021-06-01 20:03:08 +02:00
Renovate Bot
320fa2b123
chore(deps): update dependency mkdocs-material to v7.1.6
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-05-31 20:44:54 +00:00
David Mehren
3bfde06007
Merge pull request #1344 from hedgedoc/feature/rename_authorship_edit
2021-05-31 22:42:21 +02:00
David Mehren
57d1fc12bf
EditDto: Clarify that the username can be null
...
If the edit was made by a anonymous user, we don't have a username.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 22:16:06 +02:00
David Mehren
09329ae360
Rename NoteAuthorshipDto to EditDto
...
After Authorship was renamed to Edit, the DTO should follow.
The file is also moved to the revisions folder, where the entity
already is.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 22:02:32 +02:00
David Mehren
62e0530d2b
Rename Authorship entity to Edit
...
As we now have a separate Author entity, which holds information
about an author (the color), the Authorship name became confusing.
Edit seems to be a better name, as the entity saves information
about a change in a note.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 21:46:41 +02:00
David Mehren
2b0fa17d03
Merge pull request #1266 from hedgedoc/feature/anonymous_user_colors
2021-05-31 21:31:35 +02:00
David Mehren
ba606902d3
Merge pull request #1326 from hedgedoc/renovate/develop-linters
...
chore(deps): update linters (develop)
2021-05-31 21:16:57 +02:00
David Mehren
4d0205a61f
NotesService: Implement getAuthorUsers
...
This reimplements logic to get all Users that ever edited a note
and fixes the empty `editedBy` property of `toNoteMetadataDto`
introduced in 81cc092e
.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 21:14:06 +02:00
Renovate Bot
4b9e95cc13
chore(deps): update linters
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-05-31 17:49:08 +00:00
David Mehren
5f9f134eb0
Seed: Generate multiple notes and authorships
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 18:44:00 +02:00
David Mehren
b2b3849300
Adjust tests to new Session and Author entities
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 18:44:00 +02:00
David Mehren
20006df82f
AuthorshipEntity: Adjust to DB schema
...
This commit replaces the user property with a author property,
in accordance with the DB schema updated in 0d6c3002
.
It also adjusts the NoteService accordingly.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 18:42:57 +02:00
David Mehren
27c2bfb36f
Add Author property to Session & User
...
The DB schema was updated in 0d6c3002
,
this adds the new author property to
the Session and User entities.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 18:39:33 +02:00
David Mehren
62e442343a
AuthorEntity: Add create method
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 18:19:31 +02:00
David Mehren
228c2941e5
AuthorEntity: Add missing properties
...
This adds the missing properties according to the DB PlantUML schema
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 18:19:31 +02:00
David Mehren
b850d03b5f
UsersModule: Add Session to TypeORM module
...
This seems to have been missed in
db026d6a57
, where the Session entity
was added.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 18:19:31 +02:00
David Mehren
81cc092e51
Remove AuthorColor entity
...
It will be replaced with the Author entity,
that will save the color
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 17:38:58 +02:00
David Mehren
0d6c300254
Allow anonymous user colors in DB schema
...
Every authorship now has an author that saves the color.
The author links to the session and optionally the user.
For anonymous users, the session now can be used to reidentify the user.
If the user is logged-in, the userId is saved into the author table.
This allows to identify the user even after the session expired.
A note created by an anonymous user does not have an owner.
The cardinality was updated to reflect that.
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-31 17:38:58 +02:00
David Mehren
11022c775a
Merge pull request #1338 from SISheogorath/fix/security-note-link
...
Fix link is SECURITY.md
2021-05-27 16:05:24 +02:00