Skip to content

Review suggests the comic comicbox refused for a missing issue (#1053) - #1055

Merged
ajslater merged 1 commit into
developfrom
claude/issue-1053-comicbox-refused
Nov 25, 2026
Merged

ajslater merged 1 commit into
developfrom
claude/issue-1053-comicbox-refused

Conversation

@ajslater

@ajslater ajslater commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Part of #1053. It addresses the issue's complaint that an issue the library holds under another volume "isn't flagged for review".

What changed

  • Suggestions for missing entries. The matcher reads MatchResult.refused. An entry that stays missing but has refused comics keeps the likeliest one as the new ReadingListEntry.suggested_comic (migration 0063) and is flagged needs_review. The order is: other-volume (same name, issue and cover year, another volume) before cover-year, then live comics before pending deletes, then lowest pk.
    • Combine, the hand-entry heal and rematch all store the suggestion.
    • A found comic, or a person's pick, clears it.
    • combine._entry used to clear needs_review on any comicless entry. Now it keeps the flag only when there is a suggestion.
  • Where the suggestion lives. Today a review is a matched comic plus needs_review. Storing a refused comic as comic would count it as owned and readable, and it is another volume's issue, which is this bug. So it gets its own field, and the entry stays missing.
  • Edit Issues shows "Missing · maybe Batman (2011) Circleci #1" with a Use button, which sends the existing pick PATCH. Marking it missing is the existing way to say no.
    • The suggestion is sent only if the viewer may see that comic. A missing entry is visible to everyone who sees the list.
    • Accept All Best Guesses takes matched guesses only. When only suggestions are left it is disabled, and a hint explains why.
  • Uses comicbox 5.7.1. develop already pins comicbox[pdf]~=5.7.1 and locks it.
  • Per-kind name keys. I checked every codex caller of entry_keys, variant_keys and match_comics.
    • matcher.py and combine go through comicbox, which guards the new volume key.
    • overlay.py joined hand edits by any shared key, so the volume key would have let X-Men (1963) v1 Circleci #1's edit land on X-Men (1991) v1 Circleci #1. The overlay now refuses a shared key when Discriminators.conflicts, as comicbox's new entry_keys docstring says.
    • Keys are computed from references each time, never stored, so no stored keys go stale.
    • variant_keys has no codex caller.

Tests

  • Matcher: an other-volume refusal and a cover-year refusal each become a suggestion. A volume the library lacks suggests nothing. A found entry has no suggestion. An undated volume-only entry finds the start-year volume of that number, which before needed a cover year.
  • Entries: an import stores the suggestion and the API shows it. Use picks it and clears it. Accept All leaves a suggestion alone. A rematch first suggests, then finds the comic and clears the suggestion.
  • ACL: a hidden comic is not suggested and a visible one is. With the check removed, the hidden case fails.
  • Overlay: an edit of another volume that shares the volume key is not assigned.
  • Frontend: the suggestion text, the Use PATCH, and Accept All being disabled with its hint.
  • The plan's test matrix (tests/test_reading_list_volumes.py) passes again on the new comicbox.

Gates

Rebased onto develop after #1054 was squash-merged. Run on the released comicbox 5.7.1 from PyPI. Its reading-list code differs from the reviewed PR wheel only in docstring examples and CLI output.

make fix passes. make lint passes with 0 errors and 0 warnings. make ty passes. make test: vitest passes; pytest has 2881 passed, 2 skipped and 10 failed, all in tests/test_oidc_login.py. Those 10 fail identically on develop without this PR. They started with develop's dependency update, which moved django-allauth from 65.22.1 to 65.23.0 (AttributeError: 'NoneType' object has no attribute '_on_login_processed' in allauth.socialaccount.helpers.complete_social_login). So expect the Test Python CI job to fail until that is fixed separately.

Not built / not verified

  • Not verified: the review dialog was not checked in a browser. The vitest mounts cover it.
  • Not built: dumps and restores do not carry suggested_comic. The next rematch rebuilds it.
  • Not built: a copied list does not copy suggestions. The copy's rematch rebuilds them.
  • Not built: clearing a suggested row's flag with the API's needs_review: false doesn't stick, because the next rematch flags it again. The UI doesn't send that for missing rows; Mark missing is the lasting no.

🤖 Generated with Claude Code

Uses comicbox's MatchResult.refused and per-kind name keys (comicbox PR
285, unreleased; the pin ~=5.7.1 does not resolve from PyPI yet).

- An entry the matcher leaves missing keeps its likeliest refused comic
  as ReadingListEntry.suggested_comic (migration 0063) and is flagged for
  review: another volume's issue of its cover year first, then a cover
  year more than one off; live before pending delete, then lowest pk.
  Combine, the hand-entry heal and rematch store it; a found comic or a
  person's pick clears it.
- Edit Issues shows "Missing · maybe <comic>" with Use. The suggestion is
  shown only when the viewer may see that comic: a missing entry is seen
  by everyone who sees the list. Accept All Best Guesses takes matched
  guesses only and says why it is off when only suggestions are left.
- The overlay assigns a hand edit by a shared key only when the volumes
  do not conflict: the new volume key is shared by X-Men (1963) v1 #1 and
  X-Men (1991) v1 #1, as comicbox's entry_keys now documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ajslater
ajslater force-pushed the claude/issue-1053-comicbox-refused branch from 813babe to 5ebe577 Compare November 25, 2026 19:34
@ajslater
ajslater marked this pull request as ready for review November 25, 2026 19:34
@ajslater
ajslater merged commit 71f92af into develop Nov 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant