Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthrough
ChangesRadarr search gating
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Warning Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the movie’s state, Comment |
This comment has been minimized.
This comment has been minimized.
|
Re-opened for human review. EDIT: Reviewed and it seems it was a false positive. |
Description
When a user requests a movie that already exists in Radarr, Seerr initiates a Radarr movie search that ignores whether the movie is available or not. This effectively bypasses the minimum availability setting (e.g., whether the movie is released or not).
This change adds a check of the movie's availability status before triggering the Radarr search. This applies in two places, when the movie is already monitored and when it exists but is unmonitored and Seerr re-enables it.
AI Disclosure: I used Claude Code to understand the codebase, write 2 of the 4 tests following my structure from the first two, and for a final review of the change.
Searching for a not-yet-available movie bypasses the minimum availability setting and increases the chance of Radarr grabbing an incorrect, but identically named, title.
How Has This Been Tested?
I added test cases covering the changed logic and following the existing test patterns.
I ran npm test -- server/api/servarr/radarr.test.ts to confirm all existing and new tests pass.
Screenshots / Logs (if applicable)
Checklist:
pnpm buildpnpm i18n:extractSummary by CodeRabbit