Files
Aegis/backend/app/services/heatmap_service.py
Kitos 6147abc87a
Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
refactor(heatmap): extract business logic to dedicated service
- Create heatmap_service.py with all layer-building logic (coverage, threat-actor, detection-rules, campaign)

- Service is framework-agnostic: no FastAPI imports, no HTTPException, no db.commit()

- Fix N+1 in coverage and threat-actor layers: bulk-fetch test_counts and rule_counts with GROUP BY

- Router reduced from 528 to 140 lines: validates request, calls service, returns response
2026-02-18 13:14:41 +01:00

14 KiB