Skip to content

fix(dashboards): add missing fields key to non-table prebuilt widget queries#110227

Merged
gggritso merged 1 commit intomasterfrom
georgegritsouk/dain-1298-add-missing-fields-key-to-non-table-prebuilt-widget-queries
Mar 9, 2026
Merged

fix(dashboards): add missing fields key to non-table prebuilt widget queries#110227
gggritso merged 1 commit intomasterfrom
georgegritsouk/dain-1298-add-missing-fields-key-to-non-table-prebuilt-widget-queries

Conversation

@gggritso
Copy link
Member

@gggritso gggritso commented Mar 9, 2026

Add the missing fields key to LINE and BIG_NUMBER widget query
definitions in the frontend assets prebuilt dashboard configs.

The backend DashboardWidgetQuerySerializer.validate() requires both
fields and conditions for new queries, but several non-table widget
definitions only defined aggregates and columns, omitting fields.
This caused validation errors when these prebuilt configs were saved.

For non-table widgets (no group-by), fields mirrors aggregates.
The fix adds this redundant-but-required key to all 11 affected queries
across frontendAssets.ts (2 widgets) and frontendAssetsSummary.ts
(9 widgets). All other prebuilt configs were audited and already had
fields defined.

Fixes DAIN-1298

…t queries

The backend DashboardWidgetQuerySerializer requires `fields` and
`conditions` for new queries, but several LINE and BIG_NUMBER widget
definitions only had `aggregates` defined. This caused validation
errors when these prebuilt configs were saved.
@gggritso gggritso requested a review from a team as a code owner March 9, 2026 18:20
@linear-code
Copy link

linear-code bot commented Mar 9, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 9, 2026
@gggritso gggritso merged commit 9197af8 into master Mar 9, 2026
71 of 73 checks passed
@gggritso gggritso deleted the georgegritsouk/dain-1298-add-missing-fields-key-to-non-table-prebuilt-widget-queries branch March 9, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants