fix: reuse registry source calculations in main dashboard #48

Merged
avm merged 1 commits from feature/mostovik-dashboard-main-performance into main 2026-10-01 14:24:52 +03:00
Owner

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.

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.
avm added 1 commit 2026-10-01 14:22:26 +03:00
fix: reuse source coverage calculations on main dashboard
All checks were successful
CI/CD Pipeline / Quality Gate (pull_request) Successful in 1m3s
CI/CD Pipeline / Build and Push Images (pull_request) Successful in 1s
CI/CD Pipeline / Internal Notify (pull_request) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (pull_request) Successful in 1s
CI/CD Pipeline / Quality Gate (push) Successful in 49s
CI/CD Pipeline / Build and Push Images (push) Successful in 1s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 1s
e712494c3f
avm merged commit e712494c3f into main 2026-10-01 14:24:52 +03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: avm/mostovik-backend#48