feat(monitoring): author-monitoring exclusion list — never re-add deleted books#715
Draft
kevinheneveld wants to merge 1 commit into
Draft
Conversation
…eted books Deleting a book by a monitored author only triggered the next author sweep to re-discover it as "missing" and add it straight back (then auto-search re-grabbed it). Add an exclusion list the sweep consults so an explicitly-removed book stays out. - New AuthorMonitoringExclusion entity + repository (idempotent per identity: dedups on normalized ASIN, else a normalized title+author key) + table migration. - AuthorMonitoringService.SyncAuthorInternalAsync loads exclusions once and skips matching catalog books (ExcludedCount) before the library-match/add — reusing the existing NormalizeIdentifier/BuildTitleAuthorKey helpers. - LibraryController delete gains excludeFromAuthorMonitoring; when set, an exclusion is recorded before the book is deleted. Controller exposes GET/DELETE /exclusions. - Frontend: exclusions management section on the settings tab + "keep out of author monitoring" checkbox in the delete dialog. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Deleting a book by a monitored author was futile: the next author-monitoring sweep re-discovered it in the author's catalog, saw it "missing" from the library, and added it straight back — after which automatic search re-grabbed it. There was no way to say "remove this and keep it out."
Change
An exclusion list the author sweep consults:
AuthorMonitoringExclusionentity + repository.AddAsyncis idempotent per identity — it dedups on a normalized ASIN when present, else a normalized title+author key (mirrors how the sweep matches catalog books to the library). New table viaAddAuthorMonitoringExclusionsmigration.AuthorMonitoringService.SyncAuthorInternalAsyncloads exclusions once per sweep, builds ASIN + title-key sets, and skips matching catalog books (ExcludedCount) right after the language filter and before the library-match/add. Reuses the existingNormalizeIdentifier/BuildTitleAuthorKeyhelpers (no duplication).LibraryController.DeleteAudiobookgainsexcludeFromAuthorMonitoring; when set, an exclusion is recorded before the book is deleted.AuthorMonitoringControllerexposesGET/DELETE /exclusions.Testing
dotnet buildclean; full suite 1016 passed / 0 failed (newMonitorAuthorAsync_SkipsExcludedBooks_WithoutAddingThem+ the migration/snapshot integration tests);vue-tscclean.🤖 Generated with Claude Code