Commit graph

4149 commits

Author SHA1 Message Date
David Mehren
c6cac58a67
Update API routes in public API E2E tests
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
4428f3fb39
Separate private and public API in TestSetup
Including both PublicApiModule and PrivateApiModule in the test setup
lead to the API routes overwriting each other.
This adds a router to separate the APIs as they are in the normal app.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
0bb333ca69
Migrate private history API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
209a9b93a6
Migrate private me API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
ddaeb4fc66
Migrate private media API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:02 +02:00
David Mehren
9489fbaa79
Migrate private notes API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:52:41 +02:00
David Mehren
8a640f6be9
Migrate public alias API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:52:41 +02:00
David Mehren
cddd28f082
Migrate public me API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:52:38 +02:00
David Mehren
5b2b2e9a44
Migrate public media API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
9539581219
Migrate public notes API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
046607f1e5
Move common test preparations into TestSetup class
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
ade58e3ca1
Move tsconfig.test.json to test directory
WebStorm does not support typescript.*.json files,
but always uses the nearest tsconfig.json.
Moving the test-specific tsconfig into the test folder allows WebStorm
to use the correct config for the E2E-tests and
stops it from showing unnecessary errors.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
1710b7c00a
Merge pull request #1751 from hedgedoc/fix/privateMediaAPIDoc 2021-10-21 19:40:47 +02:00
David Mehren
5c645b3242
Merge pull request #1760 from hedgedoc/renovate/develop-linters 2021-10-21 19:32:35 +02:00
David Mehren
eff51df526
Merge pull request #1759 from hedgedoc/renovate/develop-test-packages 2021-10-21 19:32:11 +02:00
David Mehren
afdcd8e4af
Merge pull request #1766 from hedgedoc/renovate/develop-ts-node-10.3.x 2021-10-21 19:31:33 +02:00
Renovate Bot
60ecf93551
chore(deps): update linters to v5.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:48 +00:00
Renovate Bot
8866d9cebe
chore(deps): update dependency jest to v27.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:24 +00:00
Renovate Bot
a85d61b48a
chore(deps): update dependency ts-node to v10.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:05 +00:00
renovate[bot]
06bd588360
fix(deps): update dependency @nestjs/swagger to v5.1.3 (#1765)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:34:40 +00:00
renovate[bot]
c5d80f5c89
fix(deps): update dependency @nestjs/swagger to v5.1.2 (#1764)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 13:49:17 +00:00
Yannick Bungers
835acad499
Merge pull request #1752 from hedgedoc/fix/exceptionsAPI 2021-10-19 19:44:02 +02:00
renovate[bot]
b74527d4ac
fix(deps): update dependency @types/minio to v7.0.11 (#1758)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 10:50:36 +00:00
renovate[bot]
4ec3595477
chore(deps): update nestjs packages (#1757)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 09:51:31 +00:00
renovate[bot]
c316d862d1
chore(deps): update dependency ts-jest to v27.0.7 (#1749)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 08:13:56 +00:00
renovate[bot]
d94e37d4dc
chore(deps): update dependency mkdocs-material to v7.3.4 (#1756)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 06:59:37 +00:00
renovate[bot]
1b176bac08
chore(deps): update dependency eslint-plugin-jest to v25.2.2 (#1755)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 04:10:27 +00:00
Yannick Bungers
a2ebd16260 Remove unnecessary exception handling in private notes.controller.ts
and change noteIdOrAlias to Note as parameter

Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-18 22:35:47 +02:00
Yannick Bungers
04dca6aa68 Add API doc for private media API
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-18 20:20:14 +02:00
Alexandru Văleanu
b3d3015ce7
Add delete media in private API (#1736)
Adds the missing API route of deleting media in the private API.
2021-10-18 20:00:28 +02:00
David Mehren
93844efc6c
Merge pull request #1744 from hedgedoc/renovate/develop-linters 2021-10-16 15:56:29 +02:00
Renovate Bot
a1992f296c
chore(deps): update dependency eslint-plugin-jest to v25.2.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-15 23:09:47 +00:00
renovate[bot]
4546bfdd2c
fix(deps): update dependency cli-color to v2.0.1 (#1746)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-15 23:08:26 +00:00
Yannick Bungers
9d4fc6d7c6
Merge pull request #1735 from hedgedoc/fix-username 2021-10-15 21:37:10 +02:00
renovate[bot]
9a0b31c8ba
chore(deps): update dependency ts-jest to v27.0.6 (#1743)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 23:07:49 +00:00
renovate[bot]
1e63d83448
chore(deps): update dependency @types/node to v14.17.27 (#1742)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 21:22:06 +00:00
renovate[bot]
a21f47f05e
fix(deps): update nestjs packages to v8.1.1 (#1740)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 10:57:32 +00:00
renovate[bot]
398efc24b2
chore(deps): update dependency eslint-plugin-jest to v25.0.6 (#1739)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 09:54:07 +00:00
renovate[bot]
919fce8a85
chore(deps): update dependency eslint to v8.0.1 (#1738)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 05:12:36 +00:00
renovate[bot]
765a0d92de
chore(deps): update dependency @types/node to v14.17.26 (#1734)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 00:15:16 +00:00
renovate[bot]
737d543cf0
chore(deps): pin dependency http-proxy-middleware to 2.0.1 (#1737)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 23:02:00 +00:00
Yannick Bungers
325e1893f8 Change createTokenForUser signature
user is now used instead of username

Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 22:59:51 +02:00
David Mehren
aa18371915
Merge pull request #1672 from hedgedoc/feature/frontend_proxy 2021-10-13 22:56:17 +02:00
Yannick Bungers
d33cfa4541 fix username spelling from userName
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 22:54:00 +02:00
Yannick Bungers
aa8455a079 change getTokensByUsername to getTokensByUser
Signed-off-by: Yannick Bungers <git@innay.de>
2021-10-13 22:22:08 +02:00
David Mehren
aed28abff5
Cleanup dist folder before starting
For some reason, files from the dist folder get used
for execution even when running with ts-node.
This adds a cleanup step before starting the app.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-13 21:36:39 +02:00
David Mehren
a4749d60f7
Add dev-proxy to frontend dev server
This adds a reverse proxy to the backend, that automatically
redirects requests that are not handled by the backend to the React
dev server running on port 3001.

The reverse proxy is only enabled when NODE_ENV is set to
'development'.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-13 21:36:38 +02:00
Yannick Bungers
e5750b0084
Merge pull request #1673 from hedgedoc/remove-hardcoded 2021-10-13 21:14:33 +02:00
David Mehren
1cf37cc035
Merge pull request #1697 from hedgedoc/renovate/develop-pymdown-extensions-9.x 2021-10-13 21:14:05 +02:00
David Mehren
a25d60a454
Merge pull request #1685 from hedgedoc/renovate/develop-linters 2021-10-13 21:12:20 +02:00