refactor: add request handlers for centralized cached requests (#1504)

* feat: add object base64 hash method

* chore: add script to add package

* feat: add request-handler package

* wip: add request handlers for all jobs and widget api procedures

* wip: remove errors shown in logs, add missing decryption for secrets in cached-request-job-handler

* wip: highly improve request handler, add request handlers for calendar, media-server, indexer-manager and more, add support for multiple inputs from job handler creator

* refactor: move media-server requests to request-handler, add invalidation logic for dns-hole and media requests

* refactor: remove unused integration item middleware

* feat: add invalidation to switch entity action of smart-home

* fix: lint issues

* chore: use integration-kind-by-category instead of union for request-handlers

* fix: build not working for tasks and websocket

* refactor: add more logs

* refactor: readd timestamp logic for diconnect status

* fix: lint and typecheck issue

* chore: address pull request feedback
This commit is contained in:
Meier Lukas
2024-11-23 17:16:44 +01:00
committed by GitHub
parent cdfb61fb28
commit 32ee9f3dcc
73 changed files with 1114 additions and 665 deletions

49
pnpm-lock.yaml generated
View File

@@ -497,6 +497,9 @@ importers:
'@homarr/redis':
specifier: workspace:^0.1.0
version: link:../redis
'@homarr/request-handler':
specifier: workspace:^0.1.0
version: link:../request-handler
'@homarr/server-settings':
specifier: workspace:^0.1.0
version: link:../server-settings
@@ -782,6 +785,9 @@ importers:
'@homarr/redis':
specifier: workspace:^0.1.0
version: link:../redis
'@homarr/request-handler':
specifier: workspace:^0.1.0
version: link:../request-handler
'@homarr/server-settings':
specifier: workspace:^0.1.0
version: link:../server-settings
@@ -1311,6 +1317,49 @@ importers:
specifier: ^5.6.3
version: 5.6.3
packages/request-handler:
dependencies:
'@homarr/common':
specifier: workspace:^0.1.0
version: link:../common
'@homarr/db':
specifier: workspace:^0.1.0
version: link:../db
'@homarr/definitions':
specifier: workspace:^0.1.0
version: link:../definitions
'@homarr/integrations':
specifier: workspace:^0.1.0
version: link:../integrations
'@homarr/log':
specifier: workspace:^0.1.0
version: link:../log
'@homarr/redis':
specifier: workspace:^0.1.0
version: link:../redis
dayjs:
specifier: ^1.11.13
version: 1.11.13
superjson:
specifier: 2.2.1
version: 2.2.1
devDependencies:
'@homarr/eslint-config':
specifier: workspace:^0.2.0
version: link:../../tooling/eslint
'@homarr/prettier-config':
specifier: workspace:^0.1.0
version: link:../../tooling/prettier
'@homarr/tsconfig':
specifier: workspace:^0.1.0
version: link:../../tooling/typescript
eslint:
specifier: ^9.15.0
version: 9.15.0
typescript:
specifier: ^5.6.3
version: 5.6.3
packages/server-settings:
dependencies:
'@homarr/definitions':