Arnaud Dartois
0c7bb86eae
feat(logs): purge des logs agents — AgentLogCleanupJob Hangfire ( Fixes #53 )
...
- Job quotidien 4h : supprime les AgentLogEntry plus vieux que la rétention
(Logs:RetentionDays, défaut 7 j), par lots de 5000 + pause 100 ms
(pas de verrou long ni de transaction log explosée)
- Enregistré dans JobSetup + DI BackgroundJobs
- Tests : 2 (purge des vieux uniquement, rien si rien de vieux)
2026-08-12 09:29:03 +02:00
Arnaud Dartois
f9be0f1e0d
feat: implémenter SignalR hubs (Monitoring, Notifications, Admin) + système de notifications complet
...
SignalR Hubs:
- MonitoringHub (/hubs/monitoring) — statuts agents/caméras/stockage/GPU jobs
- NotificationsHub (/hubs/notifications) — notifications in-app badge temps réel
- AdminHub (/hubs/admin) — broadcast changements config (Admin only)
Notification System:
- Nouvelles entités: Notification, NotificationTemplate, UserNotificationConfig
- CQRS/MediatR: 6 handlers (list, unread, mark-read, mark-all, config get/update)
- Infrastructure: NotificationService orchestrator + EmailService + GotifyService
- Rate limiter IMemoryCache (20 events/min/camera/type)
- Hangfire jobs: SendNotification, DailyDigest, WeeklyDigest
- NotificationsController API (6 endpoints)
- Blazor UI: NotificationsPage + NotificationBadge
- Migration AddNotifications (3 nouvelles tables)
- 644 nouveaux tests (Domain: 131, Application: 321, Infra: 151, Integration: 120, +autres)
2026-07-26 20:45:35 +00:00
Arnaud Dartois
1d1ac8387e
feat(cqrs): update controllers, add AutoMapper profiles, SignalR notifications, Hangfire config
...
- 13 controllers migrated from service DI to IMediator dispatch
- 11 AutoMapper mapping profiles (Sites, Cameras, Auth, Users, Agents, Events, Assignments, Settings, Groups, Persons, Discovery)
- SignalR notifications bridged via MediatR INotificationHandler
- Hangfire config moved from Program.cs to Infrastructure/BackgroundJobs
- 0 build errors, 0 warnings
2026-07-22 19:54:55 +00:00