feat(reports): GET /reports registry + integration tests (PMS-146) #129
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-146-reports-registry-and-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Closes the two PMS-93 acceptance criteria that were left unmet despite the story being marked Done: there was no
GET /api/v1/reportsregistry (AC1) and no integration tests (AC6).Closes PMS-146 (subtask of PMS-93).
Registry (AC1)
GET /api/v1/reportsreturns the report types (dashboard, tickets, time, billing) with their parameter schemas - each descriptor haskey,name,description, and aparameterslist (name/kind/required). Gated byRequireReports, like the report endpoints. A client can now discover what it can run instead of hard-coding the list.Tests (AC6) -
tests/reports.rscompany_idparam)./reports/tickets/export?format=csv) returns content (AC4).Not changed (documented deviation)
The reports return stable typed JSON shapes rather than AC2's generic "columns/rows/totals" envelope. The client (MAPPS-130) already consumes the typed shapes, so this is a deliberate deviation, not a gap.
Verification
cargo test --test reports-> 2 passed;cargo test --lib-> 110 passed.cargo fmt --checkclean;cargo clippy --all-targets -- -D warningsclean.🤖 Generated with Claude Code