Overview
| Artifact ID: | 0bed3c5350c7a9ba6853a9b65f9c511058aa45581ce7d9befa0fcffe5a9470c2 |
|---|---|
| Ticket: | dd828b32a1928fb32d8aed70ab00ddfafb150309
Ticket capability audit against fossil: what we have, what we lack |
| User & Date: | ai-local on 2026-08-23 10:36:34 |
Changes
- icomment:
Re-audited 2026-08-23 against fossil's own source in the mirror we serve (src/tktsetup.c zDefaultTicketTable), not from memory. Every gap this ticket ranked is now either shipped or tracked, so it closes. ## Gap 1 — no saved reports: SHIPPED Saved views: a NAME for a report URL the tracker can already produce, per account and per listing, in the rail with a way to forget one. Deliberately not fossil's reportfmt, which stores and executes user-authored SQL — this ticket said not to copy that, and it wasn't. Closed as aa28c880. ## Gap 2 — fixed write form: SHIPPED for the default schema Fossil's default ticket table has ten authorable columns: type, status, subsystem, priority, severity, foundin, private_contact, resolution, title, comment. quarry now writes nine of them. private_contact is the tenth and stays unwritten on purpose — fossil withholds it, so we do not author it either. Three defects found and fixed while auditing: - **The new-ticket form discarded four fields.** It has always rendered Type, Severity, Priority and Subsystem, and ticket.new has always accepted them, but the web handler forwarded only title, status and comment. A reader filled four controls, was told the ticket was filed, and the values were gone. A control that accepts what you type and drops it is worse than one that is not there. - **foundin could be read and never written.** It was in the fold, in the detail page's field order, and in no write path at all — not the op, not the new form, not the edit form, not the sidebar editor. All four now carry it. - **The sidebar editor listed six fields where the schema has nine.** It is the control a writer actually sees (the read-only field table only renders for readers who cannot edit), so a field missing from it is a field nobody can set. Regression test: internal/harness/ticket_fields_test.go files a ticket with every field the form offers and asserts each one survives. Arbitrary custom columns remain unauthorable — tracked by 0eafaa19. ## Gap 3 — no capability model for fields: repository-level SHIPPED, field-level TRACKED RFC 0004 landed fossil's capability model natively, and every ticket op now declares real fossil letters: ticket.new n, ticket.set cw, ticket.get/list/config r. That is the model this ticket said we lacked. What it did not buy: `e` exists in the model (it is half of the stock developer category "ei") and is enforced NOWHERE — no op declares it, and the ticket page cannot see the viewer's capabilities at all. So private_contact and contact are still DROPPED rather than gated, exactly as this ticket described, and the reason is now precise: the letter exists, the plumbing to consult it on a render does not. Tracked by 9561ac07. ## Gap 4 — no is_private support: SHIPPED The index carries a folded `private` column (a column, not a row in ticket_field, so the privacy filter costs no join — a filter that costs a join is one somebody eventually skips), with a migration that re-derives it from is_private cards on existing indexes. Listings, counts and facets all exclude it; ticket.set resolves through TicketByPrefixAll so a private ticket can still be edited and un-privated by a token-holder. Stricter than fossil: private tickets are hidden from every reader rather than shown to `e` holders. Same root cause as gap 3, same tracking ticket. ## What the recommendation said, and what happened "Reports first, then field-level write, then capabilities." Reports shipped first, field-level write shipped for the default schema, capabilities remain. TH1 was not adopted, as recommended.
- mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"