Skip to content

feat(explore): Check attribute key and name for hidden values#117304

Merged
nsdeschenes merged 2 commits into
masterfrom
nd/EXP-991/feat-explore-respect-hidden-attribute-consts
Jun 10, 2026
Merged

feat(explore): Check attribute key and name for hidden values#117304
nsdeschenes merged 2 commits into
masterfrom
nd/EXP-991/feat-explore-respect-hidden-attribute-consts

Conversation

@nsdeschenes

Copy link
Copy Markdown
Contributor

This PR tweaks the logic for how we check for hidden attributes to check both the key and name, as we were missing the removal of some.

Closes EXP-991

nsdeschenes and others added 2 commits June 10, 2026 10:26
Number attributes are returned keyed by their explicit form (e.g.
`tags[project_id,number]`) while displaying the base name (`project_id`),
which is what the hidden field lists contain. removeHiddenKeys only compared
the raw key, so these attributes leaked into the logs search query builder,
group by dropdown, and visualize dropdown even though the hidden constants
were passed through.

Match the column editor's behaviour by also excluding an attribute when its
display name is in the hidden list.

Refs EXP-991
Co-Authored-By: Claude <noreply@anthropic.com>
The type-to-search autocomplete fetch in useGetTraceItemAttributeTagKeys
filtered hidden keys by the raw attribute key only. Explicitly-typed keys
such as `tags[project_id,number]` have a display name (`project_id`) that is
what the hidden lists contain, so the keys still surfaced as suggestions in
the logs search query builder.

Also exclude a fetched key when its display name is in the hidden list,
matching removeHiddenKeys and the column editor.

Refs EXP-991
Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jun 10, 2026

Copy link
Copy Markdown

EXP-991

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 10, 2026
@nsdeschenes

Copy link
Copy Markdown
Contributor Author

@sentry review

@nsdeschenes

Copy link
Copy Markdown
Contributor Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 0f86ccb. Configure here.

@nsdeschenes nsdeschenes marked this pull request as ready for review June 10, 2026 13:48
@nsdeschenes nsdeschenes requested a review from a team as a code owner June 10, 2026 13:48
@nsdeschenes nsdeschenes merged commit 6857e8c into master Jun 10, 2026
77 checks passed
@nsdeschenes nsdeschenes deleted the nd/EXP-991/feat-explore-respect-hidden-attribute-consts branch June 10, 2026 14:03
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