Activity logging for all CRUD operations #16

Closed
opened 2026-05-31 01:21:03 +00:00 by shawn · 0 comments
Owner

Changes

Added _log_activity calls to 15 endpoints that were missing activity logging:

  • User ops: create, update (role/password), delete, login
  • Settings CRUD: categories, makes, models, key names, key types, badge types
  • Location/Room CRUD: create, update, delete
  • Asset ops: batch status update
  • Geofence ops: update, delete
  • Database reset

Why: The dashboard showed "No recent activity" because only 3 actions (user create, customer CRUD, asset update) were logged. Now all admin operations produce activity log entries visible on the dashboard.

File: admin_server.py (+160 lines)

## Changes Added `_log_activity` calls to 15 endpoints that were missing activity logging: - **User ops:** create, update (role/password), delete, login - **Settings CRUD:** categories, makes, models, key names, key types, badge types - **Location/Room CRUD:** create, update, delete - **Asset ops:** batch status update - **Geofence ops:** update, delete - **Database reset** **Why:** The dashboard showed "No recent activity" because only 3 actions (user create, customer CRUD, asset update) were logged. Now all admin operations produce activity log entries visible on the dashboard. **File:** `admin_server.py` (+160 lines)
shawn closed this issue 2026-05-31 01:21:03 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/canteen-admin-server#16