gabriel / musehub public
feat patch feat/marketplace-domain-link-backfill #5 / 9
AI Agent gabriel · 17 days ago · Jul 4, 2026 · Diff

feat: add marketplace_domain_id backfill script (musehub#120 Phase 3)

sha256:60ea1fce6ede55767397413c891da11adc2a594c3ff90c5d7f5635519d263bb6 sha
+41 ~3 symbols
sha256:12f6df87510d7d41138233cf4000959fe2e5bb57616a8b28c653bf4c0cbd59ed snapshot
+41
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes 44 symbols
+ BackfillReport class class BackfillReport L40–47
+ _main_async function async_function _main_async L120–133
+ _print_report function function _print_report L103–117
+ backfill_marketplace_domain_links function async_function backfill_marketplace_domain_links L50–100
+ AsyncSession import import AsyncSession L29–29
+ MusehubDomain import import MusehubDomain L31–31
+ MusehubRepo import import MusehubRepo L32–32
+ annotations import import annotations L22–22
+ argparse import import argparse L24–24
+ asyncio import import asyncio L25–25
+ dataclass class import dataclass L26–26
+ field import import field L26–26
+ func function import func L28–28
+ record_domain_install import import record_domain_install L33–33
+ resolve_unambiguous_domain_id_by_category import import resolve_unambiguous_domain_id_by_category L33–33
+ select import import select L28–28
+ main function function main L136–146
+ TestBackfillApply class class TestBackfillApply L103–125
+ test_mdl12_apply_writes_exactly_what_dry_run_reported method async_method test_mdl12_apply_writes_exactly_what_dry_run_reported L105–125
+ TestBackfillDryRun class class TestBackfillDryRun L81–100
+ test_mdl11_dry_run_reports_without_writing method async_method test_mdl11_dry_run_reports_without_writing L83–100
+ TestBackfillIdempotent class class TestBackfillIdempotent L128–167
+ test_mdl13_already_linked_repos_are_untouched method async_method test_mdl13_already_linked_repos_are_untouched L130–148
+ test_mdl13_safe_to_rerun_after_apply method async_method test_mdl13_safe_to_rerun_after_apply L151–167
+ TestBackfillReportsEverySkip class class TestBackfillReportsEverySkip L170–198
+ test_mdl14_ambiguous_repo_reported_by_repo_id method async_method test_mdl14_ambiguous_repo_reported_by_repo_id L172–186
+ test_mdl14_no_match_repo_reported_by_repo_id method async_method test_mdl14_no_match_repo_reported_by_repo_id L189–198
+ _db_domain function async_function _db_domain L24–51
+ _db_repo function async_function _db_repo L54–78
+ AsyncSession import import AsyncSession L15–15
+ MusehubDomain import import MusehubDomain L18–18
+ MusehubRepo import import MusehubRepo L19–19
+ annotations import import annotations L9–9
+ backfill_marketplace_domain_links import import backfill_marketplace_domain_links L21–21
+ compute_identity_id import import compute_identity_id L17–17
+ compute_manifest_hash import import compute_manifest_hash L20–20
+ compute_repo_id import import compute_repo_id L17–17
+ datetime import import datetime L12–12
+ pytest import import pytest L14–14
+ secrets import import secrets L11–11
+ timezone import import timezone L12–12

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