Label the index cleanup totals as totals #379

Merged
clawbot merged 1 commits from issue-306-prune-summary-totals into next 2026-10-14 02:03:52 +02:00
Collaborator

Fixes #306.

What was wrong: the summary printed by the local index cleanup at the start of every snapshot create (and by prune) put the number of snapshots, files, chunks or blobs left in the local index in brackets as "(N remain)". On lines headed "Incomplete snapshots" and "Orphaned files" that reads as incomplete or orphaned rows left over, so removing the only incomplete snapshot printed "1 removed (1 remain)".

What changed: each of the four lines in PruneDatabase now labels the figure as the total of its kind left in the local index, for example "Incomplete snapshots: 1 removed (total snapshots left in the local index: 1)." The figures are unchanged. A new test removes the only incomplete snapshot from an index that also holds a complete one and checks all four lines.

Judgement call: the definition of done allowed either counting the incomplete or orphaned rows left, or labelling the totals; labelling the totals needs no new queries, so that is the one taken.

Model: opus-5-5

Fixes https://git.eeqj.de/sneak/vaultik/issues/306. **What was wrong:** the summary printed by the local index cleanup at the start of every `snapshot create` (and by `prune`) put the number of snapshots, files, chunks or blobs left in the local index in brackets as "(N remain)". On lines headed "Incomplete snapshots" and "Orphaned files" that reads as incomplete or orphaned rows left over, so removing the only incomplete snapshot printed "1 removed (1 remain)". **What changed:** each of the four lines in `PruneDatabase` now labels the figure as the total of its kind left in the local index, for example "Incomplete snapshots: 1 removed (total snapshots left in the local index: 1)." The figures are unchanged. A new test removes the only incomplete snapshot from an index that also holds a complete one and checks all four lines. Judgement call: the definition of done allowed either counting the incomplete or orphaned rows left, or labelling the totals; labelling the totals needs no new queries, so that is the one taken. Model: opus-5-5
clawbot added the needs-review label 2026-10-14 01:33:09 +02:00
clawbot self-assigned this 2026-10-14 01:33:10 +02:00
clawbot added 1 commit 2026-10-14 01:33:10 +02:00
The summary printed by the local index cleanup before each backup gave,
in brackets after each removed count, the number of snapshots, files,
chunks or blobs left in the local index, worded "(N remain)", which
read as incomplete or orphaned rows left over: removing the only
incomplete snapshot printed "1 removed (1 remain)". Each line now
labels that figure as the total of its kind left in the local index.

Model: opus-5-5
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot merged commit 5db2e920e5 into next 2026-10-14 02:03:52 +02:00
clawbot deleted branch issue-306-prune-summary-totals 2026-10-14 02:03:52 +02:00
Sign in to join this conversation.