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/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

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

Sort the issue list by when it last moved

db4081ec934ddd9a7ce123b4d3cf6d6ea43a4537 · Keenan Nemetz · 4d ago · parent a32a859a

Sort the issue list by when it last moved

An issue queue is read for what changed, not for the order things were
filed. The list now shows the newest activity first and carries the columns
that answer the question: labels have their own column, assignees render like
authors do, and the creation time and author sit under the title.

The last column is "updated": the newest commit over the issue's directory,
which covers an edit, a comment, a label change, and a close or reopen. The
metadata branch has no such field on purpose — the commit carries the time —
so the index derives it from one `git log` per rebuild or one per refreshed
range, and stores it. An incremental refresh also reads the commits' paths, so
an edit reverted inside the range still counts as activity.

Bumps the index schema version, which drops the derived rows and rebuilds them
from the branch on the next read.

Closes #192

server/web/templates/issues.html +5−7

@@ -55,7 +55,7 @@
55 55 <div class="panel">
56 56 <table class="issue-list">
57 57 <thead>
58 <tr><th>Status</th><th>Issue</th><th>Author</th><th>Assignees</th><th>Replies</th><th>Age</th></tr>
58 <tr><th>Status</th><th>Issue</th><th>Labels</th><th>Assignees</th><th>Replies</th><th>Updated</th></tr>
59 59 </thead>
60 60 <tbody>
61 61 {{range .Issues}}
@@ -65,15 +65,13 @@
65 65 <a class="row-title" href="/r/{{$.Name}}/issues/{{.ID}}">{{.Title}}</a>
66 66 <div class="row-meta">
67 67 <span class="sha">{{num .Number}}</span>
68 {{range .Labels}}<span class="label">{{.}}</span>{{end}}
68 <span>opened by {{template "userlink" (user .Author)}} {{since .Created.Unix}}</span>
69 69 </div>
70 70 </td>
71 <td class="muted nowrap">{{template "userlink" (user .Author)}}</td>
72 <td class="nowrap">
73 {{range .Assignees}}<a class="label" href="/r/{{$.Name}}/issues?assignee={{urlquery .}}">@{{.}}</a> {{else}}<span class="muted">—</span>{{end}}
74 </td>
71 <td><div class="label-row">{{range .Labels}}<span class="label">{{.}}</span>{{else}}<span class="muted">—</span>{{end}}</div></td>
72 <td class="nowrap">{{range $i, $a := .Assignees}}{{if $i}}, {{end}}{{template "userlink" (user $a)}}{{else}}<span class="muted">—</span>{{end}}</td>
75 73 <td class="muted">{{.Comments}}</td>
76 <td class="muted nowrap">{{since .Created.Unix}}</td>
74 <td class="muted nowrap">{{since .Updated.Unix}}</td>
77 75 </tr>
78 76 {{end}}
79 77 </tbody>