Skip to content

fix(leaderboard): one-sided range links and the runnable_only filter - #583

Merged
KartikP merged 2 commits into
masterfrom
kp/leaderboard-url-filters
Nov 8, 2026
Merged

KartikP merged 2 commits into
masterfrom
kp/leaderboard-url-filters

Conversation

@KartikP

@KartikP KartikP commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Two leaderboard URL filters gave wrong results. Both showed up while building cohort links from the landing page (kp/landing-virtual-lab).

1. A link with only one range bound

applyFiltersToUI filled a missing bound with a fixed default: 100 for parameter count, 1000 for model size and stimulus count. So ?min_param_count=100 set the range to 100-100 M and showed no models. The missing bound now comes from the range the leaderboard computes from the data (window.filterOptions.parameter_ranges, size_ranges, stimuli_ranges); the fixed values stay as the last fallback.

2. runnable_only did nothing

url-state.js read and wrote runnable_only, but applyCombinedFilters never used it, and the page had no control. A Runnable Models Only checkbox under Model Properties now keeps only rows whose metadata has runnable: true. It follows the URL, updates it, and Reset clears it. runnable still comes from v1 brainscore_modelmeta (#581 left it there).

Results on the dev database (local runserver, public vision models)

URL Before After Expected from the DB
?min_param_count=100 0 22 22
?min_model_size=500 6 21 21
?runnable_only=true 532 (all) 177 177
no filter 532 532

Tests

  • Two Playwright tests in test_ag_grid.py, one per bug. Both fail before the fix and pass after.
  • Full test_ag_grid.py against a local server on the dev database: 29 passed, 2 skipped, the same before and after the change.
  • test_leaderboard_filters: OK.

Not changed: after any filter change the URL still lists every slider range. That is existing behavior on master.

…ange

A link with only min_param_count set the maximum to a fixed 100 M, so
?min_param_count=100 showed no models. Model size and stimulus count
had the same fallback (1000). The missing bound now comes from the
range the leaderboard computed from the data.
runnable_only was read from and written to the URL but never filtered
rows, and the page had no control for it. A Runnable Models Only
checkbox under Model Properties now keeps only models whose metadata
marks them runnable, and stays in sync with the URL and Reset.
@KartikP
KartikP merged commit 38d29a8 into master Nov 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