Skip to content

feat(leaderboard): hide the Species filter until it is curated - #580

Merged
KartikP merged 2 commits into
masterfrom
kp/hide-species-filter
Oct 8, 2026
Merged

KartikP merged 2 commits into
masterfrom
kp/hide-species-filter

Conversation

@KartikP

@KartikP KartikP commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Hides the Species filter on the leaderboard's advanced filters until the benchmark species metadata is curated (human decision, 2026-10-08).

Why: on prod, species is set on 30 of 173 vision leaf benchmarks, and all 30 say human. No benchmark is tagged macaque, so the filter hides most neural data instead of selecting it.

Change:

  • SHOW_SPECIES_FILTER = False in web/settings.py. Setting it to True brings the filter back; the template block and all filter JS are unchanged.
  • The content view passes the flag to the template, which wraps the Species group in {% if show_species_filter %}.
  • url-state.js ignores a benchmark_species URL parameter when the checkboxes are absent, so an old shared link cannot apply an invisible filter.

Tests:

  • The Playwright test_species_filtering cases are skipped while the flag is off, because the checkboxes are absent. Remove the skip when re-enabling.
  • benchmarks.tests.test_leaderboard_filters renders the content template with the flag off and on (added to the model-metadata workflow). Local run on Django 5.2.18: 2 passed.

After deploy, refresh_cache is not needed for this change: the flag is added outside the cached context.

Species benchmark metadata is set on 30 of 173 vision leaves, all
'human', so choosing a species hides most benchmarks. The filter and its
code path stay; SHOW_SPECIES_FILTER = True re-enables it. Old links with
benchmark_species no longer apply a filter the page does not show.
@KartikP
KartikP merged commit 7ff0638 into master Oct 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant