frontend: keep the other filter values after a selection #1627
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 239 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1627"
general
weight: 0.35
Sigmanificient
When you selected a filter value, the other values of the same filter went away and the sidebar became shorter and narrower. The cause: the bucket filters were in the query, so they also applied to the aggregation of their own filter.
Now the bucket filters go in
post_filter. They apply to the hits, but not to the aggregations. Each filter's aggregation is in afilteraggregation that applies the selections of the other filters only. Thus:rescore) do not change.In a checkbox filter (for example Licenses), the count of a value that is not selected is the number of packages with that value under the other filters. Before, it was the number of packages with that value and a selected value of the same filter. The selections of one filter combine with OR, thus the new count is the correct one.
Fixes https://github.com/NixOS/nixos-search/issues/1626
Test
latest-52-nixos-unstable, querytestwithhaskellPackagesselected: the hits, the total (389) and the scores are the same as with the filter in the query. The Package sets filter shows all package sets, not onlyhaskellPackages.Search.Query.packagesBody(fromelm repl, withhaskellPackagesand two licenses selected) runs on the live index, andPage.Packages.decodeResultAggregationsdecodes the response.elm make,elm-testandelm-format --validatepass.elm-reviewgives the same findings as onmain.To check by hand: search
test, then select a package set. The other package sets stay in the list and the sidebar keeps its width.Assisted-by: Claude:claude-opus-5-5
https://claude.ai/code/session_01RbKyH3R5kxc54AtQcTKEz4