Commit graph

2904 commits

Author SHA1 Message Date
Philip Molares
6896daa62a added reuse information
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-05 22:12:38 +01:00
David Mehren
2701a12092
Merge pull request #660 from hedgedoc/cherry-picks-from-master
Cherry-Picks from master & cleanups
2021-01-05 21:47:31 +01:00
Tilman Vatteroth
e86551b266
Change label used by renovate to "type: maintenance"
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
(cherry picked from commit 8600c2dae6)
2021-01-05 21:30:38 +01:00
David Mehren
7473f0be86
Renovate: Enable sign-off
Signed-off-by: David Mehren <git@herrmehren.de>
(cherry picked from commit 087f0a7c98)
2021-01-05 21:30:38 +01:00
David Mehren
78d4d47dc8
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)
2021-01-05 21:30:38 +01:00
David Mehren
810b4cf022
Renovate: Group various packages
Signed-off-by: David Mehren <git@herrmehren.de>
(cherry picked from commit 63654aa910)
2021-01-05 21:30:38 +01:00
Renovate Bot
e4e024dc29
Add renovate.json
Signed-off-by: Renovate Bot <bot@renovateapp.com>

(cherry picked from commit ed44a40c10)
2021-01-05 21:30:38 +01:00
Tilman Vatteroth
4b7318ca33
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-05 21:09:18 +01:00
David Mehren
a5ad35f94d
Delete old sources
To reduce confusion, we should not have the old code in this branch

Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-05 20:31:27 +01:00
David Mehren
0ffe7d155c
Delete translation files
We only translate the frontend, so these are not needed anymore in the backend.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-05 20:24:49 +01:00
Philip Molares
28f3580e9e
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>
2021-01-05 20:20:53 +01:00
David Mehren
4a5e1f889c
Update issue templates to use the new labels
Signed-off-by: David Mehren <git@herrmehren.de>
(cherry picked from commit eb727810b5)
2021-01-05 20:19:20 +01:00
David Mehren
afb98e1020
Merge pull request #652 from hedgedoc/develop-branch-docs 2021-01-05 16:24:45 +01:00
David Mehren
a27524b9be
Update readme and contribution docs for 2.0 development
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-04 22:28:23 +01:00
David Mehren
7e9f08ea03
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>
2021-01-04 14:40:01 +01:00
David Mehren
854a682e19
Merge pull request #568 from jfowl/add-github-templates 2020-11-15 12:06:19 +01:00
David Mehren
6fd468dc22
Direct questions to the community forum
Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-15 11:47:44 +01:00
Philip Molares
c522f16e57
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
dedfe5fe3f
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
c7798ec494 Add templates for issues and PRs
Signed-off-by: Jonas Zohren <15788906+jfowl@users.noreply.github.com>
2020-11-12 19:40:45 +01:00
David Mehren
f9f596c0d0
Merge pull request #544 from codimd/public-api-uploads 2020-10-31 20:24:03 +01:00
Yannick Bungers
8a6e81e1c8
Merge branch 'develop' into public-api-uploads 2020-10-30 22:46:08 +01:00
Yannick Bungers
135e7ddfc2
Merge pull request #514 from codimd/note-metadata-in-db
Save note metadata in the database
2020-10-30 22:31:37 +01:00
David Mehren
6b92b012e2
Merge pull request #512 from codimd/fix/public-api-spec 2020-10-29 22:43:28 +01:00
David Mehren
0f1cab5006
Update dependencies
Signed-off-by: David Mehren <git@herrmehren.de>
2020-10-24 23:02:05 +02:00
David Mehren
61e6020c6b
Fix tests
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 22:21:46 +02:00
David Mehren
85ee6780ad
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 22:21:45 +02:00
David Mehren
241a577a02
DB Schema: Make layout pretty
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 22:21:45 +02:00
David Mehren
6a1da64cf6
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-24 22:21:45 +02:00
David Mehren
b2085efb1d
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-24 22:21:44 +02:00
David Mehren
731e577158
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-24 22:21:44 +02:00
David Mehren
c1886ff1dc
NotesController: Add PUT :noteIdOrAlias/metadata route
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 22:21:44 +02:00
David Mehren
3726b27849
NotesService: Implement updateNoteMetadata
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 22:21:43 +02:00
David Mehren
943c8b4bab
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-24 22:21:43 +02:00
David Mehren
b349d25bd7
NotesService: Get metadata from database
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 22:21:43 +02:00
David Mehren
f1f57eca54
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-24 22:21:42 +02:00
David Mehren
b9dfd880f7
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-24 22:21:42 +02:00
David Mehren
b9279a5d20
Add note metadata to db schema
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 22:21:41 +02:00
David Mehren
b7195c563c
Public API: Cleanup history schemas
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 22:20:00 +02:00
David Mehren
cfe8169fc2
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 22:20:00 +02:00
David Mehren
a4ac295ada
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 22:19:59 +02:00
David Mehren
7adcad2ce6
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-24 22:19:14 +02:00
David Mehren
a640dea1aa
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-24 22:19:14 +02:00
David Mehren
be5b6dcf0e
NoteMetadataDto: Rename permission to permissions
Signed-off-by: David Mehren <git@herrmehren.de>
Co-authored-by: Yannick Bungers <git@innay.de>
2020-10-24 22:19:14 +02:00
David Mehren
67633c375d
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-24 22:19:13 +02:00
David Mehren
b63593aa8b
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-24 22:19:13 +02:00
David Mehren
2be1defd7a
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-24 22:19:13 +02:00
David Mehren
61014f1bc4
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-24 22:19:12 +02:00
David Mehren
4a975dcca2
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
23c07dc67d
Merge pull request #543 from codimd/media-controller-tests 2020-10-24 21:17:29 +02:00