-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(server): don't delete offline files from disk when trash empties #14777
Conversation
44f240d
to
91b3b6a
Compare
91b3b6a
to
0cffb62
Compare
1a6e9bc
to
e8c5fcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good overall, I think just the point Jason raised, the asset service isn't where that logic should live
The logic still needs to be in the asset service since that's where the deletion is initiated. Ideally I feel like it could be in the trash service, but it isn't for the moment. |
Move logic to asset deletion check
b6631cd
to
4b4d7fc
Compare
…mmich-app#14777) fix: don't delete offline files from disk when emptying trash Move logic to asset deletion check
…mmich-app#14777) fix: don't delete offline files from disk when emptying trash Move logic to asset deletion check
…mmich-app#14777) fix: don't delete offline files from disk when emptying trash Move logic to asset deletion check
Right now, immich deletes files after 30 days that are excluded or outside of import paths, including original files.
This is not intended, if a new exclusion pattern is added or an import path is changed and one or more assets are removed due to it, we should not be deleting original files.
This bug is in my opinion quite serious and could cause data loss.
I can't find the original bug report (github? reddit?)
Edit: This might be it: https://www.reddit.com/r/immich/comments/1gu61r3/immich_tried_to_remove_my_external_libraries_file/
Also adds some e2e tests related to offline files