[Phase 1] SLA Management UI and Configuration — Phase 6: 3. SLA Breach Notifications #37

Closed
opened 2026-05-28 00:52:36 +00:00 by Mark · 1 comment
Owner

Phase 6: 3. SLA Breach Notifications

  • Email alerts for upcoming SLA breaches
  • Email alerts for breached SLAs
  • Dashboard indicators for at-risk tickets

Decomposed from msp_c2#10

## Phase 6: 3. SLA Breach Notifications - Email alerts for upcoming SLA breaches - Email alerts for breached SLAs - Dashboard indicators for at-risk tickets --- _Decomposed from [msp_c2#10](https://forgejo.tail018ac4.ts.net/Mark/msp_c2/issues/10)_
Author
Owner

⏸ Needs Decision

Blocking factors:

  • Didn't meet auto-approve criteria — scope=medium, risk=low, spec=aligned

Scope: medium Risk: low Spec: aligned Type: feature
Summary: Add SLA breach notification system with email alerts for upcoming/breached SLAs and dashboard indicators for at-risk tickets.
Suggestion: Reuse existing services/sla.py for breach detection; create a services/notification.py using the 'emails' library (already in requirements.txt); add an SLANotification model to track sent alerts and prevent duplicates; use Celery beat (celery already in requirements) for periodic breach scanning; add an at-risk tickets endpoint to the dashboard router; surface at-risk indicators on the frontend DashboardPage as colored badges or a new card.
Rationale: Medium scope because it spans backend (new notification service, scheduler task, tracking model), frontend (dashboard at-risk indicators), and potentially a new migration. Low risk because SLA detection logic already exists and is tested, email infrastructure is additive with no breaking changes to existing endpoints, and the dashboard already has an Overdue SLA card to extend. Fully aligned with the spec which lists SLA timestamps as a core ticketing feature and overdue SLA as a dashboard metric.

Action: Review each blocking factor above. Remove blocked:needs-decision label to route back to triage.

## ⏸ Needs Decision **Blocking factors:** - **Didn't meet auto-approve criteria** — scope=medium, risk=low, spec=aligned --- **Scope:** medium **Risk:** low **Spec:** aligned **Type:** feature **Summary:** Add SLA breach notification system with email alerts for upcoming/breached SLAs and dashboard indicators for at-risk tickets. **Suggestion:** Reuse existing services/sla.py for breach detection; create a services/notification.py using the 'emails' library (already in requirements.txt); add an SLANotification model to track sent alerts and prevent duplicates; use Celery beat (celery already in requirements) for periodic breach scanning; add an at-risk tickets endpoint to the dashboard router; surface at-risk indicators on the frontend DashboardPage as colored badges or a new card. **Rationale:** Medium scope because it spans backend (new notification service, scheduler task, tracking model), frontend (dashboard at-risk indicators), and potentially a new migration. Low risk because SLA detection logic already exists and is tested, email infrastructure is additive with no breaking changes to existing endpoints, and the dashboard already has an Overdue SLA card to extend. Fully aligned with the spec which lists SLA timestamps as a core ticketing feature and overdue SLA as a dashboard metric. **Action:** Review each blocking factor above. Remove `blocked:needs-decision` label to route back to triage.
Mark 2026-06-08 01:14:23 +00:00
Sign in to join this conversation.
No description provided.