gabriel / musehub public
refactor BREAKING task/drop-issue-labels-junction #1 / 1
AI Agent gabriel · 132 days ago · May 4, 2026 · Diff

refactor: drop dead musehub_issue_labels junction table

The musehub_issue_labels join table was built in anticipation of a normalized issue-label relationship that was never implemented. All service/API/template code reads and writes issue labels through musehub_issues.labels (ARRAY(text)) — the junction table was never inserted into and has always been empty.

Changes: - Remove MusehubIssueLabel ORM class and issue_labels relationship from MusehubLabel - Remove phantom DELETE FROM musehub_issue_labels cleanup from the label-delete route and MCP write tool (was cleaning an always-empty table) - Alembic 0026 drops the table and its index

Proposals continue to use musehub_proposal_labels correctly and are unaffected.

sha256:e33c113c1068372f5aefa0aafeff4cabc2d3db25cc4d226c67a688f38687ade2 sha
+9 ~3 −1 symbols
sha256:4882c9f32d693b2d590c14ec0f405abaecb82aa0ca7081914c3ca48d2a60214d snapshot
+9
symbols added
~3
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes 13 symbols
+ branch_labels variable variable branch_labels L21–21
+ depends_on variable variable depends_on L22–22
+ down_revision variable variable down_revision L20–20
+ downgrade function function downgrade L30–36
+ annotations import import annotations L14–14
+ op import import op L17–17
+ sa import import sa L16–16
+ revision variable variable revision L19–19
+ upgrade function function upgrade L25–27
~ musehub/db/musehub_label_models.py .py 1 symbol removed, 1 symbol modified
MusehubIssueLabel class class MusehubIssueLabel L66–91
← Older Oldest on task/drop-issue-labels-junction
All commits
Newer → Latest on task/drop-issue-labels-junction

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