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

feat(replay): Refetch the viewed-by data after an update to it #69357

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Apr 19, 2024

This follows #69232 which removed some optimistic updated that would cause crazy re-rendering. Instead we'll just invalidate (and re-fetch if needed) the /viewed-by/ endpoint data.

This is related to the viewed-by replay project:
https://github.com/getsentry/team-replay/issues/19
#64924

@ryan953 ryan953 requested a review from a team as a code owner April 19, 2024 21:25
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 19, 2024
Copy link

codecov bot commented Apr 19, 2024

Bundle Report

Changes will increase total bundle size by 139 bytes ⬆️

Bundle name Size Change
app-webpack-bundle-array-push 26.27MB 139 bytes ⬆️

Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

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

Would this refetch on the same page view? Ie if I visit replay details for first time would my avatar be in the viewed by? Or would it just invalidate for the next page view?

@ryan953
Copy link
Member Author

ryan953 commented Apr 29, 2024

Would this refetch on the same page view? Ie if I visit replay details for first time would my avatar be in the viewed by? Or would it just invalidate for the next page view?

Fixed it so it'll refetch on the same pageview. This makes it so your own icon will pop into place after you view a replay for the first time.

@ryan953 ryan953 merged commit 1d04b42 into master Apr 29, 2024
40 of 41 checks passed
@ryan953 ryan953 deleted the ryan953/refetch-replay-viewed-by-after-updates branch April 29, 2024 19:57
@billyvg
Copy link
Member

billyvg commented May 1, 2024

Would this refetch on the same page view? Ie if I visit replay details for first time would my avatar be in the viewed by? Or would it just invalidate for the next page view?

Fixed it so it'll refetch on the same pageview. This makes it so your own icon will pop into place after you view a replay for the first time.

@ryan953 FWIW this differs from issue details where we never see ourselves in the view by list (which I guess makes sense on the details page since you'll always have viewed it).

@ryan953
Copy link
Member Author

ryan953 commented May 1, 2024

Would this refetch on the same page view? Ie if I visit replay details for first time would my avatar be in the viewed by? Or would it just invalidate for the next page view?

Fixed it so it'll refetch on the same pageview. This makes it so your own icon will pop into place after you view a replay for the first time.

@ryan953 FWIW this differs from issue details where we never see ourselves in the view by list (which I guess makes sense on the details page since you'll always have viewed it).

that's true. the issues page uses a component the filters out the current user from the list. I'd go for that, but i remember we also got feedback that the empty state on Replay Details look funny, and i think it's often the case that a replay hasn't been seen by anyone yet, so it might be more important to solve that too.

@github-actions github-actions bot locked and limited conversation to collaborators May 17, 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.

2 participants