Update task task-81

This commit is contained in:
Dylan Knutson
2025-07-31 03:50:04 +00:00
parent 87653af566
commit 9ffb8b3f5a

View File

@@ -4,10 +4,30 @@ title: Build Telegram bot usage logging and audit system
status: To Do
assignee: []
created_date: '2025-07-31'
labels: []
updated_date: '2025-07-31'
labels:
- logging
- audit
- telegram
- admin
- models
- performance
dependencies: []
---
## Description
Create a comprehensive logging system to track all Telegram bot interactions, including user info, processed files, performance metrics, and responses, with an admin interface for auditing usage
## Acceptance Criteria
- [ ] New TelegramBotLog model records all bot interactions
- [ ] Model stores telegram user ID and name
- [ ] Model stores processed files as BlobFile associations
- [ ] Model tracks performance metrics (fingerprint computation time and search time)
- [ ] Model stores response data serialized as JSON
- [ ] Admin-only controller provides access to audit logs
- [ ] Views display searchable and filterable audit data
- [ ] Bot integration automatically logs all requests
- [ ] Performance impact of logging is minimal
- [ ] Data retention and cleanup policies are implemented