Skip to content

Log why a scanned folder was not auto-matched - #1340

Merged
Doezer merged 1 commit into
mainfrom
claude/project-thread-di39rs
Nov 14, 2026
Merged

Doezer merged 1 commit into
mainfrom
claude/project-thread-di39rs

Conversation

@Doezer

@Doezer Doezer commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Requested by Vincent · project thread

Dernier reste de Questarr-mgmt #48 (après #1316, #1317, #1335).

Description

Quand un dossier du scan de bibliothèque finit dans « Needs Review », le serveur journalise maintenant pourquoi (niveau info, message Library scan: folder left in Needs Review: <raison>) :

  • raison : « IGDB returned no candidates » ou « best candidate scored below the auto-match threshold » ;
  • détails : requête envoyée à IGDB, année lue dans le dossier, nombre de candidats, seuil, et le meilleur candidat avec son nom, son année et son score.

Une erreur de recherche IGDB garde son log d'avertissement existant, sans doublon. Aucun changement de comportement ni de client/src (pas de capture).

Test plan

  • library-scanner.test.ts : assertion sur le log du dossier sans candidat (51 passent)
  • npm run check, ESLint, Prettier
  • doc docs/LIBRARY_IMPORT.md mise à jour

Closes Doezer/Questarr-mgmt#48


Generated by Claude Code

Summary by CodeRabbit

  • Improvements
    • Server logs now provide clearer explanations when a library folder remains in Needs Review, including whether no matching candidates were found or the best candidate did not meet the auto-match threshold.
  • Documentation
    • Updated the Library Import guide to explain where to find these diagnostics and what information they include.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RP6NCRCjV1weQmTN1cELiw
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T13:24:53.413821Z
We couldn’t complete this review. Comment @codex review to try again.
6a19252 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Doezer Doezer self-assigned this Nov 14, 2026

Doezer commented Nov 14, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The scanner now distinguishes failed IGDB searches from successful searches with no acceptable match. For successful unmatched searches, it logs the query, candidate count, threshold, and available best-match details. The documentation and test cover these diagnostics.

Changes: IGDB Match-Failure Diagnostics

Layer / File(s) Summary
Match result diagnostics and logging
server/library-scanner.ts, server/__tests__/library-scanner.test.ts, docs/LIBRARY_IMPORT.md
Match results record whether an IGDB search failed. Successful unmatched searches log diagnostic details. The test checks the no-candidate message, and the documentation directs readers to the server log.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: claude

Merge Risk: Minimal · up to 6a192

This change adds a log message explaining why a scanned folder stays in Needs Review. It does not change matching behavior, so the risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: folders left unmatched now get a log entry that explains the cause. The changeset adds that diagnostic logging in library-scanner.ts, with a matching test and a docs …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: folders left unmatched now get a log entry that explains the cause. The changeset adds that diagnostic logging in library-scanner.ts, with a matching test and a docs note. The title is short, specific, and scans well in history.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 478917ea-70e3-4099-8270-96ae5c837435
Commits

Reviewing files that changed from the base of the PR and between d248121 and 6a19252.

Files selected for processing: 3

  • docs/LIBRARY_IMPORT.md
  • server/__tests__/library-scanner.test.ts
  • server/library-scanner.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

@sonarqubecloud

Copy link
Copy Markdown

@gitar-bot

gitar-bot Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Code Review ✅ Approved 🟡 Medium risk

Adding info logs with folder names, IGDB queries, and candidate details could expose private library naming data in server logs.

Adds info-level logging for library scan folders left in Needs Review, recording the reason (no IGDB candidates or best candidate below the auto-match threshold) along with the query, parsed year, candidate count, threshold, and best candidate details. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Approved

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@gitar-bot gitar-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitar has auto-approved this PR (configure)

@Doezer Doezer added documentation Improvements or additions to documentation enhancement New feature or request library-scanner logging labels Nov 14, 2026
@Doezer

Doezer commented Nov 14, 2026

Copy link
Copy Markdown
Owner Author

wshm · Automated triage by AI

📊 Automated PR Analysis

✨ Type feature
🟢 Risk low

Summary

Adds informational logging in the library scanner to explain why a scanned folder ended up in 'Needs Review' (no IGDB candidates or best candidate below the auto-match threshold), while avoiding duplicate logs when a search error already logged a warning. Includes a test assertion for the new log and a documentation update.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Linked issues: #48


Analyzed automatically by wshm · This is an automated analysis, not a human review.

@codecov

codecov Bot commented Nov 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
server/library-scanner.ts 94.11% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Doezer
Doezer merged commit 9c521c4 into main Nov 14, 2026
19 checks passed
@Doezer
Doezer deleted the claude/project-thread-di39rs branch November 14, 2026 13:30
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Pull request is closed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@Doezer Doezer added this to the 1.7.0 milestone Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request library-scanner logging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants