Skip to content
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

ref(issue-details): Remove all query params from legacy UI when no event is found. #83441

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

leeandher
Copy link
Member

Adds back a portion removed in this PR that clears the query when it doesn't find an event, but only applies it when the UI is not streamlined.

Now though, instead of just removing query, we remove everything except project, since if we kept any date params, the endpoint would still return empty for recommend/latest events. It also searches for any of those qparams to be set before triggering so when they are all removed, it won't infinitely call navigate -- may add a test for this just in case though.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 14, 2025
@leeandher leeandher marked this pull request as ready for review January 14, 2025 22:26
@leeandher leeandher requested a review from a team as a code owner January 14, 2025 22:26
@@ -248,6 +253,43 @@ function useFetchGroupDetails(): FetchGroupDetailsState {
refetch: refetchGroupCall,
} = useGroup({groupId});

useEffect(() => {
Copy link
Member

Choose a reason for hiding this comment

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

can we put a TODO to delete this entire useEffect when cleaning up streamline ui

@leeandher leeandher merged commit 2a3ed0b into master Jan 15, 2025
43 checks passed
@leeandher leeandher deleted the leander/remove-query-off-streamline branch January 15, 2025 15:26
andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
…ent is found. (#83441)

Adds back a portion removed in [this
PR](https://github.com/getsentry/sentry/pull/82476/files#diff-a95c753ccf3abebbfb06333be0780c03f31de6cb0b8d178665b8ea24a02f00feL255-L275)
that clears the query when it doesn't find an event, but only applies it
when the UI is not streamlined.

Now though, instead of just removing `query`, we remove everything
except `project`, since if we kept any `date` params, the endpoint would
still return empty for recommend/latest events. It also searches for any
of those qparams to be set before triggering so when they are all
removed, it won't infinitely call `navigate` -- may add a test for this
just in case though.
@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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