feature: open any past report, page through older history #55

Merged
Gilles merged 2 commits from feat/report-history-access into master 2026-10-31 08:29:33 +00:00
Owner

Closes #53

Only the latest report of a stream could be viewed in full; older host-health reports on garion were reduced to a date/status/headline row.

  • GET /projects/{o}/{r}/reports/{id}/ (read permission, 404 outside the project) -- what a history row will link to (argus/frontend#45).
  • before=<ISO datetime> on the report list: keyset paging on uploaded_at, combined with limit; 400 on a non-date.
  • prune_history: a source report whose status differs from the previous report of the same stream (type, custom name, variant) is never pruned -- only the unchanged ones in between go. Today stationmyr/infra keeps 500, so nothing had been lost yet (46 host-health reports since 2026-10-29).

Tests: apps/reports/test_report_detail.py; full suite, pylint 10/10, autopep8 clean locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUcAVt7dKqdZsFwQdwZkxW

Closes #53 Only the latest report of a stream could be viewed in full; older host-health reports on garion were reduced to a date/status/headline row. - `GET /projects/{o}/{r}/reports/{id}/` (read permission, 404 outside the project) -- what a history row will link to (argus/frontend#45). - `before=<ISO datetime>` on the report list: keyset paging on `uploaded_at`, combined with `limit`; 400 on a non-date. - `prune_history`: a `source` report whose status differs from the previous report of the same stream (type, custom name, variant) is never pruned -- only the unchanged ones in between go. Today stationmyr/infra keeps 500, so nothing had been lost yet (46 host-health reports since 2026-10-29). Tests: `apps/reports/test_report_detail.py`; full suite, pylint 10/10, autopep8 clean locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01AUcAVt7dKqdZsFwQdwZkxW
feature: open any past report, page through older history
Some checks failed
ci / test (pull_request) Has been cancelled
ci / e2e (pull_request) Has been cancelled
ci / docker (pull_request) Has been cancelled
ci / deploy (pull_request) Has been cancelled
3d57c771ad
- GET /projects/{o}/{r}/reports/{id}/: any report, not only the latest
  of its stream -- what a history row links to.
- before=<ISO datetime> on the report list: keyset paging further back
  than the last N.
- prune_history keeps every source report that changed its stream's
  status; only the unchanged ones in between are pruned.

Closes #53

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUcAVt7dKqdZsFwQdwZkxW
chore: declare the report-history cas d'usage in the feature catalog
All checks were successful
ci / test (pull_request) Successful in 4m4s
ci / e2e (pull_request) Has been skipped
ci / docker (pull_request) Has been skipped
ci / deploy (pull_request) Has been skipped
3df2c35276
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUcAVt7dKqdZsFwQdwZkxW
Gilles scheduled this pull request to auto merge when all checks succeed 2026-10-31 08:26:06 +00:00
Author
Owner
<!-- argus-link-bot:argus/backend --> 📊 [Rapports Argus pour cette PR](https://reports.stationmyr.net/argus/backend/pr/55)
Gilles merged commit 1e6ddb5d7b into master 2026-10-31 08:29:33 +00:00
Gilles deleted branch feat/report-history-access 2026-10-31 08:29:33 +00:00
Sign in to join this conversation.
No description provided.