Skip to content

feat(replays): Add bulk delete endpoint blueprint #92315

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

Merged
merged 14 commits into from
Jun 16, 2025

Conversation

cmanallen
Copy link
Member

Adds blueprint for proposed bulk delete endpoint.

@cmanallen cmanallen requested a review from a team as a code owner May 27, 2025 15:14
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 27, 2025
Copy link

codecov bot commented May 27, 2025

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   #92315      +/-   ##
==========================================
- Coverage   88.02%   88.02%   -0.01%     
==========================================
  Files       10324    10326       +2     
  Lines      594990   595629     +639     
  Branches    23127    23127              
==========================================
+ Hits       523766   524282     +516     
- Misses      70731    70854     +123     
  Partials      493      493              

| dateUpdated | string | - |
| rangeStart | string | The minimum UTC timestamp in the deletion range. |
| rangeEnd | string | The maximum UTC timestamp in the deletion range. |
| environment | optional[string] | The environment to delete replays from. |
Copy link
Member

Choose a reason for hiding this comment

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

Could this be multiple envs?


Delete a collection of replays. Deletes are throttled and will take some time to complete. The number of events expected to be deleted is returned on the meta object. This number is ephemeral and can change. It is only returned for informational reasons.

- Request
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 add a request params table here too

}
```

- Response 201
Copy link
Member

@aliu39 aliu39 May 27, 2025

Choose a reason for hiding this comment

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

Suggested change
- Response 201
- Response 201
Response attributes are the same as GET.


### Get Replay Delete Job [GET]

Fetch a replay delete job instance.
Copy link
Member

Choose a reason for hiding this comment

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

No query params right?


### Schedule Replay Collection Deletion [PUT]

An empty PUT request is made to the endpoint. The instance is scheduled for processing if it was in a pending state.
Copy link
Member

Choose a reason for hiding this comment

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

When would it be pending?

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.

just some suggestions, no strong opinions

}
```

### Schedule Replay Collection Deletion [PUT]
Copy link
Member

Choose a reason for hiding this comment

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

What's the difference between this and creating a deletion?

cmanallen and others added 11 commits June 16, 2025 12:05
Co-authored-by: Billy Vong <[email protected]>
Co-authored-by: Billy Vong <[email protected]>
Co-authored-by: Andrew Liu <[email protected]>
Co-authored-by: Bruno Garcia <[email protected]>
Co-authored-by: Andrew Liu <[email protected]>
Co-authored-by: Andrew Liu <[email protected]>
Co-authored-by: Bruno Garcia <[email protected]>
Co-authored-by: Billy Vong <[email protected]>
Co-authored-by: Bruno Garcia <[email protected]>
Co-authored-by: Bruno Garcia <[email protected]>
@cmanallen cmanallen merged commit 3c7b0e2 into master Jun 16, 2025
62 checks passed
@cmanallen cmanallen deleted the cmanallen/replays-bulk-delete-blueprint branch June 16, 2025 18:27
billyvg added a commit that referenced this pull request Jun 18, 2025
Adds blueprint for proposed bulk delete endpoint.

---------

Co-authored-by: Billy Vong <[email protected]>
Co-authored-by: Andrew Liu <[email protected]>
Co-authored-by: Bruno Garcia <[email protected]>
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
Adds blueprint for proposed bulk delete endpoint.

---------

Co-authored-by: Billy Vong <[email protected]>
Co-authored-by: Andrew Liu <[email protected]>
Co-authored-by: Bruno Garcia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants