feat(dashboard): add slim issues endpoint to replace per-miner fan-out#93
Merged
Conversation
New DashboardModule exposing GET /api/v1/dashboard/issues?since= for the gittensor-ui dashboard's trend chart and Issues Solved KPI. Returns slim issue rows (one bulk call) so the UI no longer fans out N parallel /miners/<id>/issues requests on every dashboard mount. The mirror is roster-blind by design: every issue is returned regardless of author. The UI blends with the gittensor miner roster client-side to filter to subnet authors. Validator-facing /miners/<id>/issues is unchanged.
Merged
19 tasks
entrius
approved these changes
May 14, 2026
anderdc
added a commit
that referenced
this pull request
May 14, 2026
#93) * feat(dashboard): add slim issues endpoint to replace per-miner fan-out New DashboardModule exposing GET /api/v1/dashboard/issues?since= for the gittensor-ui dashboard's trend chart and Issues Solved KPI. Returns slim issue rows (one bulk call) so the UI no longer fans out N parallel /miners/<id>/issues requests on every dashboard mount. The mirror is roster-blind by design: every issue is returned regardless of author. The UI blends with the gittensor miner roster client-side to filter to subnet authors. Validator-facing /miners/<id>/issues is unchanged. * style(api.module): prettier formatting --------- Co-authored-by: anderdc <me@alexanderdc.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
DashboardModuleexposing a single read-only endpoint designed to replace the dashboard's per-miner fan-out against/api/v1/miners/<id>/issues. The dashboard currently fires N parallel mirror calls on every mount (one per active miner), each returning the full scoring-shape payload. With ~25+ active miners this saturates the mirror's rate limit and produces the cascade of 304s visible inmirror.gittensor.io/api/v1/miners/.../issuesrequests on the dashboard.The new endpoint is roster-blind by design — the mirror has no opinion about subnet membership. It returns every issue in the slim shape the dashboard needs, and the UI blends with the gittensor miner roster client-side to filter to subnet authors.
```
GET /api/v1/dashboard/issues?since=
→ {
since,
generated_at,
issues: [
{
repo_full_name, issue_number,
author_github_id,
created_at, closed_at,
state, state_reason,
solving_pr: { merged_at } | null
}
]
}
```
Why a separate module
/api/v1/miners/<id>/issuesis a scoring endpoint — every column it returns is read by some validator rule (labels with actor attribution, full `solving_pr` with review summary, linked issues, etc.). Slimming or re-purposing it risks silent scoring regressions. The new `DashboardModule` lives in its own folder, has its own controller/service, and ships the minimum shape the dashboard needs. Validator API surface is untouched.Resolved-issue predicate
The endpoint preserves `state`, `state_reason`, and a slim `solving_pr.merged_at` so the UI can apply the conjunction predicate (closed AND completed AND solving PR merged), which matches how "Solved" is defined elsewhere in the app and fixes the dashboard "Issues Resolved" series being permanently 0 (entrius/gittensor-ui#1125).
Changes
The `MinersController` / `MinersService` and their endpoints are unchanged.
Test plan
Out of scope