Skip to content

feat(import): fill in what is missing, dismiss a stopped run, clear history - #24

Merged
Digit4w merged 1 commit into
devfrom
feat/fill-missing-and-history
Sep 14, 2026
Merged

Digit4w merged 1 commit into
devfrom
feat/fill-missing-and-history

Conversation

@Digit4w

@Digit4w Digit4w commented Sep 14, 2026

Copy link
Copy Markdown
Owner

An artwork warming run died silently: the container restarts, reconciliation
closes the row as interrupted, and nobody learns that hundreds of titles were
left 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, because
two routes for the same effect is how the second one falls behind.

Dismissing is not deleting, the same distinction notifications already
makes: the row stays in history and what goes away is the request for attention.
dismissed_at is a stamp and not a boolean, for the same reason as
cancel_requested_at — when somebody dismissed is a fact a 1 would lose.

import_jobs.kind separates import, enrich and refresh, and the
partial unique index moved from (status) to (status, kind): warming one
library 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

…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.
@Digit4w
Digit4w merged commit b8e6700 into dev Sep 14, 2026
2 checks passed
@Digit4w
Digit4w deleted the feat/fill-missing-and-history branch September 14, 2026 06:46
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