Jul 9 - Update Dashboard separate open issue by Handled by

This commit is contained in:
2026-07-09 12:12:07 -04:00
parent 138e44c47d
commit 53ba27370d
3 changed files with 36 additions and 9 deletions
+7
View File
@@ -95,6 +95,12 @@ def index():
'medium': sum(1 for i in open_issues_all if i.severity == 'medium'),
'low': sum(1 for i in open_issues_all if i.severity == 'low'),
}
# Open issues split by who handles them (phase35) — same list, no extra query.
handler_breakdown = {
'internal': sum(1 for i in open_issues_all if (i.handler_type or 'internal') == 'internal'),
'facility': sum(1 for i in open_issues_all if i.handler_type == 'facility'),
'vendor': sum(1 for i in open_issues_all if i.handler_type == 'vendor'),
}
# ── Issues resolved today ─────────────────────────────────────────────────
resolved_today_q = Issue.query.filter(
@@ -362,6 +368,7 @@ def index():
completed_today = completed_today,
open_issues = open_issues,
severity_breakdown = severity_breakdown,
handler_breakdown = handler_breakdown,
resolved_today = resolved_today,
pending_followups = pending_followups,
issues_opened_today = issues_opened_today,