Overview
| Artifact ID: | c71fb1c17dbb80f9a74c789c5790a2c757df1aa4aaf0e3893ded6fa170c8b961 |
|---|---|
| Ticket: | 7a649ff845e2169bb12f0f168744a71d1ae79137
Deleted wiki pages still appear in the wiki list |
| User & Date: | dmestas on 2026-08-18 02:52:18 |
Changes
- comment changed to:
Fossil deletes a wiki page by writing a wiki artifact with an EMPTY body. quarry folds that as an ordinary edit, so the page stays in the wiki list forever, showing blank content. ## Observed libfossil, comparing quarry's list against `fossil wiki list -R libfossil.fossil`: fossil: 12 pages quarry: 16 pages The four extra are pages fossil considers deleted, and each one's newest edit has a zero-length body: scratchpad 14 edits last body 0 bytes test-page 3 edits last body 0 bytes th1ish 9 edits last body 0 bytes branch/rebuild-2025 ## Expected A page whose newest edit has an empty body is deleted and should not appear in the wiki list. Its HISTORY must remain readable — the edits are real artifacts and a deleted page is still part of the record — so this is a listing rule, not a fold that discards rows. The likely shape: `WikiPages()` filters to titles whose newest edit has a non-empty body, and the page itself renders a "this page was deleted" state with its history intact, the way a deleted ticket or a shunned artifact would. ## Why it was not noticed The parity harness counts wiki pages from fossil's `tag` table (`tagname LIKE 'wiki-%'`), which lists every page that has ever existed — the same over-count quarry produces — so the two agreed for the wrong reason. Only `fossil wiki list`, which asks for LIVE pages, shows the difference. Worth fixing in the parity check at the same time: a comparison that agrees because both sides are wrong the same way is worse than no comparison, because it is evidence of correctness that is not. ## Scope Small and self-contained. The same question applies to technotes, which fossil also deletes by emptying; worth checking while in there. - status changed to: "Open"
- title changed to: "Deleted wiki pages still appear in the wiki list"