Commit graph

826 commits

Author SHA1 Message Date
Renovate Bot
25150cdd04
chore(deps): update dependency mkdocs-material to v7.1.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-12 12:43:29 +00:00
Renovate Bot
5789070265
chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-10 19:31:18 +00:00
Renovate Bot
c5f1e238d0
chore(deps): update dependency mkdocs to v1.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 17:36:20 +00:00
Renovate Bot
65e69f464b
fix(deps): update dependency @azure/storage-blob to v12.6.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 07:13:36 +00:00
Renovate Bot
a5b1c51cc0
chore(deps): update dependency @tsconfig/node12 to v1.0.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 09:13:56 +00:00
Renovate Bot
a1c9227af4
chore(deps): update dependency @types/node to v14.17.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-08 21:12:15 +00:00
Renovate Bot
33949aed6c
chore(deps): update dependency mkdocs to v1.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 17:22:10 +00:00
Renovate Bot
9180b2e5aa
chore(deps): update linters to v4.26.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 17:17:11 +00:00
Renovate Bot
2095212b5e
chore(deps): update dependency ts-jest to v27.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 17:12:54 +00:00
Renovate Bot
2501583477
chore(deps): update dependency jest to v27.0.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 17:08:07 +00:00
Renovate Bot
db2af06b53
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
Renovate Bot
cd82f2e17e
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
e2b5417d51
chore(deps): update dependency eslint to v7.28.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 15:46:45 +00:00
Renovate Bot
b1c868ac10
fix(deps): update dependency typeorm to v0.2.34
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-07 15:46:31 +00:00
Renovate Bot
53aa2f23e8
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
cc12d35ddf
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
Philip Molares
a1acbe1191
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
Renovate Bot
e9a517dab3
chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:50:03 +00:00
Renovate Bot
dc92552f03
chore(deps): update dependency @types/node to v14
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 18:45:57 +00:00
Renovate Bot
805c6afde9
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
510ee82a67
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
Renovate Bot
94d89419b5
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
1a2610a05e
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
43b283871b
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
Renovate Bot
af20b940ce
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
db9312a88a
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
Renovate Bot
fcb69776b9
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
d3424d4096
Update dependency ts-jest to v27
Signed-off-by: David Mehren <git@herrmehren.de>
2021-06-01 20:10:06 +02:00
Renovate Bot
3db49e8535
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
25851f7a8d
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
43f887b4c1
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:04:59 +02:00
David Mehren
1b1e232476
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
b2d37abf6c
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
5846ca75a9
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-24 21:58:44 +02:00
David Mehren
6abcb686ca
Seed: Generate multiple notes and authorships
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-19 21:09:15 +02:00
David Mehren
f6d430c23f
Adjust tests to new Session and Author entities
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-17 22:28:35 +02:00
David Mehren
3d07c5e443
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-19 22:12:25 +02:00
David Mehren
8040f47d00
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
1dc6db24a9
AuthorEntity: Add create method
Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-19 22:12:00 +02:00
David Mehren
4e14053f8f
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:11:48 +02:00
David Mehren
59a4c72299
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:15:10 +02:00
David Mehren
283ec673cf
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-17 21:08:13 +02:00
David Mehren
fddb7e8c8c
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-04-29 18:07:06 +02:00
Renovate Bot
4205856b41
chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-05-31 17:49:08 +00:00
Sheogorath
3672a42fc0
Fix link is SECURITY.md
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2021-05-27 15:18:09 +02:00
David Mehren
9e5d95657d
Move publicID creation to Note.create
Before this commit, `Note.create()` did not return a complete object,
as the `publicId` property was missing.
This adds the generation of the property to the `create` method and
moves the actual generation code from the `NotesService`
to a utility method.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-05-19 21:19:08 +02:00
Renovate Bot
0aa27e01b0
chore(deps): update dependency mkdocs-material to v7.1.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-05-19 09:14:00 +00:00
Philip Molares
0f58757858
chore(test): Change test to work with publicId
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-05-16 22:46:02 +02:00
Philip Molares
b7e52f8166
feat(notes): Use publicId in notes service
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-05-16 22:44:43 +02:00
Philip Molares
e1ac2cfa69
chore(dependency): Add base32-encode
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-05-17 07:59:51 +02:00