test(tickets): pin server-side inline status/priority/assignee edit + SLA recalc #272
Loading…
Reference in a new issue
No description provided.
Delete branch "test/pms-359-ticket-inline-edits"
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?
The PMS-359 ticket-detail inline editor (status / priority / assignee dropdowns) lives in the mokosh-apps SPA, but its server contract is entirely in mokosh-server's PUT /api/v1/tickets/{id} path, which already accepts status_id / priority_id / assigned_to_id, writes audit rows, and recalculates SLA due dates when priority changes. That server behaviour had no integration coverage for the inline-edit workflow, only for title and description edits.
This adds ticket_inline_status_priority_assignee_edits_persist_audit_and_recalc_sla to tests/tickets.rs, pinning the server-side acceptance criteria end to end: each of the three field edits persists and is echoed on the re-fetched DTO; the per-record change-history feed records a distinct update entry for the status, priority, and assignee change; promoting Medium -> High shortens the SLA due date (24h -> 8h resolution targets from the seeded Standard SLA policy); and an unauthenticated PUT is rejected so the "must be logged in" gate is covered. No production code changes were needed; the functionality already existed.
#PMS-359
83bee92cb925036062a2