All CRUD operations need to be logged (audit trail) #5
Reference in New Issue
Block a user
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?
Story
As an admin, I want every create/update/delete operation on items and bins to be logged so I can audit who changed what and when.
Current state
Items already record
created_by_id/updated_by_id+ timestamps in the DB row. That gives us the last editor but loses history on multiple edits.What we need
A proper audit log table that records:
{field: [old, new]}for updatesAcceptance criteria
GET /admin/audit-logendpoint (admin only) with filtering by table, action, user, date rangeNotes
Ported from v1 issue #3.