Build the admin audit log viewer with CSV export #37
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Context
AuditEventhas been append-only since v0.1.0 and every mutation writes to it, but thereis no way to read it. The spec states admins can view and export the audit log. An audit
trail nobody can read provides no accountability — only the theoretical possibility of it.
Scope
Admin audit log viewer with filtering and CSV export.
Implementation notes
AuditEvent, newest first, built for a table that will grow large.and date range. Investigating "what happened to this photo" and "what did this user do"
are the two real queries.
old_value/new_valueJSON as a readable diff rather than raw JSON blobs.API — an editable audit log is not an audit log.
this page unusable exactly when it is most needed.
Done when
References
backend/app/models/models.py(AuditEvent)docs/circa-spec.mdsection 6.5, section 11Depends on: #22 (multi-user roles).