fix: refetch SQL query "All" options on every dashboard refresh #3862
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 389 lines diff across 4 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.357
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #3862"
general
weight: 0.35
pulpdrew
Summary
A SQL query filter set to "All" now refetches its options on every dashboard refresh, so new values reach tiles. Stacked on #3861, which added "All" for SQL query filters.
staleTimenever triggers a fetch on its own. "All" kept the options from the first load, so new services or regions stayed out of tiles until the page reloaded.useSqlQueryFilterValuestakes arefreshKey: when it changes, every query refetches, and a request already in flight is reused. The dropdown and the page share one cache entry, so each refresh issues one options request per filter, not two, including for queries whose key changes with the range anyway.How to test
Use the test dashboard from #3861, and:
1. Click "Edit filters", then "Add filter", and choose "SQL query values". Name it
Minute, pick the connection, enterSELECT toString(toStartOfMinute(now())), set the variable name tominute, tick "Include "All" option" and save.2. Add a Markdown tile with the text
Minute: $minute. Pick "All" in the Minute dropdown. The tile shows the current minute.3. Wait for the next minute and click the refresh button. The tile shows the new minute.
References
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->