Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f42fc5b24aca8bbf79147f6def2f0cb4f2e0d01c13a1943c05526f5677185bf4
Ticket: a78a1bd913ad45447142f342413a3af51c677827
Repository lifecycle: edit, seed, list, settings, delete
User & Date: dmestas on 2026-08-18 02:01:43
Changes

  1. comment changed to:
    `repo.add` now covers creating and adopting a repository, and `/new` asks the three questions a forge always asks. What follows are the affordances around that which a person coming from GitHub, Forgejo or fossil will look for and not find. None is load-bearing on its own; together they are the difference between "the API can register a repository" and "a person can run their project here".
    
    Roughly in order of how often their absence will be noticed.
    
    ## 1. Editing a repository after it exists
    
    `description` can be set at creation and never again. The column and `SetRepoDescription` exist; there is no op, no CLI verb and no settings page. A typo in a description currently requires a `sqlite3` prompt.
    
    Wanted: `repo.update` (description, and later default branch), a `quarry repo describe`, and a repository settings page behind admin.
    
    **Renaming** belongs here too and is harder than it looks: the name is in every URL, in the OLTP registry, in the derived-data directory name, in the mirror row, in sync-user rows, and in the event subjects (`zit.evt.<name>.*`). The last one is the interesting one — a rename either migrates the durable consumer or accepts a re-fold. Worth its own design note before anyone starts.
    
    ## 2. Seeding a new repository
    
    GitHub offers README, .gitignore and a license at creation, and the reason is not convenience: a repository with a first check-in has a default branch, so everything downstream — the timeline, the file tree, the clone URL instructions — has something to show. Ours creates an unborn trunk and shows quick-start instructions instead, which is honest but is a step the user then has to perform by hand.
    
    Wanted: optional `readme` (seeded from name + description), `license` from a short list, and `.zitignore` from a small template set. This needs quarry to make a check-in on the user's behalf, which it already does for wiki, ticket and forum writes, so the mechanism exists.
    
    ## 3. The repository list does not scale
    
    `/` renders every repository with no pagination, sort or filter. At 23 that is fine. It is the same shape that made the timeline unusable — render everything, sort nothing — and it will be noticed the same way.
    
    Wanted: sort (recently active, name, size), a name filter, and a limit with paging. Sorting by activity needs a per-repo "last event" which the new `event` table already answers cheaply.
    
    ## 4. An About panel on the repository page
    
    The description is on the listing and nowhere else. A reader who lands on `/r/<name>` from a link sees nav and a file tree and no statement of what the project is. Forgejo and GitHub both put description, topics, license and size in a sidebar.
    
    Wanted: description and repository size to start. Size is cheap — `zit stat` reports it — and answers "how big is this before I clone it", which nothing currently does.
    
    ## 5. Destroying a repository
    
    `repo.remove` unregisters and deliberately leaves the store on disk, which is right as a default. There is no way to actually delete one, so an operator who wants the disk space goes to the shell — and does it without quarry knowing, which is worse than doing it for them.
    
    Wanted: `repo.delete` with an explicit confirmation (name typed back, the standard pattern), removing the store, the derived index, the mirror row and the sync users. This is the most destructive op quarry would have and should be the most deliberate.
    
    ## 6. Topics and a homepage URL
    
    Cheap, purely additive, and the main way a multi-repository forge stays navigable. Two more columns and a filter on the listing.
    
    ## 7. Releases
    
    zit has tags and fossil surfaces them as a first-class page. quarry shows tags on check-ins but has no release view — no "here are the versions of this project, newest first, with their tarballs". The tarball endpoint now works, so this is mostly assembly.
    
    ## Explicitly not wanted
    
    - **Stars, watching, forks.** Social graph, not forge mechanics.
    - **Line-anchored review comments.** 0002 §1 makes this a deliberate divergence: conversations anchor to artifacts and the UI says "discuss this check-in", not "review".
    
    ## Related
    
    - Account management in the API — until an admin can grant access without a shell, most of the above is single-user convenience.
    - Private repositories — visibility belongs in the settings page from item 1, and in `repo.add` from the moment a repository exists.
    
    
  2. status changed to: "Open"
  3. title changed to:
    Repository lifecycle: edit, seed, list, settings, delete