Commit graph

612 commits

Author SHA1 Message Date
semantic-release-bot
c3cfbd9508 chore(release): 1.16.3 [skip ci]
## [1.16.3](https://github.com/apricote/Listory/compare/v1.16.2...v1.16.3) (2022-06-19)

### Bug Fixes

* **api:** improve performance of all time listens report ([99a4593](99a4593774))
* **api:** missing await ([fd3fc6b](fd3fc6b159))
2022-06-19 18:41:20 +00:00
fd3fc6b159 fix(api): missing await 2022-06-19 20:35:44 +02:00
99a4593774 fix(api): improve performance of all time listens report
The current algorithm is CPU intensive and blocks the event loop for
multiple seconds in my deployment. This is not acceptable, as other
requests can not be answered during that time.

I do not have time to fully fix the issue here, but I did implement an
optimization for ALL_TIME reports:

Before, the all time report was generated for every timeFrame since 1970,
which iterated over the listens many hundred times. We can instead only start
the interval at the day of the first listen, and therefore skip 50+ years
of calculations.
2022-06-19 20:35:30 +02:00
renovate[bot]
325d695eda chore(deps): update dependency @nestjs/terminus to v8.0.8 2022-06-19 20:16:05 +02:00
renovate[bot]
74863a44d0
chore(deps): update dependency recharts to v2.1.10 2022-06-19 14:25:47 +00:00
renovate[bot]
433c8bf82b
chore(deps): update dependency pg to v8.7.3 2022-06-19 14:13:41 +00:00
dependabot[bot]
45b9d63356 chore(deps): bump swagger-ui-dist from 4.1.2 to 4.12.0
Bumps [swagger-ui-dist](https://github.com/swagger-api/swagger-ui) from 4.1.2 to 4.12.0.
- [Release notes](https://github.com/swagger-api/swagger-ui/releases)
- [Commits](https://github.com/swagger-api/swagger-ui/compare/v4.1.2...v4.12.0)

---
updated-dependencies:
- dependency-name: swagger-ui-dist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-19 16:06:16 +02:00
dependabot[bot]
315fb9d9a0 chore(deps): bump follow-redirects from 1.14.4 to 1.15.1 in /frontend
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.15.1.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.15.1)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-19 15:59:23 +02:00
dependabot[bot]
f4e42ae091 chore(deps): bump passport-oauth2 from 1.5.0 to 1.6.1
Bumps [passport-oauth2](https://github.com/jaredhanson/passport-oauth2) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/jaredhanson/passport-oauth2/releases)
- [Changelog](https://github.com/jaredhanson/passport-oauth2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jaredhanson/passport-oauth2/compare/v1.5.0...v1.6.1)

---
updated-dependencies:
- dependency-name: passport-oauth2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-19 15:51:18 +02:00
renovate[bot]
5e28ea7d76 chore(deps): update dependency eslint to v8.18.0 2022-06-19 15:39:58 +02:00
semantic-release-bot
d91a01f750 chore(release): 1.16.2 [skip ci]
## [1.16.2](https://github.com/apricote/Listory/compare/v1.16.1...v1.16.2) (2022-06-19)

### Bug Fixes

* **chart:** add support for Ingress v1 ([b2d704b](b2d704bb3e))
2022-06-19 13:09:34 +00:00
b2d704bb3e fix(chart): add support for Ingress v1 2022-06-19 15:05:19 +02:00
semantic-release-bot
5563fb1469 chore(release): 1.16.1 [skip ci]
## [1.16.1](https://github.com/apricote/Listory/compare/v1.16.0...v1.16.1) (2022-06-19)

### Bug Fixes

* **chart:** template references removed value ([99068c0](99068c09bc))
2022-06-19 12:37:44 +00:00
99068c09bc fix(chart): template references removed value
The prometheus config was removed in v1.16 and this causes the chart to
fail templating.
2022-06-19 14:33:28 +02:00
renovate[bot]
5f0b331549 chore(deps): update node.js to v18 2022-06-19 14:26:53 +02:00
renovate[bot]
d50f5b58f7
chore(deps): update dependency eslint-plugin-jsdoc to v39.3.3 2022-06-19 11:38:48 +00:00
renovate[bot]
24a1e76400
chore(deps): update dependency autoprefixer to v10.4.7 2022-06-19 05:26:57 +00:00
renovate[bot]
cf75f40fb8
chore(deps): update dependency @types/supertest to v2.0.12 2022-06-19 02:58:40 +00:00
renovate[bot]
0153b61172
chore(deps): update dependency @types/react-router-dom to v5.3.3 2022-06-19 00:21:13 +00:00
renovate[bot]
53f95a1171
chore(deps): update dependency @types/react-dom to v17.0.17 2022-06-19 00:15:13 +00:00
renovate[bot]
dbe8aa08a6 chore(deps): update dependency @types/hapi__joi to v17.1.8 2022-06-19 00:13:52 +00:00
renovate[bot]
cb952fa151 chore(deps): update dependency @types/cookie-parser to v1.4.3 2022-06-19 00:08:13 +00:00
renovate[bot]
cc1146966c chore(deps): update dependency @nestjs/schematics to v8.0.11 2022-06-19 00:02:19 +00:00
renovate[bot]
c1d4ce21be
chore(deps): pin dependency @types/long to 4.0.2 2022-06-18 15:54:09 +00:00
semantic-release-bot
343a944db1 chore(release): 1.16.0 [skip ci]
# [1.16.0](https://github.com/apricote/Listory/compare/v1.15.1...v1.16.0) (2022-06-18)

### Bug Fixes

* **ci:** respect peer deps again ([9b7a01a](9b7a01ab1c))

### Features

* **observability:** add local grafana+prom stack for metrics insights ([d0a9b0a](d0a9b0a07c))
* **observability:** Replace Prometheus package with OpenTelemetry ([6b1640b](6b1640b753))
2022-06-18 15:52:55 +00:00
9b7a01ab1c fix(ci): respect peer deps again
The problem causing dependency has been removed and we can once again
validate the peer dependencies in CI and during docker build.
2022-06-18 17:48:16 +02:00
3030659e05 chore: update other nest packages 2022-06-18 17:48:16 +02:00
6e2c9115be chore: update nestjs monorepo to 8.4.7 2022-06-18 17:48:16 +02:00
d0a9b0a07c feat(observability): add local grafana+prom stack for metrics insights 2022-06-18 17:48:16 +02:00
6b1640b753 feat(observability): Replace Prometheus package with OpenTelemetry 2022-06-18 17:48:16 +02:00
Renovate Bot
f67383b761
chore(deps): update dependency @types/react to v17.0.47 2022-06-16 21:27:09 +00:00
Renovate Bot
225ead2238
chore(deps): update dependency @testing-library/react to v12.1.5 2022-06-11 23:24:52 +00:00
Renovate Bot
c3bb77e3c6
chore(deps): update dependency @testing-library/jest-dom to v5.16.4 2022-06-11 21:02:16 +00:00
semantic-release-bot
6adec3b04b chore(release): 1.15.1 [skip ci]
## [1.15.1](https://github.com/apricote/Listory/compare/v1.15.0...v1.15.1) (2022-06-11)

### Bug Fixes

* **api:** broken tests after linting fix ([a2ea89f](a2ea89ff96))

### Reverts

* Revert "chore(deps): update dependency @types/node to v16" ([e2169c9](e2169c9c18))
* Revert "chore(deps): update nest monorepo" ([9260078](92600782f6))
2022-06-11 20:59:13 +00:00
a2ea89ff96 fix(api): broken tests after linting fix 2022-06-11 22:55:13 +02:00
e2169c9c18 Revert "chore(deps): update dependency @types/node to v16"
This reverts commit 4996615f2b.

Commit caused issues with express typings
2022-06-11 22:50:46 +02:00
92600782f6 Revert "chore(deps): update nest monorepo"
This reverts commit 4638356c6f.

The commit contained multiple breaking changes, affecting the express
types and the new typeorm release 0.3.
2022-06-11 22:37:00 +02:00
semantic-release-bot
85fd32f55c chore(release): 1.15.0 [skip ci]
# [1.15.0](https://github.com/apricote/Listory/compare/v1.14.2...v1.15.0) (2022-06-11)

### Bug Fixes

* **ci:** ignore failing peer resolution ([5409b98](5409b98da1))
* **health:** remove faulty health check to spotify-auth ([7de5e14](7de5e14d4e))
* **health:** use not-deprecated sentry context ([f06b93e](f06b93efbe))

### Features

* **api:** configurable max pool connections ([ee5bd41](ee5bd41a37))
2022-06-11 19:47:14 +00:00
dependabot[bot]
842cfd14e8 chore(deps): bump url-parse from 1.5.1 to 1.5.10 in /frontend
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-11 21:40:34 +02:00
Renovate Bot
4638356c6f chore(deps): update nest monorepo 2022-06-11 21:37:16 +02:00
00f9f91191 chore(deps): upgrade to react-router v6 2022-06-11 21:04:39 +02:00
Renovate Bot
4996615f2b chore(deps): update dependency @types/node to v16 2022-06-11 19:24:06 +02:00
84cf3391f1 chore(deps): update typescript-eslint monorepo to v5 2022-06-11 19:21:00 +02:00
Renovate Bot
51121c7a90 chore(deps): update dependency eslint to v8 2022-06-11 19:21:00 +02:00
Renovate Bot
b4dd94a788 chore(deps): update dependency postcss-cli to v9 2022-06-11 19:21:00 +02:00
0b6c601031 chore(deps): update create-react-app to v5 2022-06-11 19:21:00 +02:00
5409b98da1 fix(ci): ignore failing peer resolution
Some 3rd party nest packages depend on Nest 7 while we use 8. In practice
this still works, but the usual dependency resolution fails and requires
an explicit override.

This should also unblock auto-merging for renovate, as that currently fails
in CI on the `npm ci` step.
2022-06-11 19:21:00 +02:00
ee5bd41a37 feat(api): configurable max pool connections
This should help with failing health checks while the crawler is running.

Quick math: 10 users, 30 songs each, each song requires at least 3
queries => 900 db queries every minute.

With the default of 10 pool connections, this blocks all available db
bandwidth for some time and causes slow UI and failing healthchecks.
2022-06-11 19:21:00 +02:00
7de5e14d4e fix(health): remove faulty health check to spotify-auth
The endpoint returns a 503 OFTEN (~1x per hour), which causes unnecessary
service restarts and issues in sentry.
2022-06-11 19:21:00 +02:00
f06b93efbe fix(health): use not-deprecated sentry context
The setExtra function is deprecated in favor of setContext. Also update
sentry-related packages.
2022-06-11 19:21:00 +02:00