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/events_test.go +10−5

@@ -238,9 +238,9 @@ func TestEventPageDoesNotSortHistory(t *testing.T) {
238 238 t.Fatal(err)
239 239 }
240 240 defer s.Close()
241 plan := func(repoIDs []string) string {
242 q, args := eventPageQuery(repoIDs, "", "", "", 50, 100)
243 rows, err := s.db.Query("EXPLAIN QUERY PLAN "+q, args...)
241 plan := func(repoIDs []string, q eventQuery) string {
242 query, args := eventPageQuery(repoIDs, q, 50, 100)
243 rows, err := s.db.Query("EXPLAIN QUERY PLAN "+query, args...)
244 244 if err != nil {
245 245 t.Fatal(err)
246 246 }
@@ -256,12 +256,17 @@ func TestEventPageDoesNotSortHistory(t *testing.T) {
256 256 }
257 257 return b.String()
258 258 }
259 if got := plan([]string{"r1"}); !strings.Contains(got, "events_repo") || strings.Contains(got, "TEMP B-TREE") {
259 if got := plan([]string{"r1"}, eventQuery{}); !strings.Contains(got, "events_repo") || strings.Contains(got, "TEMP B-TREE") {
260 260 t.Fatalf("one repository does not page by index:\n%s", got)
261 261 }
262 if got := plan([]string{"r1", "r2"}); !strings.Contains(got, "events_time") || strings.Contains(got, "TEMP B-TREE") {
262 if got := plan([]string{"r1", "r2"}, eventQuery{}); !strings.Contains(got, "events_time") || strings.Contains(got, "TEMP B-TREE") {
263 263 t.Fatalf("several repositories do not page by time index:\n%s", got)
264 264 }
265 // A profile is one account's rows, whatever the viewer can read: without the
266 // actor index that becomes a scan of every visible repository's history.
267 if got := plan([]string{"r1", "r2"}, eventQuery{actor: "ada"}); !strings.Contains(got, "events_actor") || strings.Contains(got, "TEMP B-TREE") {
268 t.Fatalf("a profile does not page by actor index:\n%s", got)
269 }
265 270 }
266 271
267 272 func TestEventsOrderAcrossRepositories(t *testing.T) {