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

fix(issues/replay): if fetchError, don't render replayId in highlights #76619

Merged
merged 7 commits into from
Aug 27, 2024

Conversation

michellewzhang
Copy link
Member

@michellewzhang michellewzhang commented Aug 27, 2024

redo of #76316:

instead of completely removing the replay ID from the event highlights, we now do an extra check to see if there was a fetchError with this replay ID (e.g. whether this ID is actually valid or not). if it's not valid, then don't render the replay ID to avoid linking to an invalid replay. the link will take you to a page like this:

SCR-20240827-kqxv

before: issue details replay processing error (blue banner shows up) but the event highlights still contains the replay ID
SCR-20240827-krda
SCR-20240827-kqac

after: replayId is shown as -- and no link
SCR-20240827-kpwz

@michellewzhang michellewzhang requested review from leeandher and a team August 27, 2024 18:49
@michellewzhang michellewzhang requested a review from a team as a code owner August 27, 2024 18:50
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 27, 2024
Copy link
Member

@leeandher leeandher left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! Even if it was only for a portion of users I think this makes a better experience 👍

@@ -198,13 +198,19 @@ const mockGroupApis = (
project: Project,
group: Group,
event: Event,
replayId: string | undefined,
Copy link
Member

Choose a reason for hiding this comment

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

nit: Could we make this optional instead of explicitly undefined? That way you don't have to add undefined to all the callers, only when you want to specify the trace I guess.

replayId?: string;

Copy link
Member Author

Choose a reason for hiding this comment

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

yup updated!

@michellewzhang michellewzhang merged commit 2304d9b into master Aug 27, 2024
42 of 43 checks passed
@michellewzhang michellewzhang deleted the mz/check-fetch-error branch August 27, 2024 21:03
@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2024
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.

3 participants