Repository navigation
feat(import): fill in what is missing, dismiss a stopped run, clear history - #24
Merged
Merged
Conversation
…istory Three things the owner asked for after picking the two-step mockup, and two of them turned out to be one. Resuming after a sudden stop and starting warming by hand are the SAME action. Warming skips whatever is already stored — that is its definition — so "continue where it left off" does not need to know where it left off: run it again and it finds what is left. That is why the same route serves Continue and Fill in missing. And it is not the Refresh that already exists: that one passes force and fresh and rereads the whole library, costing everything instead of costing the gap. The new one is enrich, the same kind the import fires on its own — what differs is only who pressed. A stopped run was silent until now. A restarted container closes the row as interrupted and nobody learned that hundreds of titles had been left without artwork. The status route now returns that row alongside the running one, and the screen can offer the way out. Dismissing is not deleting: the row stays in history and what goes away is the request for attention, which is the same distinction notifications draws between read and dismissed. A timestamp rather than a boolean, like cancel_requested_at and pinned_at — WHEN somebody dismissed is a fact a 1 would lose. Clearing history removes finished rows only. What is running stays, and not out of care: deleting a live job's row would leave the executor writing counters into a row that does not exist, and the zombie reconciliation without the reference it closes jobs by. It does not touch event_log — what entered the library is still recorded there. pending counts external IDENTITIES, not titles: two titles pointing at the same identity are one lookup, because warming deduplicates before starting. A larger number would promise work that never happens.
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.
An artwork warming run died silently: the container restarts, reconciliation
closes the row as
interrupted, and nobody learns that hundreds of titles wereleft without art. Three pieces close that hole.
Filling is the same work as resuming. Warming skips what is already stored,
so picking up a run that stopped halfway is literally running it again — it
finds what is left. One route (
POST /api/entries/fill) serves both, becausetwo routes for the same effect is how the second one falls behind.
Dismissing is not deleting, the same distinction
notificationsalreadymakes: the row stays in history and what goes away is the request for attention.
dismissed_atis a stamp and not a boolean, for the same reason ascancel_requested_at— when somebody dismissed is a fact a1would lose.import_jobs.kindseparatesimport,enrichandrefresh, and thepartial unique index moved from
(status)to(status, kind): warming onelibrary while another import runs is legitimate, and the old index forbade it.
Clearing history drops finished runs only — a running one is not history yet.
Counterpart: Digit4w/watchpile-client, same branch name. Merge this one first.
🤖 Generated with Claude Code