Philip Molares
f731d2d455
HistoryService: Add test for setHistory
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-05-02 18:09:16 +02:00
Philip Molares
ea4c58c68f
HistoryService: Add setHistory method
...
This is the transactional reimplementation of the business logic of the history controllers setHistory method (of the private api). This should prevent the problem that the history gets deleted, but a later error in the handling of the list of HistoryEntryImportDto let's the call fail.
See also: https://docs.nestjs.com/techniques/database#transactions
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-05-02 18:09:11 +02:00
Philip Molares
353f444f30
HistoryService: Remove extra parameters from createOrUpdateHistoryEntry
...
As the function is now only called with a user and a note and the previous extra parameters are now added into the transactional setHistory method, this is no longer necessary.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-05-02 18:08:36 +02:00
Philip Molares
056ab12e67
NotesService: Extract checkNoteIdOrAlias into own method
...
To reuse this functionality in the history services setHistory method, it was extracted into its own exported function.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-05-02 18:08:34 +02:00
Yannick Bungers
36dd89004b
Merge pull request #1144 from hedgedoc/docs/readme_update
2021-04-18 00:27:11 +02:00
David Mehren
0e5ce048a3
Merge pull request #1127 from hedgedoc/history/entryRename
2021-04-17 19:23:19 +02:00
David Mehren
ff27e988a6
Merge pull request #1136 from hedgedoc/fix/getServerVersion
...
Utils: Fix getServerVersionFromPackageJson
2021-04-17 16:03:52 +02:00
David Mehren
6668d73ba1
Merge pull request #1129 from hedgedoc/renovate/develop-lock-file-maintenance
...
Lock file maintenance (develop)
2021-04-17 15:51:42 +02:00
David Mehren
7dd4d41a73
Merge pull request #1146 from hedgedoc/renovate/develop-pin-dependencies
...
Pin dependency eslint-plugin-jest to 24.3.5 (develop)
2021-04-17 15:50:42 +02:00
David Mehren
5259912d6e
Explicitly state that 1.x is stable
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-17 15:18:30 +02:00
Renovate Bot
75a4e6a4f3
Lock file maintenance
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-17 13:01:52 +00:00
Renovate Bot
c94beba669
Pin dependency eslint-plugin-jest to 24.3.5
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-17 13:01:27 +00:00
David Mehren
2192153c30
Merge pull request #1133 from hedgedoc/eslint/tests
2021-04-17 14:18:44 +02:00
David Mehren
b04191f69f
Add clear 'getting started' instructions to README
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-16 19:28:39 +02:00
David Mehren
97686613df
Merge pull request #1143 from hedgedoc/readme/paragraphSwitch
...
README: Change order of paragraphs
2021-04-16 19:09:29 +02:00
Philip Molares
608f110c8d
README: Change order of paragraphs
...
With this change our support chat is mentioned before our dev chat. Hopefully that should direct people in the correct chat for them…
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-16 18:46:34 +02:00
Philip Molares
51f1da7083
Tests: Fix eslint errors
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-16 10:14:05 +02:00
Philip Molares
434bc55bab
Tests: Removed all eslint-disable lines
...
As we now disable what we don't need in the eslint config, we don't need this anymore.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-16 10:14:05 +02:00
Philip Molares
5099f0f5c5
ESLint: Override config for tests
...
This is done to to fix Issue #1098
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-16 10:10:52 +02:00
Philip Molares
2e1cbb3543
Dependency: Add eslint-plugin-jest
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-15 22:19:23 +02:00
David Mehren
67474a4777
Merge pull request #1140 from hedgedoc/renovate/develop-definitelytyped
...
Update dependency @types/node to v13.13.50 (develop)
2021-04-15 22:14:30 +02:00
Renovate Bot
24f4f41121
Update dependency @types/node to v13.13.50
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-15 20:08:26 +00:00
David Mehren
5f6e38efe0
Merge pull request #1139 from hedgedoc/renovate/develop-ts-jest-26.x
...
Update dependency ts-jest to v26.5.5 (develop)
2021-04-15 22:07:26 +02:00
Renovate Bot
2425e8c40e
Update dependency ts-jest to v26.5.5
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-15 17:09:46 +00:00
Philip Molares
dff5a635e0
Utils: Fix getServerVersionFromPackageJson
...
The cache is never null, because it defaults to undefined, and therefore this function always returns undefined.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-15 18:39:41 +02:00
Yannick Bungers
186ffda440
Merge pull request #1122 from hedgedoc/renovate/develop-linters
...
Update linters (develop)
2021-04-15 16:26:30 +02:00
Renovate Bot
15dcbb4878
Update linters
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-15 11:08:16 +00:00
Yannick Bungers
caa4b1c927
Merge pull request #1134 from hedgedoc/renovate/develop-definitelytyped
...
Update dependency @types/node to v13.13.49 (develop)
2021-04-15 13:06:32 +02:00
Yannick Bungers
ed87a47d13
Merge pull request #1111 from hedgedoc/renovate/develop-typescript-4.x
...
Update dependency typescript to v4.2.4 (develop)
2021-04-15 13:05:44 +02:00
Renovate Bot
00018a005c
Update dependency @types/node to v13.13.49
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-14 21:07:29 +00:00
Renovate Bot
ebb7c4738f
Update dependency typescript to v4.2.4
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-13 20:04:08 +00:00
Yannick Bungers
c0f33d573d
Merge pull request #1124 from hedgedoc/renovate/develop-mkdocs-material-7.x
...
Update dependency mkdocs-material to v7.1.1 (develop)
2021-04-13 22:00:43 +02:00
Renovate Bot
db7928b389
Update dependency mkdocs-material to v7.1.1
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-13 19:54:24 +00:00
Yannick Bungers
3e8bcf5f99
Merge pull request #1121 from hedgedoc/renovate/develop-definitelytyped
...
Update dependency @types/bcrypt to v3.0.1 (develop)
2021-04-13 21:53:20 +02:00
Philip Molares
adffd68e68
PrivateAPI: Add lastVisited to HistoryEntryImportDto
...
As the DTO is only for importing an existing history the lastVisited of those entries should also be posted.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-11 12:37:47 +02:00
Philip Molares
4f858c51d2
PrivateAPI: Add pinStatus to HistoryEntryImportDto
...
As the DTO is only for importing an existing history the pinStatus of those entries should also be posted.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-11 12:37:38 +02:00
Philip Molares
085241999b
PrivateAPI: Rename HistoryEntryCreationDto to HistoryEntryImportDto
...
As the DTO is used to import a whole list of history entries rather than creating a single history entry (there is no way of doing that at the moment)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-10 23:26:58 +02:00
Renovate Bot
80162b90bc
Update dependency @types/bcrypt to v3.0.1
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-09 22:42:57 +00:00
David Mehren
b36ce1bb08
Merge pull request #1114 from hedgedoc/docs/changelog_md
...
Update CHANGELOG.md to point to releases page
2021-04-08 17:20:22 +02:00
David Mehren
96ca1acbeb
Merge pull request #1112 from hedgedoc/renovate/develop-definitelytyped
...
Update dependency @types/node-fetch to v2.5.10 (develop)
2021-04-08 17:13:48 +02:00
David Mehren
79fa9d063e
Update CHANGELOG.md to point to releases page
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-04-08 17:00:50 +02:00
Renovate Bot
5e3fb9fad9
Update dependency @types/node-fetch to v2.5.10
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-08 10:57:13 +00:00
Yannick Bungers
ee5a587bcc
Merge pull request #1092 from hedgedoc/fix/e2eTests
2021-04-08 12:06:43 +02:00
David Mehren
5af4f43b6f
Merge pull request #1105 from hedgedoc/renovate/develop-lock-file-maintenance
...
Lock file maintenance (develop)
2021-04-06 17:33:05 +02:00
David Mehren
edb184f3a3
Merge pull request #1093 from hedgedoc/config/changeMockUploadPath
2021-04-06 16:59:21 +02:00
David Mehren
bb20735989
Merge pull request #1096 from hedgedoc/twitterBadge
...
README: Add Twitter Badge
2021-04-06 16:58:02 +02:00
Renovate Bot
b4a9fecfc1
Lock file maintenance
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-06 14:49:32 +00:00
David Mehren
dcf9a8ba34
Merge pull request #1107 from hedgedoc/renovate/develop-linters
...
Update linters to v4.21.0 (develop)
2021-04-06 16:48:19 +02:00
Renovate Bot
9145c04242
Update linters to v4.21.0
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-04-05 18:36:25 +00:00
David Mehren
096a2e3fe0
Merge pull request #1106 from hedgedoc/SISheogorath-delete-question-template
...
Delete question template
2021-04-05 19:43:30 +02:00