fix(issues): a null Gitea timeline page ends the list (#995) #996

Merged
sharang merged 2 commits from fix/gitea-timeline-null into main 2026-11-14 10:40:41 +00:00
Owner

Closes #995.

Gitea answers an issue's timeline with null instead of []. list_all read every page as an array, so the parse failed and the whole issue poll of that Prüfobjekt failed at every run (prod, every 30 minutes, on 0.4.14 and 0.4.15).

  • list_all reads a page as Option<Vec<T>>: null ends the list like an empty page. Pages before it still count.
  • A timeline without the close/reopen entry was already skipped as "nothing a person decided", so the poll behaves as before for that case.
  • Tests: a fake Gitea answering null after one page, and null on the first page.

cargo test -p compliance-agent --lib trackers::gitea (11 passed), clippy with the CI flags, fmt.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Closes #995. Gitea answers an issue's timeline with `null` instead of `[]`. `list_all` read every page as an array, so the parse failed and the whole issue poll of that Prüfobjekt failed at every run (prod, every 30 minutes, on 0.4.14 and 0.4.15). - `list_all` reads a page as `Option<Vec<T>>`: `null` ends the list like an empty page. Pages before it still count. - A timeline without the close/reopen entry was already skipped as "nothing a person decided", so the poll behaves as before for that case. - Tests: a fake Gitea answering `null` after one page, and `null` on the first page. `cargo test -p compliance-agent --lib trackers::gitea` (11 passed), clippy with the CI flags, fmt. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-11-14 09:41:11 +00:00
fix(issues): a null Gitea timeline page ends the list (#995)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m58s
CI / Check (pull_request) Failing after 10m17s
9255aa54e1
Gitea answers an issue's timeline with `null` instead of `[]`, which
failed the whole issue poll of that Prüfobjekt at every run. A `null`
page now ends a list like an empty one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-11-14 10:18:23 +00:00
Merge branch 'main' into fix/gitea-timeline-null
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 6m27s
CI / Check (pull_request) Successful in 22m0s
9b0c9cc7cb
sharang merged commit 396cb3cd39 into main 2026-11-14 10:40:41 +00:00
sharang deleted branch fix/gitea-timeline-null 2026-11-14 10:40:41 +00:00
Sign in to join this conversation.