Skip to content

fix(attributes): Loading when clearing group by or visualize#112364

Open
nsdeschenes wants to merge 3 commits intomasterfrom
nd/EXP-797/fix-attributes-loading-when-clearing-group-by-or-visualize
Open

fix(attributes): Loading when clearing group by or visualize#112364
nsdeschenes wants to merge 3 commits intomasterfrom
nd/EXP-797/fix-attributes-loading-when-clearing-group-by-or-visualize

Conversation

@nsdeschenes
Copy link
Copy Markdown
Contributor

@nsdeschenes nsdeschenes commented Apr 7, 2026

This PR resolves an issue with the group by dropdown, visualize dropdown, and schema hint list. Since all three of these components use the same data fetching hook under the hood, when clearing the search entry in the dropdowns it would trigger a refetch and thus trigger the schema hint list to be put into a loading state.

This PR resolves this issue by utilizing the built in keepPreviousData helper, and tweaking how we determine what isFetching is resolved to, so that we only show the loading indicator on-load for the schema hint list, and only on the dropdowns when searching.

Closes EXP-797

Keep previous attribute results in place while the dropdown refetches a
server-filtered search, but only show loading for the initial load and
active non-empty search requests. This keeps clear-to-empty transitions
from flashing a misleading loading state.

Refs EXP-797
Co-Authored-By: GPT-5.4 <noreply@openai.com>

Made-with: Cursor
Add hook coverage for default, searched, and cleared attribute searches so
we keep server-side substring filtering while preserving the intended
loading signal across transitions.

Refs EXP-797
Co-Authored-By: GPT-5.4 <noreply@openai.com>

Made-with: Cursor
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 7, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 7, 2026
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 13bbc3f. Configure here.

Comment thread static/app/views/explore/hooks/useTraceItemAttributeKeys.tsx Outdated
Only report attribute loading while a query is actively fetching so
disabled queries do not stay stuck in a pending spinner state.
Add a regression test for the TanStack Query v5 disabled-query case.

Co-Authored-By: GPT-5.4 <noreply@openai.com>
Made-with: Cursor
@nsdeschenes nsdeschenes marked this pull request as ready for review April 7, 2026 16:10
@nsdeschenes nsdeschenes requested a review from a team as a code owner April 7, 2026 16:10
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.

1 participant