Commit graph

369 commits

Author SHA1 Message Date
David Mehren
8aca83e656
Add coverage analysis to CI workflow
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-06 12:38:33 +01:00
David Mehren
890e9c942b
Fix prettier errors
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-05 23:11:31 +01:00
David Mehren
7960776bd1
Add CI workflow
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-05 23:02:12 +01:00
Philip Molares
f57e4efcf0
used correct branch for reuse workflow
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-05 23:35:46 +01:00
Philip Molares
223e58f958
changed license of doc images
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-05 22:49:21 +01:00
Philip Molares
6e855b657f
added idea copyright information
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-05 22:48:58 +01:00
Philip Molares
03a81fb6c0
added reuse workflow
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-05 22:13:01 +01:00
Philip Molares
dc63c76f43
added reuse information
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-05 22:12:38 +01:00
Renovate Bot
4746058765
Pin dependencies
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-01-05 22:12:43 +00:00
Tilman Vatteroth
ce0e85d089
Change label used by renovate to "type: maintenance"
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
(cherry picked from commit 8600c2dae6)
2020-11-30 18:07:54 +01:00
David Mehren
7bb52921e2
Renovate: Enable sign-off
Signed-off-by: David Mehren <git@herrmehren.de>
(cherry picked from commit 087f0a7c98)
2020-11-17 14:52:40 +01:00
David Mehren
e65cc02442
Renovate: Disable major updates
We won't do any major updates for 1.7 release anyway.

Signed-off-by: David Mehren <git@herrmehren.de>
(cherry picked from commit c479ab0d59)
2020-11-17 14:36:07 +01:00
David Mehren
5d32b15521
Renovate: Group various packages
Signed-off-by: David Mehren <git@herrmehren.de>
(cherry picked from commit 63654aa910)
2020-11-17 14:27:01 +01:00
Renovate Bot
d498e8f0ca
Add renovate.json
Signed-off-by: Renovate Bot <bot@renovateapp.com>

(cherry picked from commit ed44a40c10)
2020-11-17 13:02:04 +00:00
Tilman Vatteroth
b386737d08
Move docs into subdirectory to make mkdocs work in a subdirectory
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

(cherry picked from commit eaeb88401d)
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-04 13:07:44 +01:00
Philip Molares
1c6da01fa7
Link to the contribution documentation explicitly
Co-authored-by: David Mehren <git@herrmehren.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>

(cherry picked from commit c7def38ba4)
Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-21 16:48:18 +01:00
David Mehren
bedbcc1150
Update issue templates to use the new labels
Signed-off-by: David Mehren <git@herrmehren.de>
(cherry picked from commit eb727810b5)
2020-12-01 21:11:00 +01:00
David Mehren
f41c29f77d
Update readme and contribution docs for 2.0 development
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-04 14:54:19 +01:00
David Mehren
4059ad6834
Improve CONTRIBUTING.md
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>

(cherry picked from commit f77f9fac19)
Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-18 12:56:59 +01:00
David Mehren
8bc66bd81a
Direct questions to the community forum
Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-15 11:47:44 +01:00
Philip Molares
07988d638b
Update .github/ISSUE_TEMPLATE/bug_report.md
Co-authored-by: David Mehren <git@herrmehren.de>
2020-11-14 21:38:02 +01:00
Philip Molares
e44a20a490
Update .github/ISSUE_TEMPLATE/feature_request.md
Co-authored-by: David Mehren <git@herrmehren.de>
2020-11-14 21:37:57 +01:00
Jonas Zohren
eb5ae92569
Add templates for issues and PRs
Signed-off-by: Jonas Zohren <15788906+jfowl@users.noreply.github.com>
2020-11-12 19:38:14 +01:00
David Mehren
c95c68541c
Fix tests
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 21:11:16 +02:00
David Mehren
c0527c0942
Remove PUT /notes/{note}/metadata and corresponding service code
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 21:11:06 +02:00
David Mehren
80e4d029f7
DB Schema: Make layout pretty
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 20:55:31 +02:00
David Mehren
520046f8d4
Remove NoteUtils class, as the planned parsing logic is not needed anymore
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 17:36:01 +02:00
David Mehren
a04d5b29f9
Add missing TagRepository provider in unit tests
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 17:24:42 +02:00
David Mehren
9152f05c61
Add E2E tests for note metadata routes
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 16:45:04 +02:00
David Mehren
67cd8cb0f6
NotesController: Add PUT :noteIdOrAlias/metadata route
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 15:53:30 +02:00
David Mehren
08fd070bcb
NotesService: Implement updateNoteMetadata
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 15:52:49 +02:00
David Mehren
6541cfda4e
NoteEntity: Enable eager loading and cascades for tags
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 15:37:57 +02:00
David Mehren
99ab9f04c2
NotesService: Get metadata from database
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 11:27:15 +02:00
David Mehren
7d5dddaaaf
Add note metadata properties and Tag entity.
These were planned to be parsed at runtime from the note-content in the database, but having to run a markdown parser in the backend was found to be a bad idea. Now the frontend (that already implements the parsing logic) has to set title, description and tags.

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 11:17:07 +02:00
David Mehren
990742e569
Note.alias should be optional in db schema
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 11:14:41 +02:00
David Mehren
566e95f95d
Add note metadata to db schema
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 11:02:03 +02:00
David Mehren
e30b16d91d
Public API: Cleanup history schemas
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 19:39:34 +02:00
David Mehren
d43bca69b8
Public API: NoteRevisionsMetadata is not an array
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 19:39:05 +02:00
David Mehren
2302667787
Public API: Remove PUT /notes/{note}/metadata
The note metadata will be automatically extracted from the note content and cannot be updated separately.

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 19:25:15 +02:00
David Mehren
c685bd8e50
Public API: Fix PUT /notes/{note}/permissions response
This route should return a full `NotePermissions` object instead of only `NotePermissionsUpdate`

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 18:08:31 +02:00
David Mehren
cae430f25f
Public API: Update description of /notes/{note} POST and PUT routes.
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 14:51:22 +02:00
David Mehren
ad676ce6ff
NoteMetadataDto: Rename permission to permissions
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 14:45:04 +02:00
David Mehren
fe5f9bc9c3
Public API: Successful POST requests should result in a 201.
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 14:40:51 +02:00
David Mehren
ee0d85bc85
Public API: Simplify PUT /me/history/{note}
Previously, one had to send a complete `NoteMetadata` object when updating the pinned status of a note. A new `HistoryUpdateObject` type was introduced, that only contains the pinned status boolean.

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 12:49:50 +02:00
David Mehren
2c9ccad8e5
Public API: Split-out a /notes/{note}/permissions route to set only permissions
Previously, the metadata route was used to both update note metadata (like title, description and tags) and the permissions. Additionally, one had to send many unchangeable properties. In this commit, a /notes/{note}/permissions route is introduced, that only changes permissions. Additionally, PUT /notes/{note}/metadata now needs only the properties that are actually changeable.

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 12:46:28 +02:00
David Mehren
713e2ada31
Update NotePermissionsUpdate DTOs to be aware of groups
The NotePermissionsUpdateDto was not updated when group permissions were introduced.

Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-03 12:42:14 +02:00
David Mehren
2980f3a244
Update dependencies
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-24 23:02:05 +02:00
David Mehren
7563eb703d
Public API: Add routes to get uploads by user or note
Co-authored-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-24 21:48:29 +02:00
David Mehren
4f60a79e4b
Use unique sqlite file for every E2E test
Previously, this lead to locking errors, when multiple test runners accessed the same database and tried to clear it or tried to insert new test data.

Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-24 12:30:23 +02:00
David Mehren
ff0651e659
FilesystemBackend: Ensure uploads directory exists
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-24 12:28:52 +02:00