Overview
| Artifact ID: | 45487b309a44ff6c06373066a300f4cc1959dd3d6d6e2a9a347a73d7b469119b |
|---|---|
| Ticket: | dd828b32a1928fb32d8aed70ab00ddfafb150309
Ticket capability audit against fossil: what we have, what we lack |
| User & Date: | dmestas on 2026-08-18 20:55:34 |
Changes
- Untracked field cmimetype: "text/x-markdown"
- comment changed to:
Audited against fossil own source and docs in the corpus we serve (`www/tickets.wiki`, `www/custom_ticket.wiki`, `src/tktsetup.c`, `src/report.c`), not from memory. ## What we already match - **Artifact model.** Fossil folds ticket-change artifacts in timestamp order into a TICKET (current state) and TICKETCHNG (per-change) pair. quarry does the same with `ticket`, `ticket_field` and `ticket_change`. Derived and rebuildable on both sides. - **Append vs replace.** Fossil marks a J card to append rather than replace; `comment` is appended, most fields replaced. quarry handles the `+` prefix (`index.go`, CutPrefix) — 1,569 `+comment` cards in the fossil corpus fold correctly. - **New-style tickets.** Per-comment `icomment` with its own `mimetype`, rather than one concatenated `comment` in a single format. We fold and render both. - **Arbitrary schema on READ.** Trackers define their own columns; we render whatever fields a ticket carries rather than a fixed list. ## Fixed while auditing - **private_contact was published.** Fossil labels it "Not publicly visible" and gates it behind capability `e` (`enable_output [hascap e]`). We rendered it to everyone: 2,650 values across the corpus, some of them real e-mail addresses in fossil own tracker. Now dropped outright, since quarry has no equivalent capability to gate on. ## Gaps, ranked 1. **No saved reports.** Fossil `reportfmt` table stores named SQL reports with owner and column config, served at `/reportlist`, `/rptview`, `/rptnew`, `/rptedit`, addressable by tag. This is how anyone works a tracker of tk size — "my open tickets", "severity>=3 in subsystem X". We have one list plus an open/closed toggle. Biggest functional gap by far, and the one a maintainer would notice first. 2. **Fixed write form.** Fossil admins define the ticket table (`/tktsetup_tab`) AND the new/view/edit forms (TH1 templates: `tktsetup_newpage`, `viewpage`, `editpage`, plus `com`, `keytplt`, `rpttplt`, `timeline`, `change`). quarry writes only title/status/resolution/comment, so a repository whose schema has `subsystem`, `priority`, `assignee` or `foundin` can be READ but not fully authored — quarry can never set those fields. 3. **No capability model for fields.** `e` is not the only one; fossil gates ticket surfaces on `r` (read), `n` (new), `w` (write/append), `a`/`s` (admin). quarry has read/write/admin per repository and nothing field-level, which is why the private_contact fix had to be "drop" rather than "gate". 4. **No `is_private` ticket support.** Two repositories in the corpus carry the field. Fossil can mark a whole ticket private; we index the field and ignore its meaning. ## Recommended order Reports first — it is the largest gap, it is pure read, and it needs no schema work. Then field-level write, which needs a form driven by the repository schema rather than a fixed one. The capability model can follow, since dropping private fields is already safe. Deliberately NOT recommending TH1. Fossil templates are a scripting language embedded in the repository config; adopting it would put an interpreter in quarry render path for a customisation problem a schema-driven form solves without one.
- severity changed to: "Important"
- status changed to: "Open"
- title changed to:
Ticket capability audit against fossil: what we have, what we lack
- type changed to: "Feature_Request"