gabriel / musehub public
fix BREAKING task/fix-tests-and-typing-audit #1 / 1
AI Agent gabriel · 129 days ago · May 6, 2026 · Diff

fix: resolve test failures, add dead/dismiss route, type audit to 0

- Fix JSONObject route return types (orgs, repos, social, users) — replace -> JSONObject with -> Response + JSONResponse(content=...) so Pydantic schema generation no longer chokes on the recursive JSONValue type alias - Add POST /{owner}/{repo_slug}/intel/dead/dismiss route to ui_intel; parses form body via stdlib urllib.parse (no python-multipart dependency) - Fix test_phase1_stable_provider: replace deprecated datetime.utcnow() with datetime.now(timezone.utc).replace(tzinfo=None) - Fix test_phase4_dead_dismiss: remove spurious await on expire_all(), capture repo_id before expire_all() to avoid detached-instance lazy-load error - Fix test_phase2_intel_providers: replace dict[str, bytes] boundary param with _ContentMap type alias — typing audit ratchet now at 0

sha256:5758d8c984a9f7cef1b289cbc72cd23440ce3352ed9bc4d1d904a18f8311a78a sha
+10 ~26 −4 symbols
sha256:42e2b10bf6ee0953439ace233e9a9c4bd9df2b7b10615037262c8274e34c3168 snapshot
+10
symbols added
~26
symbols modified
−4
symbols removed
0
dead code introduced
Semantic Changes 40 symbols
~ musehub/api/routes/api/orgs.py .py 2 symbols added, 1 symbol removed, 3 symbols modified
JSONObject import import JSONObject L15–15
+ JSONResponse import import JSONResponse L15–15
+ Response import import Response L15–15
~ musehub/api/routes/musehub/repos.py .py 1 symbol added, 1 symbol removed, 2 symbols modified
JSONObject import import JSONObject L44–44
+ JSONResponse import import JSONResponse L34–34
~ musehub/api/routes/musehub/social.py .py 2 symbols added, 1 symbol removed, 7 symbols modified
JSONObject import import JSONObject L32–32
+ JSONResponse import import JSONResponse L24–24
+ Response import import Response L23–23
~ Query
~ musehub/api/routes/musehub/ui_intel.py .py 3 symbols added, 3 symbols modified
+ HTTPException import import HTTPException L23–23
+ RedirectResponse import import RedirectResponse L24–24
+ intel_dead_dismiss function async_function intel_dead_dismiss L612–651
~ musehub/api/routes/musehub/users.py .py 1 symbol added, 1 symbol removed, 6 symbols modified
JSONObject import import JSONObject L34–34
+ Response import import Response L21–21
~ Query
~ status
~ tests/test_phase2_intel_providers.py .py 1 symbol added, 1 symbol modified
+ _ContentMap variable variable _ContentMap L61–61
← Older Oldest on task/fix-tests-and-typing-audit
All commits
Newer → Latest on task/fix-tests-and-typing-audit

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