immich/server/src/infra/entities
Jonathan Jogenfors 068e703e88
feat(server): Automatic watching of library folders (#6192)
* feat: initial watch support

* allow offline files

* chore: ignore query errors when resetting e2e db

* revert db query

* add savepoint

* guard the user query

* chore: openapi and db migration

* wip

* support multiple libraries

* fix tests

* wip

* can now cleanup chokidar watchers

* fix unit tests

* add library watch queue

* add missing init from merge

* wip

* can now filter file extensions

* remove watch api from non job client

* Fix e2e test

* watch library with updated import path and exclusion pattern

* add library watch frontend ui

* case sensitive watching extensions

* can auto watch libraries

* move watcher e2e tests to separate file

* don't watch libraries from a queue

* use event emitters

* shorten e2e test timeout

* refactor chokidar code to filesystem provider

* expose chokidar parameters to config file

* fix storage mock

* set default config for library watching

* add fs provider mocks

* cleanup

* add more unit tests for watcher

* chore: fix format + sql

* add more tests

* move unwatch feature back to library service

* add file event unit tests

* chore: formatting

* add documentation

* fix e2e tests

* chore: fix e2e tests

* fix library updating

* test cleanup

* fix typo

* cleanup

* fixing as per pr comments

* reduce library watch config file

* update storage config and mocks

* move negative event tests to unit tests

* fix library watcher e2e

* make watch configuration global

* remove the feature flag

* refactor watcher teardown

* fix microservices init

* centralize asset scan job queue

* improve docs

* add more tests

* chore: open api

* initialize app service

* fix docs

* fix library watch feature flag

* Update docs/docs/features/libraries.md

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

* fix: import right app service

* don't be truthy

* fix test speling

* stricter library update tests

* move fs watcher mock to external file

* subscribe to config changes

* docker does not need polling

* make library watch() private

* feat: add configuration ui

---------

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2024-01-31 08:15:54 +00:00
..
activity.entity.ts feat(web,server): activity (#4682) 2023-10-31 22:13:34 -05:00
album.entity.ts fix(server): album perf query (#5232) 2023-11-21 10:07:49 -06:00
api-key.entity.ts refactor(server)*: tsconfigs (#2689) 2023-06-08 10:01:07 -05:00
asset-face.entity.ts feat(server): separate face clustering job (#5598) 2024-01-18 00:08:48 -05:00
asset-job-status.entity.ts feat(server): track metadata extracted at (#6352) 2024-01-12 19:39:45 -05:00
asset-stack.entity.ts refactor: move asset stacks to their own entity (#6353) 2024-01-27 18:52:14 +00:00
asset.entity.ts refactor: move asset stacks to their own entity (#6353) 2024-01-27 18:52:14 +00:00
audit.entity.ts feat(server): asset entity audit (#3824) 2023-08-24 15:28:50 -04:00
exif.entity.ts chore: migrate CLI to ESM and vitest (#6777) 2024-01-30 18:23:33 -05:00
geodata-admin1.entity.ts feat: postgres reverse geocoding (#5301) 2023-11-25 18:53:30 +00:00
geodata-admin2.entity.ts feat: postgres reverse geocoding (#5301) 2023-11-25 18:53:30 +00:00
geodata-places.entity.ts feat: postgres reverse geocoding (#5301) 2023-11-25 18:53:30 +00:00
index.ts refactor: move asset stacks to their own entity (#6353) 2024-01-27 18:52:14 +00:00
library.entity.ts feat(server,web): libraries (#3124) 2023-09-20 13:16:33 +02:00
move.entity.ts feat(web,server): offline/untracked files admin tool (#4447) 2023-10-14 19:12:59 +02:00
partner.entity.ts feat(web): show partners assets on the main timeline (#4933) 2023-11-11 21:06:19 +00:00
person.entity.ts fix(server, web): Prevent the user from setting a future date of birth (#5803) 2023-12-19 10:07:38 -06:00
shared-link.entity.ts fix(server): remove shared link with removed asset (#5845) 2023-12-19 11:05:18 -06:00
smart-info.entity.ts feat: use pgvecto.rs (#3605) 2023-12-08 11:15:46 -05:00
smart-search.entity.ts feat: use pgvecto.rs (#3605) 2023-12-08 11:15:46 -05:00
system-config.entity.ts feat(server): Automatic watching of library folders (#6192) 2024-01-31 08:15:54 +00:00
system-metadata.entity.ts feat(web): onboarding (#6066) 2024-01-04 05:28:32 +00:00
tag.entity.ts refactor(server)*: tsconfigs (#2689) 2023-06-08 10:01:07 -05:00
user-token.entity.ts refactor(server)*: tsconfigs (#2689) 2023-06-08 10:01:07 -05:00
user.entity.ts feat(server, web): quotas (#4471) 2024-01-12 19:43:36 -05:00