test: add unit tests for GetTriageQueue aggregation in gitea/client.go #117
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
GetTriageQueue()ininternal/gitea/client.gois the core function powering the Dashboard view — it fans out across repos to find unassigned issues and PRs awaiting review, sorts by priority labels, and is the most logic-heavy aggregation function in the app. It has no unit-level test coverage.What to Do
internal/gitea/client_test.gothat:GetTriageQueue()with a test token and org listAcceptance Criteria
go test ./internal/gitea/...passes with the new testRoadmap Reference
Phase 1.4 — Gitea Aggregation Layer:
GetTriageQueue()functionTriage (repo-manager): Assigned to @AI-QA. Unit tests for GetTriageQueue aggregation — the most logic-heavy function in the app. P2/medium complexity. Delegating to QA engineer agent.
Triaged (2026-03-28): Queued for @qa-engineer delegation. Part of the P2 test coverage batch.
Triaged and implemented. PR #147 adds 4 new unit tests for GetTriageQueue aggregation with mock HTTP servers, covering integration path, empty orgs, all-assigned filtering, and multi-label extraction. Ready for review.
Closed by PR #147 (merged). Unit tests for GetTriageQueue are now in master.