feat(audit): filter audit log by user name instead of UUID (PMS-584) #394
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-584-audit-user-name-filter"
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?
PMS-584 (found in PMS-566 Audit Log smoke)
The audit log already shows the acting user by name in the table, but filtering by user required pasting a raw user UUID. This makes the user filter a pick-by-name dropdown.
Commits (small, logical)
/auth/users?per_page=200so the dropdown lists every user (and diff FK resolution covers more), not just the default first page.The wire format and CSV export are unchanged (still
user_id); only the picker is humanized.Scope note
The other filters are already name-based, not UUIDs: Action is a fixed dropdown, Entity type is a text field ("ticket"), dates are date pickers. So the user filter was the only UUID-paste case. Resolving non-user FK ids in the detail diff panel remains the separate PMS-566 item (the page does not cache those lists).
Verified
dx build clean (32s), no warnings, fmt clean. Dev app serves this branch.
Test
Audit Log > filters: "User" is now a dropdown of names (+ "All Users"); picking one filters the log to that user; CSV export respects it.
🤖 Generated with Claude Code