Repository navigation
feat(leaderboard): hide the Species filter until it is curated - #580
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 = Falseinweb/settings.py. Setting it toTruebrings the filter back; the template block and all filter JS are unchanged.{% if show_species_filter %}.url-state.jsignores abenchmark_speciesURL parameter when the checkboxes are absent, so an old shared link cannot apply an invisible filter.Tests:
test_species_filteringcases are skipped while the flag is off, because the checkboxes are absent. Remove the skip when re-enabling.benchmarks.tests.test_leaderboard_filtersrenders 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_cacheis not needed for this change: the flag is added outside the cached context.