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(replays): fetch replay data without projectSlug #47949

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

eliashussary
Copy link
Contributor

Summary

Adds support for fetching replay details without requiring projectSlug in the replaySlug. In other words we only need to pass replayId.

With this change we make linking to the replay details page from backend errors and other events simpler.

Relates to: #47859
Closes: #47863

@eliashussary eliashussary requested a review from a team as a code owner April 25, 2023 22:00
@eliashussary eliashussary requested a review from ryan953 April 25, 2023 22:00
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 25, 2023
@eliashussary eliashussary requested review from billyvg and removed request for a team April 26, 2023 14:02
// replays can apply to many projects when incorporating backend errors
// this makes having project in the `replaySlug` obsolete
// we must keep this url schema for now for backward compat but we should remove it at some point
// TODO: remove support for projectSlug in replay url?
Copy link
Member

Choose a reason for hiding this comment

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

Set a calendar invite for 90 days when current replays will be out of retention?

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.

LGTM

@eliashussary eliashussary merged commit e8769f3 into master Apr 26, 2023
@eliashussary eliashussary deleted the elias/replays/use-replay-data-without-project branch April 26, 2023 15:34
eliashussary pushed a commit that referenced this pull request Apr 26, 2023
## Summary
Generate replay links without a projectSlug.

Depends on: #47949
Note: for the sake of legibility i've created this PR to merge into
[elias/replays/use-replay-data-without-project](https://github.com/getsentry/sentry/tree/elias/replays/use-replay-data-without-project)
eliashussary pushed a commit that referenced this pull request Apr 26, 2023
…Ms (#47996)

## Summary
Update `useInitialTimeOffsetMs` to accept `projectSlug` and `replayId`
instead of relying on `replaySlug` which changes in
#47949
eliashussary pushed a commit that referenced this pull request Apr 26, 2023
## Summary
Removes references to `replaySlug` in `deleteButton` which changes in
#47949
@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2023
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.

Use OrganizationReplayDetails instead of ProjectReplayDetails to fetch data
2 participants