Repository navigation
feat: add an "All" option to static list dashboard filters - #3847
karl-power wants to merge 3 commits into
Conversation
- Static list filters get an `Include "All" option` setting; their dropdown then offers "All", ported from EE's source-filter dropdown - "All" is stored as `all: true`, survives changes to sibling filters, counts as a selection for required filters, and expands to every option for tiles - The internal and external dashboard APIs validate saved "all" values; the external API and MCP accept `allowAll` on static list filters and `all` on saved filter values, and MCP tile runs can simulate "All" - Document the `$__conditionalAll` behaviour for "All" in the SQL editor hint, the MCP prompt and the OpenAPI spec
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: ff28689 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
PR Review
3 finding(s): 🔴 0 P0/P1 · 🟡 1 P2 · 🔵 2 P3 1 posted as inline comment(s) on the changed lines. 2 P3 folded at the bottom. 🔵 2 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b319612. Configure here.
E2E Test Results✅ All tests passed • 483 passed • 1 skipped • 1098s
Tests ran across 4 shards in parallel. |
Deep ReviewStatic-list dashboard filters gain an "All" option ( ✅ No critical (P0/P1) issues found. 🟡 P2 — recommended
🔵 P3 nitpicks (7)
Pre-existing (not introduced by this diff)
Reviewers (10): correctness, adversarial, testing, maintainability, api-contract, kieran-typescript, julik-frontend-races, previous-comments, project-standards, agent-native. Testing gaps:
Residual risks:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
|
P1 saved "all" blocking saves: fixed in 379678d. The internal API now drops saved "all" values whose filter no longer offers "All" instead of rejecting the save; the external API still rejects them. P1 "All" on SQL query filters: known gap, handled in the follow-up PR that adds "All" to SQL query filters. Until then it's only reachable through the internal API directly: the edit form shows the checkbox on static lists only, and the external API and MCP reject allowAll on SQL query filters. |
🔴 Tier 4 — CriticalTouches authentication, tenancy data models, the public API or shipped database config — or substantially changes the query rendering engine, background tasks, the OTel pipeline, image build, or release CI. Why this tier:
Review process: Deep review from a domain expert. Synchronous walkthrough may be required. Stats
|

Summary
Static list dashboard filters can now offer an "All" choice in their dropdown, which selects every option. Stacked on #3830, which added the data model and macro behaviour.
Include "All" optioncheckbox in the static list filter settings setsallowAll. It's hidden for single-select filters.VirtualMultiSelect).{ type: 'variable', name, values: [], all: true }in thefilters=state. It survives changes to other filters (fixes the feat: add groundwork for an "All" option on dashboard filters #3830 review comment) and counts as a selection for required filters.$variableand$__filterexpand to the full list, and$__conditionalAllexpands to1=1, matching Grafana.allowAllon static list filters andallon saved filter values. SQL query filters still rejectallowAlluntil a follow-up expands their options.{ name, values: [], all: true }.$__conditionalAlldescription in the SQL editor hint, the MCP prompt and the OpenAPI spec now covers "All".Screenshots or video
to be filled
How to test on Vercel preview
to be filled
References
Note
Medium Risk
Touches dashboard variable resolution, filter URL state, and multiple API surfaces; behavior changes for macros when "All" is selected, but scope is limited to opt-in static list filters with broad test coverage.
Overview
Adds an "All" choice to static list dashboard filters when
allowAllis enabled (multi-select only). Filter settings get an Include "All" option checkbox;VirtualMultiSelectexposes the row/pill and emits{ all: true }instead of a value list.Selections persist as
{ type: 'variable', name, values: [], all: true }in URL/saved state. "All" counts as satisfying required filters, expands to every static option for$variable/$__filter, and makes$__conditionalAllmatch1=1(Grafana-style). Shared helpers (resolveVariableSelection,dropUnsupportedAllValues,expandAllSelections) wire this through the app, OpenAPI, external API (validatesallowAllandall: true), internal dashboard save (drops staleallwhenallowAllis off), and MCP (schema, prompts,variableValuessimulation). SQL query filters still rejectallowAlluntil a follow-up.Reviewed by Cursor Bugbot for commit ff28689. Bugbot is set up for automated code reviews on this repo. Configure here.