Handle nullable Gitea pull request authors in context endpoint #56

Closed
opened 2026-08-06 00:46:38 +00:00 by rockachopa · 0 comments
Member

Evidence: src/main.py builds pull request authors with p.get("user", {}).get("login", ""). Gitea may return "user": null for a deleted/unavailable author, causing the context endpoint to raise AttributeError instead of returning dashboard data.

Acceptance criteria:

  • A pull request with a null user serializes with an empty author.
  • Existing context behavior remains unchanged.
  • Add a behavioral regression test.
Evidence: `src/main.py` builds pull request authors with `p.get("user", {}).get("login", "")`. Gitea may return `"user": null` for a deleted/unavailable author, causing the context endpoint to raise `AttributeError` instead of returning dashboard data. Acceptance criteria: - A pull request with a null `user` serializes with an empty author. - Existing context behavior remains unchanged. - Add a behavioral regression test.
timmy was assigned by rockachopa 2026-08-06 00:46:38 +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#56
No description provided.