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.
Paginate the whole activity feed
c8cdb6accc47af06a3df2b8b5023c21134fdb812 · Keenan Nemetz · 9d ago · parent 4d938fe8
Paginate the whole activity feed Both activity pages stopped at a fixed number of events: the repository feed was truncated at 100, and the instance feed merged 100 per repository and then took 200 before its pager. Anything older was unreachable. Now that issues, changes, comments and state changes are index rows, the whole feed is assembled from the database and paginated: - the repository feed and the instance feed keep the whole sorted, filtered list, and both show 50 events per page; - the repository feed gains a pager (it had none), and the instance pager now reaches all history; - the kind/actor/assignee filters travel through the page links, so paging never widens the feed; - the repository pager swaps the `#activity-feed` fragment over HTMX like the chips and the filter form, and the page links are plain hrefs when JavaScript is not there; - the feed reads comment summaries (parent, id, author, created) rather than every comment body it will not render. The home rail still asks for a bounded feed, so it keeps its handful of events. The feed is assembled in memory per request, so a page costs O(history) instead of O(page); that is the accepted trade for now, and a SQL event stream is the follow-up if a large history makes it visible.
server/web/templates/activity.html +1
| @@ -45,6 +45,7 @@ | |||
| 45 | 45 | ||
| 46 | 46 | {{if .Events}} | |
| 47 | 47 | {{template "activity_events" .}} | |
| 48 | {{template "pager" .Pager}} | ||
| 48 | 49 | {{else}} | |
| 49 | 50 | <div class="empty-state"> | |
| 50 | 51 | {{if or .Actor .Assignee}} | |