Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

Give every account a profile page and a directory of accounts

a6b42433c087ab0c936e34a1d05cf488db7a92d6 · Keenan Nemetz · 8d ago · parent 727df386

Give every account a profile page and a directory of accounts

Clicking a name now opens /u/<name>: the issues and changes somebody
opened, the reviews they gave, the comments they left, and the
repositories that work is in. The numbers and the feed are grouped reads
of the same event rows the activity feed pages through, so a profile
cannot disagree with the feed, and every read is limited to the
repositories the reader may open. A private repository's work is not a
number an outsider gets to learn, so two readers can see different
totals and the page says what its numbers cover.

/u lists the roster. Account names are public on this instance; their
activity is not. Both pages ask crawlers to leave them out of an index.

@name in an issue, a comment, a change request, or a release note links
to the account it addresses, using the mention scanner CI already
evaluates: what reads as an address on the page is what a workflow sees.
A name that is not an account stays text, and code samples are skipped.

Git author names are not linked and commit counts are not shown. A
commit author is a name somebody typed, not the credential that proves
an account, and the index only keeps the top eight authors of each
default branch anyway.

forge/index/index.go +6−2

@@ -292,7 +292,11 @@ CREATE INDEX IF NOT EXISTS events_repo ON events(repo_id, at DESC, id DESC);
292 292 -- The instance feed orders across repositories; this index lets SQLite scan in
293 293 -- time order and filter by repository rather than sorting every visible event.
294 294 CREATE INDEX IF NOT EXISTS events_time ON events(at DESC, id DESC);
295 CREATE INDEX IF NOT EXISTS events_entity ON events(repo_id, entity_id);`); err != nil {
295 CREATE INDEX IF NOT EXISTS events_entity ON events(repo_id, entity_id);
296 -- A profile reads one account's events across the repositories the viewer can
297 -- read. Without this the page would scan every repository's history and filter,
298 -- which is the cost the (repository, time) index exists to avoid.
299 CREATE INDEX IF NOT EXISTS events_actor ON events(actor, at DESC, id DESC);`); err != nil {
296 300 db.Close()
297 301 return nil, err
298 302 }
@@ -328,7 +332,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS search USING fts5(
328 332 // and leaves every repo with an empty issues_sha, which makes the next read
329 333 // rebuild that repo from git. A stale row is worse than a rebuild, and a rebuild is the
330 334 // operation the index already has to survive.
331 const schemaVersion = 10
335 const schemaVersion = 11
332 336
333 337 func (s *Store) migrate() error {
334 338 var v int