Deleting an ebook library leaves orphaned ebook records #24

Open
opened 2026-10-18 16:23:37 +00:00 by jfro · 0 comments
Owner

From Nye's review of #17 (F4).

Deleting a library nilifies ebooks.library_id, so its ebooks stay in the table with no library. No scan will ever clean them up, and they keep showing as downloads on their books.

Fix: delete the library's ebooks with it (on_delete: :delete_all, or delete them in Libraries.delete_library/1 along with their stored cover thumbnails), keeping the books in the catalog.

From Nye's review of #17 (F4). Deleting a library nilifies `ebooks.library_id`, so its ebooks stay in the table with no library. No scan will ever clean them up, and they keep showing as downloads on their books. **Fix:** delete the library's ebooks with it (`on_delete: :delete_all`, or delete them in `Libraries.delete_library/1` along with their stored cover thumbnails), keeping the books in the catalog.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/fuzzy_catalog#24
No description provided.