Commit graph

6533 commits

Author SHA1 Message Date
Philip Molares
bd4231c1c5
PrivateApi: Add option to keep media to DELETE /notes/{note}
This adds a body to the route DELETE /notes/{note} of the private api to specify if the associated media uploads of the note should be kept or deleted.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:22:34 +02:00
Philip Molares
b65297523c
MediaService: Add removeNoteFromMediaUpload method
This method replaces the associated note of a media upload with null.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:18:24 +02:00
Philip Molares
41765ac300
MediaUpload: Make note nullable
As it is possible to delete a note without also deleting the associated media uploads this needs to changed in the media upload entity, too.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:17:09 +02:00
Philip Molares
e2469eb441
Notes: Add NoteMediaDeletionDto
This is used to specify if the media uploads should be kept or deleted, when deleting a note.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 01:15:44 +02:00
David Mehren
61321fd992
CI: Run tests with Node.js 16
Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-22 19:08:43 +02:00
Philip Molares
36cd0fd246
RevisionsService: Add missing awaits
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 18:26:19 +02:00
David Mehren
678f69f562
FilesystemBackend: Fix functionContext logging
This commit adds a few missing `functionContext` parameters in calls to
`this.logger` and fixes a copy-paste error in `ensureDirectory`

Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-22 21:58:03 +02:00
Renovate Bot
e7cdc30eff
Update dependency ts-loader to v9.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-22 20:22:10 +00:00
Philip Molares
8a01720ef4
AppConfigMock: Use correct loglevel
Until now the app config mock used ts-loader's LogLevel instead of our own Loglevel, which is obviously wrong.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-22 22:23:59 +02:00
David Mehren
79065b8d3f
Media E2E tests: Add error handling for upload cleanup
Previously, `fs.rmdir` was called multiple times on the same path,
even when the path was already deleted.
This causes test failures in Node 16.

This commit extracts the cleanup code into a utility function
and ensures that no error is thrown when the given path is already deleted.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-22 21:29:23 +02:00
Philip Molares
20f527eb80
GithubWorkflow: Removed build on Node 10
This is not helpful anymore, because node 10 is nearly at the end of its LTS and because ts-loader 9 has node 12 as it minimum supported version and this is a key part of this application.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-20 11:29:20 +02:00
Renovate Bot
380365fc82
Update dependency ts-loader to v9
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-19 22:32:09 +00:00
Renovate Bot
3c45924eb3 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-29 17:56:49 +02:00
Philip Molares
5f449a3f21 add new renovate group for i18next
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-28 22:04:55 +02:00
Renovate Bot
19e2ef19de Update dependency i18next to v20
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 21:10:52 +01:00
Renovate Bot
4d56025bec Update react monorepo to v17.0.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:55:41 +01:00
Renovate Bot
7c95b50ca1 Update dependency vega-embed to v6.17.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:51:03 +01:00
Renovate Bot
f9a2c1137c Update dependency i18next-http-backend to v1.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:49:54 +01:00
renovate[bot]
8374e34286
Update dependency react-redux to v7.2.3 (#1137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Philip Molares <philip.molares@udo.edu>
2021-03-27 20:45:01 +01:00
Renovate Bot
927b6b989c Update typescript-eslint monorepo to v4.19.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:44:36 +01:00
Renovate Bot
b98be0aede Update definitelyTyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 19:29:51 +00:00
Renovate Bot
ead90963a7 Update dependency react-i18next to v11.8.12
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:15:28 +01:00
Renovate Bot
0c347f46a1 Update dependency i18next-browser-languagedetector to v6.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:11:38 +01:00
Renovate Bot
4668457e06 Update dependency abcjs to v6.0.0-beta.31
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:10:30 +01:00
Renovate Bot
40390fd3c5 Update JS test packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:10:00 +01:00
Tilman Vatteroth
d01c8aa283 Change type of LICENSE
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-03-25 21:55:44 +01:00
Renovate Bot
e868aad315 Update dependency codemirror to v5.60.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 21:48:32 +01:00
Renovate Bot
b3c3b87d2f Update markmap
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 13:18:34 +01:00
Renovate Bot
a5f56abc5d Update dependency cypress to v6.8.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-23 16:59:31 +01:00
Renovate Bot
f9e14cceb6 Update dependency highlight.js to v10.7.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-23 15:26:03 +01:00
Renovate Bot
2185808b77 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-22 10:06:18 +01:00
Renovate Bot
e6048765fa Update dependency cypress-file-upload to v5.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-21 23:29:38 +01:00
Philip Molares
1ed22ba4bf
PrivateE2EMe: Add E2E test for private api /me routes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-20 19:01:04 +01:00
Renovate Bot
e4d5e00c4e Update dependency vega-embed to v6.16.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 12:51:50 +01:00
Renovate Bot
075bf0ac45 Update dependency vega to v5.20.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 11:07:21 +01:00
Renovate Bot
0657929c11 Update dependency @testing-library/user-event to v13
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 11:06:33 +01:00
Renovate Bot
ce8ac43e62 Update markmap
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 10:58:16 +01:00
Renovate Bot
c3e902f4fd Update dependency eslint-plugin-flowtype to v5.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 10:50:55 +01:00
Renovate Bot
fdcaf81db0 Update typescript-eslint monorepo to v4.18.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 10:50:19 +01:00
Renovate Bot
3f219d7a2d Update dependency browserstack-cypress-cli to v1.8.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 10:39:44 +01:00
Renovate Bot
c7ba210f13 Update definitelyTyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 10:39:19 +01:00
Renovate Bot
35b548d39a Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 09:05:44 +01:00
Tilman Vatteroth
289117c550 Add symlink for LICENSE
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-03-14 18:55:38 +01:00
Renovate Bot
efb769d4e7 Update typescript-eslint monorepo to v4.17.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 18:14:10 +01:00
Renovate Bot
f841d41cd5 Update dependency ts-loader to v8.0.18
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 18:03:42 +01:00
Renovate Bot
ebe8fcbd7d Update dependency react-use to v17.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 18:03:20 +01:00
Renovate Bot
8e1e569234 Update dependency react-i18next to v11.8.10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 18:02:56 +01:00
Renovate Bot
14e6169f85 Update dependency react-bootstrap to v1.5.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 18:02:38 +01:00
Renovate Bot
8a6743d798 Update dependency mermaid to v8.9.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 18:02:18 +01:00
Renovate Bot
9ab787cadb Update dependency katex to v0.13.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-14 18:01:57 +01:00