New-report notifications (web + desktop) #11
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
argus/backend#11
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?
Users subscribe to new-report notifications, delivered in the web app and on the desktop only. Builds on the Web Push infrastructure of #10.
Subscriptions (
ReportSubscription, per user)Notifications
Notification(user, report, read/unread, date) created at the end ofprocess_report(doneorerror) for every matching subscriberWeb
GET /api/notifications/?unread=1)/notificationspage: list, mark as read / mark all as read, link to the reportDesktop
PushSubscriptionas the alertsRicher upload metadata (argus/upload-action)
ReportUploadSerializer+ReportTests
pytest (matching, creation, grouping, push mocked, permissions), vitest + msw (bell, page, subscription settings), upload-action tests for the new fields.
Delivered as two PRs: argus/backend and argus/frontend, plus one in argus/upload-action for the metadata.
Merged into #10: new-report notifications become
infoevents of the same rule system.