Commit graph

2932 commits

Author SHA1 Message Date
izzy
57997c001e
refactor: always validate the maintenance auth on the server 2025-11-05 16:07:41 +00:00
izzy
94d32bb54d
refactor: use secret instead of token in jwt terminology
chore: log maintenance mode login URL on boot
chore: don't make CLI actions reload if already in target state
2025-11-05 15:36:18 +00:00
izzy
421bf855d3
feat: log into maintenance mode from CLI command 2025-11-05 14:39:34 +00:00
izzy
460a626089
refactor: switch from nest jwt to just jsonwebtokens 2025-11-05 14:10:30 +00:00
izzy
014669f4a4
feat: jwt auth for maintenance 2025-11-05 13:44:43 +00:00
izzy
5f4a72735c
refactor: unify maintenance code into repository
feat: add a step to generate maintenance mode token
2025-11-05 12:56:12 +00:00
izzy
37db497b12
feat: maintenance authentication guard 2025-11-05 12:27:10 +00:00
izzy
aee2227f45
fix: propagate changes from the CLI to servers 2025-11-05 12:27:00 +00:00
izzy
d219cb951d
refactor: merge common code between api/maintenance 2025-11-05 11:41:29 +00:00
izzy
60cd22bfc5
feat: add Maintenance permission 2025-11-05 11:28:34 +00:00
izzy
171e4d75e0
refactor: only spin up kysely on boot (rather than a Nest app) 2025-11-05 11:14:08 +00:00
izzy
7db6f856b3
refactor: remove redundant route for maintenance 2025-11-05 11:05:20 +00:00
izzy
6a916c4c66
refactor: add a constant enum for ExitCode 2025-11-05 11:04:23 +00:00
izzy
3e850d96d8
feat: reimplement maintenance mode exit with new module 2025-11-05 11:00:07 +00:00
izzy
809904ea3a
refactor: rename repository to include worker
chore: configure websocket adapter
2025-11-05 10:53:47 +00:00
izzy
7f30f49ab5
chore: set maintenance module app name 2025-11-05 10:48:08 +00:00
izzy
bc9c38d829
refactor: move broadcast code into notification service 2025-11-05 10:46:15 +00:00
izzy
f80782f543
feat: initial draft of maintenance module, repo., worker controller, worker service 2025-11-04 18:29:32 +00:00
izzy
c130b04af5
fix: should set default value not override in service 2025-11-03 13:49:59 +00:00
izzy
efd13542f3
refactor: use try{} block for maintenance mode check 2025-11-03 11:17:11 +00:00
izzy
78520c462f
chore: clean up linter issues 2025-11-03 11:09:07 +00:00
izzy
58c4a41eed
refactor: move maintenance resolution code to static method in service 2025-11-03 10:56:38 +00:00
izzy
018af805e6
fix: add maintenanceMode field to system config test 2025-11-03 10:44:18 +00:00
izzy
4ac0800435
fix: skip config check if database is not initialised 2025-11-03 10:43:59 +00:00
izzy
428cbcea3a
refactor: deduplicate code between api/maintenance workers 2025-11-03 10:38:12 +00:00
izzy
3de75cc768
chore: increase timeout for ungraceful restart 2025-11-03 10:30:39 +00:00
izzy
5f81c4ebb5
feat: broadcast websocket event on server restart
refactor: listen to WS instead of polling
2025-11-03 10:26:05 +00:00
izzy
2afbff36a3
refactor: use system metadata for maintenance status 2025-10-31 17:28:57 +00:00
izzy
997c6fb3aa
chore: add a failsafe on restart to prevent other exit codes from preventing restart 2025-10-31 15:53:38 +00:00
izzy
caac2453b6
fix: don't wait for nest application to close to finish request response 2025-10-31 15:53:02 +00:00
izzy
47e673ef55
chore: add additional routes to maintenance controller 2025-10-31 15:50:26 +00:00
izzy
bb5d4ce9da
feat: cli command to toggle maintenance mode 2025-10-31 15:12:00 +00:00
izzy
42ac9cf922
feat: boot a stripped down maintenance api if enabled 2025-10-31 14:47:49 +00:00
izzy
78f949afaa
feat: implement graceful restart
feat: restart when maintenance config is toggled
2025-10-31 13:21:18 +00:00
izzy
2a06960b29
feat: add a maintenance.enabled config flag 2025-10-31 12:46:06 +00:00
Jonathan Jogenfors
61a2c3ace3
chore(server): clarify asset copy parameters (#23396) 2025-10-30 23:55:39 +00:00
Daniel Dietzler
e9038193db
fix: asset copy validation error (#23387) 2025-10-30 19:40:58 -04:00
github-actions
57c8378ca7 chore: version v2.2.0 2025-10-30 14:42:44 +00:00
renovate[bot]
b489bdf8d3
chore(deps): update node.js to v24 (#23346)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-29 14:48:20 +01:00
Daniel Dietzler
4ae7cadeae
feat: asset copy (#23172) 2025-10-29 08:43:47 -05:00
renovate[bot]
fdfb04d83c
fix(deps): update typescript-projects (#23311)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
2025-10-29 11:34:20 +00:00
Alex
9098717c55
feat: getAssetOcr endpoint (#23331)
* feat: getAssetOcr endpoint

* pr feedback
2025-10-28 20:57:03 +00:00
renovate[bot]
9f0b5790af
chore(deps): update dependency @types/node to ^22.18.12 (#23305)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-28 18:16:18 +01:00
renovate[bot]
f72bcc8a8f
chore(deps): update node.js to v22.21.0 (#23314)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-28 12:36:19 +00:00
renovate[bot]
62ed5fe27f
chore(deps): update base-image to v202510281104 (major) (#23315)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-28 12:30:42 +00:00
Thomas Stachl
44149d187f
feat(server): enhance metadata reading for video files (#23258) 2025-10-27 14:46:54 -05:00
shenlong
9e3b4ef3db
chore(dep): bump flutter to 3.35.7 (#23287)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
2025-10-27 10:24:41 -05:00
Kang
02b29046b3
feat: ocr (#18836)
* feat: add OCR functionality and related configurations

* chore: update labeler configuration for machine learning files

* feat(i18n): enhance OCR model descriptions and add orientation classification and unwarping features

* chore: update Dockerfile to include ccache for improved build performance

* feat(ocr): enhance OCR model configuration with orientation classification and unwarping options, update PaddleOCR integration, and improve response structure

* refactor(ocr): remove OCR_CLEANUP job from enum and type definitions

* refactor(ocr): remove obsolete OCR entity and migration files, and update asset job status and schema to accommodate new OCR table structure

* refactor(ocr): update OCR schema and response structure to use individual coordinates instead of bounding box, and adjust related service and repository files

* feat: enhance OCR configuration and functionality

- Updated OCR settings to include minimum detection box score, minimum detection score, and minimum recognition score.
- Refactored PaddleOCRecognizer to utilize new scoring parameters.
- Introduced new database tables for asset OCR data and search functionality.
- Modified related services and repositories to support the new OCR features.
- Updated translations for improved clarity in settings UI.

* sql changes

* use rapidocr

* change dto

* update web

* update lock

* update api

* store positions as normalized floats

* match column order in db

* update admin ui settings descriptions

fix max resolution key

set min threshold to 0.1

fix bind

* apply config correctly, adjust defaults

* unnecessary model type

* unnecessary sources

* fix(ocr): switch RapidOCR lang type from LangDet to LangRec

* fix(ocr): expose lang_type (LangRec.CH) and font_path on OcrOptions for RapidOCR

* fix(ocr): make OCR text search case- and accent-insensitive using ILIKE + unaccent

* fix(ocr): add OCR search fields

* fix: Add OCR database migration and update ML prediction logic.

* trigrams are already case insensitive

* add tests

* format

* update migrations

* wrong uuid function

* linting

* maybe fix medium tests

* formatting

* fix weblate check

* openapi

* sql

* minor fixes

* maybe fix medium tests part 2

* passing medium tests

* format web

* readd sql

* format dart

* disabled in e2e

* chore: translation ordering

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2025-10-27 14:09:55 +00:00
Min Idzelis
c666dc6c67
fix: back/forward navigation won't reset scroll in timeline (#22838)
* fix: back/forward navigation won't reset scroll in timeline

Fixes a bug where navigating to/from the asser-viewer from timeline causes the scroll position to be reset.

* Fix back after assetviewer next/prev navigation

* Bug fix from review

* review comments
2025-10-27 08:56:03 -05:00
Jorge Montejo
382481735a
feat: logout sessions on password change (#23188)
* log out ohter sessions on password change

* translations

* update and add tests

* rename event to UserLogoutOtherSessions

* fix typo

* requested changes

* fix tests

* fix medium:test

* use ValidateBoolean

* fix format

* dont delete current session id

* Update server/src/dtos/auth.dto.ts

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>

* rename event and invalidateOtherSessions

* chore: cleanup

---------

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
Co-authored-by: Jason Rasmussen <jason@rasm.me>
2025-10-27 13:16:10 +00:00