Commit c367b78f17
c367b78f17cf44375c4fb15ba8dc6668fa0d71e0
parent: 5d1843ee18
Verified · cmc
cmc <hello@cleberg.net> · 2026-09-12 01:29 UTC
spec, wiki: fix a stale index signature and column alignment
The spec's snippets_owner index still read (owner_id, created_at); the
migration and everything built on it uses (owner_id, id). The owner
page's snippets link renders below the repository list, not beside its
heading. Realign the three snippet rows in Parity.org, one of which
had drifted a character wider than its neighbours.
Ref #195
.gitbay/wiki/Parity.org
+3 −3
| @@ -192,9 +192,9 @@ always markdown. |
| 192 | 192 | | release delete | yes | yes | yes | |
| 193 | 193 | | release asset add | yes | no | n/a | |
| 194 | 194 | | release asset remove | yes | no | yes | |
| 195 | | | snippet create, edit, delete| yes | yes | no | |
| 196 | | | snippet show, list | yes | yes | no | |
| 197 | | | snippet file set, get, remove| yes | yes | no | |
| 195 | | snippet create, edit, delete | yes | yes | no | |
| 196 | | snippet show, list | yes | yes | no | |
| 197 | | snippet file set, get, remove | yes | yes | no | |
| 198 | 198 | |
| 199 | 199 | No row is web-only any more. Blame, file editing, log at a ref, |
| 200 | 200 | archive, the public listing and the wiki were all in that state — a |
docs/specs/2026-09-11-snippets-design.md
+2 −2
| @@ -69,7 +69,7 @@ CREATE TABLE snippets ( |
| 69 | 69 | created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')), |
| 70 | 70 | updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')) |
| 71 | 71 | ); |
| 72 | | CREATE INDEX snippets_owner ON snippets(owner_id, created_at); |
| 72 | CREATE INDEX snippets_owner ON snippets(owner_id, id); |
| 73 | 73 | |
| 74 | 74 | CREATE TABLE snippet_files ( |
| 75 | 75 | snippet_id INTEGER NOT NULL REFERENCES snippets(id) ON DELETE CASCADE, |
| @@ -196,7 +196,7 @@ a description and visibility form, and delete. All POSTs go through |
| 196 | 196 | returns to the page with the message and a missing snippet is the 404 |
| 197 | 197 | page. |
| 198 | 198 | |
| 199 | | The owner page shows a `snippets` link beside the repositories heading |
| 199 | The owner page shows a `snippets` link below the repository list |
| 200 | 200 | when the owner has a public snippet, or when the viewer is the owner. |
| 201 | 201 | |
| 202 | 202 | Templates: `snippets.html`, `snippet.html`, `snippetnew.html`. Stylesheet |