Commit graph

1603 commits

Author SHA1 Message Date
David Mehren
c9cc1e2fb7 refactor: extract common app setup code
This allows the E2E tests and the real app to share the same setup.

Fixes #2083

Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-26 20:43:23 +02:00
renovate[bot]
6947c9ae8d fix(deps): pin dependency passport-custom to 1.1.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-25 17:03:19 +00:00
renovate[bot]
2bc1866746 fix(deps): update dependency ldapauth-fork to v5.0.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-25 14:16:18 +00:00
renovate[bot]
baa81dd0c5 chore(deps): update dependency mkdocs-material to v8.3.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-25 11:32:41 +00:00
renovate[bot]
2a1b9b6856 chore(deps): update dependency @types/jest to v28.1.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-25 08:31:47 +00:00
renovate[bot]
1b0802be22 chore(deps): update dependency @nestjs/cli to v8.2.8
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-25 05:00:57 +00:00
David Mehren
dcc4d56270 test(e2e/app): disable debug logging
Debug logging seems to have been left enabled accidentally
and is very spammy.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-19 22:25:53 +02:00
Lautaro Alvarez
a0b5da6c8b refactor(media-apis): Implement a decorator to convert header to Note instance
Just find the related note in an Interceptor (in both public and private routes)

Related issue: https://github.com/hedgedoc/hedgedoc/issues/1594

Signed-off-by: Lautaro Alvarez <lautarolalvarez@gmail.com>
Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-19 20:58:23 +02:00
renovate[bot]
d36961878d chore(deps): update dependency prettier to v2.7.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 22:43:42 +02:00
renovate[bot]
3417a384e4 fix(deps): update nestjs packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 21:04:40 +02:00
renovate[bot]
6a00010975 chore(deps): update dependency mkdocs-material to v8.3.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 21:03:33 +02:00
renovate[bot]
db271b3d10 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 20:54:36 +02:00
renovate[bot]
9482af9b09 chore(deps): update dependency typescript to v4.7.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 20:54:21 +02:00
renovate[bot]
0914293d8b chore(deps): update test packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 20:52:49 +02:00
renovate[bot]
87d41a0827 chore(deps): update dependency @tsconfig/node12 to v1.0.11
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 14:39:00 +00:00
renovate[bot]
4e6302184c chore(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 10:53:08 +00:00
renovate[bot]
1307e29753 chore(deps): update node.js to 7ae4169
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 04:50:56 +00:00
Renovate Bot
1f24236239 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 03:57:52 +00:00
Renovate Bot
11484df695 chore(deps): update dependency eslint-plugin-local-rules to v1.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-12 20:23:48 +02:00
Renovate Bot
c0c3c974be chore(deps): update dependency pymdown-extensions to v9.5
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-12 20:22:34 +02:00
Renovate Bot
c96998fe55 fix(deps): update dependency @nestjs/config to v2.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-12 20:17:29 +02:00
David Mehren
06c39ea759 refactor: adapt for typeorm 0.3
Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
David Mehren
43d3f14322 Use new APIs in seed.ts
Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
David Mehren
2f1e6628a1 test(private/notes): add regression test
For reasons, the typeorm 0.3 started to always return all notes in the database.
This adds a regression test to check for that.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
David Mehren
d780d511cd fix(notes-service): user query builder
For reasons, the typeorm 0.3 broke the find()
method when using relations in the WHERE clause.
This replaces the find method with a query builder.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
David Mehren
27a93a2895 fix(media-service): user query builder
For reasons, the typeorm 0.3 broke the find()
method when using relations in the WHERE clause.
This replaces the find method with a query builder.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
David Mehren
3503a45078 fix(history-service): user query builder
For reasons, the typeorm 0.3 broke the find()
method when using relations in the WHERE clause.
This replaces the find method with a query builder.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
David Mehren
366aead689 fix(revisions-service: user query builder
For reasons, the typeorm 0.3 broke the find()
method when using relations in the WHERE clause.
This replaces the find method with a query builder.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
David Mehren
c4975e4783 refactor: adapt for typeorm 0.3
Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
David Mehren
a07b5f54d1 chore(deps): update @nestjs/typeorm to v8.1.2
Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
Renovate Bot
115f3a3c07 fix(deps): update dependency typeorm to v0.3.4
Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-12 20:09:07 +02:00
Renovate Bot
197a937a3f chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-11 23:43:57 +00:00
Renovate Bot
7764cc7d67 chore(deps): update dependency mkdocs-material to v8.3.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-11 20:30:47 +00:00
Renovate Bot
3b9d6aaff1 chore(deps): update dependency jest to v28.1.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-11 17:30:59 +00:00
Renovate Bot
a6d77f29a0 chore(deps): update dependency @types/node to v16.11.39
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-11 14:57:48 +00:00
Renovate Bot
8c75b9dd57 chore(deps): update dependency @tsconfig/node12 to v1.0.10
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-11 11:43:26 +00:00
Renovate Bot
2fcce27412 chore(deps): update node.js to 57b98f1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-11 04:19:58 +00:00
Renovate Bot
501372aa3c chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-06 04:51:30 +00:00
Renovate Bot
b94f52a84a fix(deps): update dependency passport to v0.6.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-05 22:22:46 +02:00
Renovate Bot
27483333dc chore(deps): update dependency @types/jest to v28
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-05 22:16:50 +02:00
David Mehren
bfd5dee950 ci: drop Node.js 12
Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-05 22:04:10 +02:00
David Mehren
d104a98f81 test(FrontendConfig): Remove loop over irrelevant variables
Some variables are not used in any logic,
so looping over them does not make any sense.

Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-05 20:43:44 +02:00
David Mehren
f3cf4f4b1f test(FrontendConfig): Move getAuthProviders to own test
Signed-off-by: David Mehren <git@herrmehren.de>
2022-06-05 20:43:44 +02:00
Renovate Bot
e7a6472059 chore(deps): update dependency eslint-plugin-jest to v26.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-05 20:33:26 +02:00
Renovate Bot
06deae08aa chore(deps): update dependency mkdocs-material to v8.3.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-05 15:13:50 +00:00
Renovate Bot
36a9c4c566 chore(deps): update dependency eslint-plugin-jest to v26.4.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-05 03:00:13 +00:00
Renovate Bot
8a2b7f8017 fix(deps): update nestjs packages to v8.4.6
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-04 22:43:30 +00:00
Renovate Bot
8d864b9255 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-04 22:44:43 +02:00
Renovate Bot
7f8ed2316b chore(deps): update test packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-04 18:40:07 +00:00
Renovate Bot
ded22d029f chore(deps): update dependency mkdocs-material to v8.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-06-04 18:39:29 +02:00