gabriel / musehub public
fix patch mpack-index-job feat/fix-object-refs-on-repush #2 / 4
AI Agent gabriel · 12 days ago · Jun 8, 2026 · Diff

fix(mpack-index-job): write object_refs after musehub_objects upsert

Bug D: process_mpack_index_job upserted mpack_index rows and musehub_objects but never called _upsert_object_refs, leaving object_refs empty for repos whose objects were pre-existing at push time.

Fix: call _upsert_object_refs(session, repo_id, all_blob_oids) after the musehub_objects upsert so the FK constraint on musehub_object_refs.object_id is satisfied before the refs are written.

MPIJ-1 and MPIJ-2 both green. ORP-1 through ORP-5 remain green.

sha256:c3e12fae919d99c0e030595f58eb0a7b7df9ae4bd4ed6ce582a46c33784a54d0 sha
~1 symbols
sha256:dc36e20b4b15ed2fce2eb3dc9c2303c1e94c86dc601987e71ce4df16de88281e snapshot
~1
symbol modified
0
dead code introduced
Semantic Changes 1 symbol

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:c3e12fae919d99c0e030595f58eb0a7b7df9ae4bd4ed6ce582a46c33784a54d0 --body "your comment"