Skip malformed Gitea repository entries in context endpoint #79

Closed
opened 2026-08-06 06:17:29 +00:00 by rockachopa · 0 comments
Member

Evidence

context() filters collection items by object type, but then indexes required repository fields (id, name, full_name, html_url) outside its error boundary. A single partial repository object therefore raises KeyError and turns /api/v1/context into an unhandled 500 instead of returning the remaining dashboard context.

Acceptance criteria

  • Malformed repository entries missing required fields are skipped.
  • Valid entries in the same payload remain available.
  • A behavioral regression test covers the partial upstream payload.
## Evidence `context()` filters collection items by object type, but then indexes required repository fields (`id`, `name`, `full_name`, `html_url`) outside its error boundary. A single partial repository object therefore raises `KeyError` and turns `/api/v1/context` into an unhandled 500 instead of returning the remaining dashboard context. ## Acceptance criteria - Malformed repository entries missing required fields are skipped. - Valid entries in the same payload remain available. - A behavioral regression test covers the partial upstream payload.
timmy was assigned by rockachopa 2026-08-06 06:17:29 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#79
No description provided.