gabriel / musehub public
feat BREAKING task/file-last-commits-materialized #1 / 1
AI Agent gabriel · 41 days ago · May 7, 2026 · Diff

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

sha256:3e984c6191351137932514ccb70291ff03e12c179981f64b56365b8b2b348300 sha
sha256:491ee52b5bdf987b8cf5d8741a1ac10b1199708d230c60a3c9701daa340cde82 snapshot
← Older Oldest on task/file-last-commits-materialized
All commits
Newer → Latest on task/file-last-commits-materialized

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:3e984c6191351137932514ccb70291ff03e12c179981f64b56365b8b2b348300 --body "your comment"