Skip to content

fix(explore): Validate metric group by selections - #121466

Open
nsdeschenes wants to merge 5 commits into
masterfrom
nd/EXP-1024/feat-metrics-validate-group-by-selections
Open

fix(explore): Validate metric group by selections#121466
nsdeschenes wants to merge 5 commits into
masterfrom
nd/EXP-1024/feat-metrics-validate-group-by-selections

Conversation

@nsdeschenes

Copy link
Copy Markdown
Contributor

Metric group-by selectors now validate URL and user selections against the events validation endpoint when selected fields are absent from attribute results. Valid fields render with their validated types, unresolved or invalid values stay hidden, and invalid selections are removed only after validation settles while preserving blank values and aggregate mode.

The cleanup associates each validation response with its group-by snapshot so placeholder data from a previous query cannot strip a newer selection. This mirrors the spans group-by behavior and covers field classification, loading state, stale validation data, and query-parameter cleanup.

Closes EXP-1024

Use validation results to classify selected fields, hide unresolved URL values, and remove invalid group bys only after current validation settles.

Refs EXP-1024
Exercise validated field types, pending selection hiding, stale placeholder protection, and invalid group by cleanup.

Refs EXP-1024
@linear-code

linear-code Bot commented Aug 6, 2026

Copy link
Copy Markdown

EXP-1024

EXP-1066

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 6, 2026
Keep metric validation active after invalid group bys are removed so placeholder data is replaced and the selector becomes enabled again.

Refs EXP-1024
Centralize invalid group by cleanup, visibility, and validated tag merging across spans and metrics while preserving their mode-specific behavior.

Refs EXP-1024
Provide neutral validation responses in metric tab and panel fixtures now that group by validation remains active after cleanup.

Refs EXP-1024
@nsdeschenes
nsdeschenes marked this pull request as ready for review August 7, 2026 13:17
@nsdeschenes
nsdeschenes requested a review from a team as a code owner August 7, 2026 13:17

@narsaynorath narsaynorath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, tested with some non-valid groupings and it worked as expected 🎉

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