fix: reuse registry source calculations in main dashboard #48
Reference in New Issue
Block a user
Delete Branch "feature/mostovik-dashboard-main-performance"
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?
The main dashboard recalculated the same organization/source matches for coverage and enrichment analytics. Reuse one calculation and one recent-log query per request. This backport changes only dashboard logic; main does not have the expensive latest-job query found on dev.
Live read-only comparison: 51 → 37 SQL queries; 1.76 → 1.14 seconds, with identical full JSON responses. Local validation: 1364 passed, 33 skipped; Ruff, Django checks and migration drift checks pass. No schema/config changes. Deployment will preserve main data.