1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 20:36:48 +01:00
immich/mobile/openapi/lib/model
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_create_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
activity_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
activity_statistics_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
add_users_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
album_count_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
album_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
all_job_status_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
api_key_create_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
api_key_create_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
api_key_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
api_key_update_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_bulk_delete_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_bulk_update_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_bulk_upload_check_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_bulk_upload_check_item.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_bulk_upload_check_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_bulk_upload_check_result.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_face_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_face_update_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_face_update_item.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_face_without_person_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_file_upload_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_ids_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_ids_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_job_name.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_jobs_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_order.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_stats_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_type_enum.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
audio_codec.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
audit_deletes_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
auth_device_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
bulk_id_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
bulk_ids_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
change_password_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
check_existing_assets_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
check_existing_assets_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
clip_config.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
clip_mode.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
colorspace.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
cq_mode.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
create_album_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
create_library_dto.dart feat(server): Automatic watching of library folders (#6192) 2024-01-31 08:15:54 +00:00
create_profile_image_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
create_tag_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
create_user_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
curated_locations_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
curated_objects_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
download_archive_info.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
download_info_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
download_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
entity_type.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
exif_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
face_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
file_checksum_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
file_checksum_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
file_report_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
file_report_fix_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
file_report_item_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
job_command.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
job_command_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
job_counts_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
job_name.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
job_settings_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
job_status_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
library_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
library_stats_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
library_type.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
log_level.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
login_credential_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
login_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
logout_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
map_marker_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
map_theme.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
memory_lane_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
merge_person_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
model_type.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
o_auth_authorize_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
o_auth_callback_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
o_auth_config_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
o_auth_config_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
partner_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
path_entity_type.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
path_type.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
people_response_dto.dart feat(web,server): search people (#5703) 2024-01-27 19:54:31 -05:00
people_update_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
people_update_item.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
person_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
person_statistics_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
person_update_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
person_with_faces_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
queue_status_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
reaction_level.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
reaction_type.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
recognition_config.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
scan_library_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
search_album_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
search_asset_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
search_explore_item.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
search_explore_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
search_facet_count_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
search_facet_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
search_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
server_config_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
server_features_dto.dart refactor: rename clip -> smart search (#6713) 2024-01-29 09:51:22 -05:00
server_info_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
server_media_types_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
server_ping_response.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
server_stats_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
server_theme_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
server_version_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
shared_link_create_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
shared_link_edit_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
shared_link_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
shared_link_type.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
sign_up_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
smart_info_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_f_fmpeg_dto.dart added a configuration option to select the dri node in transcoding (#6376) 2024-01-29 20:40:02 -05:00
system_config_job_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_library_dto.dart feat(server): Automatic watching of library folders (#6192) 2024-01-31 08:15:54 +00:00
system_config_library_scan_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_library_watch_dto.dart feat(server): Automatic watching of library folders (#6192) 2024-01-31 08:15:54 +00:00
system_config_logging_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_machine_learning_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_map_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_new_version_check_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_o_auth_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_password_login_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_reverse_geocoding_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_server_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_storage_template_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_template_storage_option_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_theme_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_thumbnail_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
system_config_trash_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
tag_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
tag_type_enum.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
thumbnail_format.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
time_bucket_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
time_bucket_size.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
tone_mapping.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
transcode_hw_accel.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
transcode_policy.dart feat(server, web): Added TranscodePolicy "Bitrate higher than max bitrate or not in accepted format" (#6479) 2024-01-30 20:25:07 -05:00
update_album_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
update_asset_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
update_library_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
update_partner_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
update_stack_parent_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
update_tag_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
update_user_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
usage_by_user_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
user_avatar_color.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
user_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
user_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
validate_access_token_response_dto.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
video_codec.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00