Skip malformed Gitea issue entries in context endpoint #81

Closed
opened 2026-08-06 06:46:46 +00:00 by timmy · 0 comments
Owner

Evidence

src/main.py validates repository records before model construction, but the issue comprehension only checks that each entry is a dict. A partial issue object from Gitea therefore raises KeyError and turns the entire /api/v1/context response into a server error.

Acceptance criteria

  • Ignore issue entries missing fields required by the dashboard model.
  • Preserve valid issue entries in the same response.
  • Cover the behavior with a regression test.
## Evidence `src/main.py` validates repository records before model construction, but the issue comprehension only checks that each entry is a dict. A partial issue object from Gitea therefore raises `KeyError` and turns the entire `/api/v1/context` response into a server error. ## Acceptance criteria - Ignore issue entries missing fields required by the dashboard model. - Preserve valid issue entries in the same response. - Cover the behavior with a regression test.
timmy self-assigned this 2026-08-06 06:46:46 +00:00
timmy closed this issue 2026-08-06 06:48:39 +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#81
No description provided.