feat(intel): populate op and last_commit_id on musehub_symbol_intel
- SymbolIntel TypedDict: add last_op and last_commit_id fields - _compute_symbol_intel: track last_op + last_commit_id alongside last_author in the same newest-ts guard — zero extra passes over history - _upsert_symbol_intel: write op and last_commit_id columns; include in on_conflict_do_update so re-indexing keeps them current - backfill_intel_fields(session, repo_id): single UPDATE...FROM DISTINCT ON query — picks most recent history entry per symbol, sets op + last_commit_id idempotent, one round-trip - Backfill run: 19924 rows updated on musehub repo - I401-I410 all green (10/10)
sha256:3cfbf9d4a1ed4b2975b6b5208e85116e975f2d8e70f27b6d622efdd5fd696bc9
sha
+27
~3
symbols
sha256:e716d8ef2e17cfd84e9ac0539e5c7549055e28d1a97489a469780f47e1734028
snapshot
+27
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes
30 symbols
+
test_i401_compute_returns_last_op
function
async_function test_i401_compute_returns_last_op L103–116
+
test_i402_compute_returns_last_commit_id
function
async_function test_i402_compute_returns_last_commit_id L124–136
+
test_i403_last_op_is_most_recent
function
async_function test_i403_last_op_is_most_recent L144–162
+
test_i405_upsert_writes_last_commit_id
function
async_function test_i405_upsert_writes_last_commit_id L202–227
+
test_i406_build_index_populates_op
function
async_function test_i406_build_index_populates_op L235–255
+
test_i407_build_index_populates_last_commit_id
function
async_function test_i407_build_index_populates_last_commit_id L263–283
+
test_i408_backfill_fixes_null_op
function
async_function test_i408_backfill_fixes_null_op L291–323
+
test_i409_backfill_fixes_null_last_commit_id
function
async_function test_i409_backfill_fixes_null_last_commit_id L331–361
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:3cfbf9d4a1ed4b2975b6b5208e85116e975f2d8e70f27b6d622efdd5fd696bc9 --body "your comment"
No comments yet. Be the first to start the discussion.