feat: add an "All" option to SQL query dashboard filters #3861
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #3861"
general
weight: 0.35
pulpdrew
Summary
SQL query dashboard filters can now offer "All", which selects every option the filter's query returns. Stacked on #3847, which added "All" for static list filters.
Include "All" optioncheckbox, hidden for single-select filters.allowAllon SQL query filters. MCPquery_tileandquery_tileswithall: truerun the filter's query to fill in its options.toSqlQueryFilterValuesand the values query settings moved to common-utils so the app and MCP run the query the same way.Behaviour notes
$variableand$__filteruse every returned option;$__conditionalAllbecomes1=1.1=1, while bare$variablebecomesNULL. Use macros for these dependencies to avoid filtering out every option. Static-list "All" still supplies its full option list;$__conditionalAllremains unconstrained.$variablebecomesNULL, and both macros become1=1.all: true; one failed or over-cap filter fails the whole call, even for unrelated tiles.How to test
<details>
<summary>On this branch, import this dashboard to ClickStack and follow the instructions:</summary>
</details>
References
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->