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(replay): Move some project code into useReplayProjectSlug #82516

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Dec 23, 2024

Extract some code that converts a projectId into a projectSlug.

I'm extracting it because it's something to be reused between components/replays/replayPlayer.tsx and components/replays/player/replayPlayer.tsx. Also, relying on the ProjectStore as this does is something that'll need to be refactored in the future because loading the ProjectStore is slow, so it's nice to separate this out.

@ryan953 ryan953 requested a review from a team as a code owner December 23, 2024 03:30
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 23, 2024
@ryan953 ryan953 merged commit 819b6fb into master Dec 23, 2024
42 checks passed
@ryan953 ryan953 deleted the ryan953/ref-replay-projectSlug branch December 23, 2024 15:03
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #82516       +/-   ##
===========================================
- Coverage   86.70%   80.43%    -6.28%     
===========================================
  Files        9414     7316     -2098     
  Lines      538327   322630   -215697     
  Branches    21047    21045        -2     
===========================================
- Hits       466745   259500   -207245     
+ Misses      71175    62723     -8452     
  Partials      407      407               

andrewshie-sentry pushed a commit that referenced this pull request Jan 2, 2025
Extract some code that converts a projectId into a projectSlug.

I'm extracting it because it's something to be reused between
`components/replays/replayPlayer.tsx` and
`components/replays/player/replayPlayer.tsx`. Also, relying on the
ProjectStore as this does is something that'll need to be refactored in
the future because loading the ProjectStore is slow, so it's nice to
separate this out.
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 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