Skip to content

fix(dashboards): Invalidate starred query data using correct queryKey #94925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

narsaynorath
Copy link
Member

@narsaynorath narsaynorath commented Jul 4, 2025

The helper does a feature flag check to invalidate the correct key since the URLs are different. Fixes the scenario where the sidebar is in its dynamic state, you rearrange, and when you hover out and back onto the dashboards list, the dashboards should be in the new order.

They were in the old order because we didn't invalidate the cache with the new query key. After the feature flag gets removed I'll just hardcode the query key instead of exporting it/getting it through the helper

The helper does a feature flag check to invalidate the correct key since
the URLs are different.
@narsaynorath narsaynorath requested a review from a team as a code owner July 4, 2025 17:27
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 4, 2025
@narsaynorath narsaynorath changed the title fix(dashboards): Invalidate starred query data using helper fix(dashboards): Invalidate starred query data using correct queryKey Jul 7, 2025
@narsaynorath narsaynorath merged commit e5f0a92 into master Jul 7, 2025
51 checks passed
@narsaynorath narsaynorath deleted the nar/fix/dashboards-starred-stale-data-on-hover branch July 7, 2025 13:38
andrewshie-sentry pushed a commit that referenced this pull request Jul 14, 2025
…#94925)

The helper does a feature flag check to invalidate the correct key since
the URLs are different. Fixes the scenario where the sidebar is in its
dynamic state, you rearrange, and when you hover out and back onto the
dashboards list, the dashboards should be in the new order.

They were in the old order because we didn't invalidate the cache with
the new query key. After the feature flag gets removed I'll just
hardcode the query key instead of exporting it/getting it through the
helper
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