fix: activity canvas — use domain_id plain string, null defaults to code
Drop the musehub_domains JOIN from build_activity_canvas and _fetch_repos. domain_id in musehub_repos is a plain string label ("code", "midi", "mist") or NULL for legacy repos. NULL is treated as "code" throughout.
- musehub_profile.py: drop musehub_domain_models import; rewrite build_activity_canvas to query distinct domain_id directly; update _build_domain_commit_grid to match null repos under "code" - ui_user_profile.py: drop MusehubDomain join in _fetch_repos, use r.domain_id or "code" directly - Tests updated to use plain string domain_ids; phantom data-domain template tests removed (attribute never existed in profile.html)
sha256:98310689f8864e4e6adabd679d6e1f170bfe11deadac1912945df5dc6bec5dda
sha
+1
~14
−8
symbols
sha256:7255962e1623ce27e128ec2c6128f0b53056f1922741d247edc27e58557a07d8
snapshot
+1
symbol added
~14
symbols modified
−8
symbols removed
0
dead code introduced
Semantic Changes
23 symbols
−
test_profile_chip_generic_domain_has_distinct_icon
function
async_function test_profile_chip_generic_domain_has_distinct_icon L228–271
−
test_profile_html_no_domain_id_shows_generic_chip
function
async_function test_profile_html_no_domain_id_shows_generic_chip L141–173
−
test_profile_html_with_domain_id_does_not_show_generic
function
async_function test_profile_html_with_domain_id_does_not_show_generic L177–219
+
test_canvas_null_domain_id_counts_as_code
function
async_function test_canvas_null_domain_id_counts_as_code L248–275
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:98310689f8864e4e6adabd679d6e1f170bfe11deadac1912945df5dc6bec5dda --body "your comment"
No comments yet. Be the first to start the discussion.