Fix re-grab lifecycle: resolve on import, blocklist bad release, sync cards - #19
Merged
Merged
Conversation
… cards Re-grab previously resolved the issue the moment a release was pushed to the download client, often re-grabbed the identical bad release, and every admin's copy of the issue card kept live buttons — letting a second click queue a duplicate download. - Exclude the previously grabbed release from the re-search and mark it failed (blocklisted) after the replacement grab; skip season packs when fixing a single episode - Keep the issue open until the replacement actually imports: the poller watches the arr queue, resolves + DMs the reporter on import, and reopens the cards with a warning if the download dies - Guard against double-fires (already resolved / re-grab in flight) and sync outcomes onto every broadcast copy of the card (new issue_messages table); dashboard re-grab and resolve use the same lifecycle - Add a dashboard toggle to disable the "All seasons" option in the TV season picker, for servers with strict season quotas (persisted) Co-Authored-By: Claude Opus 5 <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.
Summary
Fixes the issue-handling / re-grab workflow gaps where a Re-grab click could "resolve" an issue that wasn't actually fixed, re-download the same bad release, or queue duplicate downloads.
regrab_state) and the issue stays open. The notification poller watches the arr queue: on import it resolves the issue in Seerr and DMs the reporter; if the download leaves the queue without importing it flags the failure and re-broadcasts actionable cards to the handlers.issue_messagestable; outcomes are synced onto all copies and stale buttons are stripped. Re-grab/Resolve refuse when the issue is already resolved or a re-grab is in flight (with a 6h staleness escape hatch for stuck downloads). The dashboard's re-grab/resolve actions use the same lifecycle.New
tracked_issuescolumns and theissue_messagestable are applied via the existing idempotent migration path — no manual DB steps.Test plan
🤖 Generated with Claude Code