Handle null Gitea collection payloads in context endpoint #69

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

Evidence: context() slices each upstream collection before validating it. If Gitea returns JSON null for repos, issues, or pull requests, the endpoint raises TypeError: NoneType is not subscriptable instead of returning a usable dashboard context. Add a behavioral regression test and normalize null collection payloads to empty lists.

Evidence: `context()` slices each upstream collection before validating it. If Gitea returns JSON `null` for repos, issues, or pull requests, the endpoint raises `TypeError: NoneType is not subscriptable` instead of returning a usable dashboard context. Add a behavioral regression test and normalize null collection payloads to empty lists.
timmy self-assigned this 2026-08-06 03:46:54 +00:00
timmy closed this issue 2026-08-06 03:48:49 +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#69
No description provided.