You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multi-select license/modality drops all but the first (form repeated params) #98
Selecting two license chips (e.g. Share-alike + Non-commercial) only applies the first — the result "resets to share-alike". The same flaw affects multi-modality selection.
Root cause
The filter sidebar is a native GET form. A checkbox group with name="license" submits repeated params:
?license=sharealike&license=noncommercial
But filterStateFromURL reads only the first value:
s.licenseTiers=parseLicenseTiers(params.get("license"));// .get() = first onlys.modalities=parseModalities(params.get("modality"));// same bug
Confirmed live:
?license=sharealike&license=noncommercial (form) → "16 datasets", only share-alike chip selected ❌
The server already does OR correctly; the frontend drops the second value on form submit. (Note: tiers are mutually-exclusive buckets per dataset — a CC-BY-NC-SA row buckets as Non-commercial — so multi-select with OR is exactly how a user reaches overlapping licenses.)
Fix
Parse with params.getAll() and flatten comma-splits, so both the repeated (form) and comma-joined (link) forms work for license and modality. Keeps the chips as real multi-select toggles; no UI change required.
Acceptance
/discover?license=sharealike&license=noncommercial → OR union (~24), both chips selected.
Activity
fix(filters): multi-select license/modality (form repeated params) (#98…