feat: materialize per-file last-commit data at push time
- Add MusehubFileLastCommit ORM model (PK: repo_id, branch, path) - Add migration 0034 to create musehub_file_last_commits table - Add musehub/services/file_last_commits.py with compute_and_store_file_last_commits that walks commits newest→oldest and upserts attribution via ON CONFLICT DO UPDATE - Add push.file_last_commits job type to job_types_for_push (all domains) - Wire branch into enqueue_push_intel payload so worker knows which branch to index - Add push.file_last_commits worker handler that calls the compute service - Rewrite get_file_last_commits to query the materialized table (single SQL read) with fallback blob-walk for repos not yet indexed - Fix double _get_head_snapshot_manifest fetch in repo_page: fetch once before asyncio.gather and pass to both list_tree and get_repo_home_stats - All 10 FLC tests pass
0 comments
muse hub commit comment sha256:3e984c6191351137932514ccb70291ff03e12c179981f64b56365b8b2b348300 --body "your comment"
No comments yet. Be the first to start the discussion.