gabriel / musehub public
fix patch feat/explore-filter-mists #1 / 1
AI Agent gabriel · 18 days ago · Jul 3, 2026 · Diff

fix: filter mist-backed repos out of repo Explore

A Mist is the Muse answer to a GitHub gist — a single-artifact share backed by a real MusehubRepo row (domain_id="mist") purely as VCS plumbing, not a project meant to be showcased. Explore's repo grid, search, and sidebar stats had no domain filter, so every public mist appeared alongside real repos in discovery.

Added `MusehubRepo.domain_id != "mist"` to: - musehub_discover.list_public_repos (the Explore grid's data source) - musehub_discover.search_repos_by_text (the Explore search fragment) - explore_page's 4 supporting queries (language chips, topic chips, hero commit count, domain count)

4 new regression tests. Also discovered and documented (not fixed, out of scope) a pre-existing, previously-untested bug: GET /explore/search 500s on any query with real results (Jinja template-caching TypeError, reproduces with zero mist repos involved) — worked around in the new test by asserting at the service-function level instead.

sha256:3a9ed461ab182f367088dc3119dbf68a3929b75830b35157dd0c8caa05e1c37b sha
+4 ~4 symbols
3 changed · 1003 in snapshot files
sha256:8d30749bc33569a01aa0697fbaffe95253a0a6c646ade510b135b580ff69076a snapshot
+4
symbols added
~4
symbols modified
3
files changed
1003
files in snapshot
0
dead code introduced
Semantic Changes 8 symbols
~ tests/test_musehub_discover.py .py 4 symbols added, 1 symbol modified
+ test_explore_excludes_mist_backed_repos function async_function test_explore_excludes_mist_backed_repos L150–163
+ test_explore_page_excludes_mist_backed_repos function async_function test_explore_page_excludes_mist_backed_repos L166–176
+ test_explore_search_excludes_mist_backed_repos function async_function test_explore_search_excludes_mist_backed_repos L179–199
+ test_explore_stats_exclude_mist_backed_repos function async_function test_explore_stats_exclude_mist_backed_repos L202–219
Files Changed
~3
1003 in snapshot
← Older Oldest on feat/explore-filter-mists
All commits
Newer → Latest on feat/explore-filter-mists

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