Skip to content

Remove File-based EventAttachment code #93804

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 2 commits into from
Jun 18, 2025

Conversation

Swatinem
Copy link
Member

Already 17 months ago in #62318, I switched the EventAttachment code over from using the file_id and django File-models to storing things in filestore (the go service) directly via the blob_path.

As attachments have a 30 day TTL, it is high time to remove the backwards compatibility code.

@Swatinem Swatinem requested a review from a team June 18, 2025 13:29
@Swatinem Swatinem self-assigned this Jun 18, 2025
@Swatinem Swatinem requested a review from a team as a code owner June 18, 2025 13:29
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 18, 2025
Already 17 months ago in #62318, I switched the `EventAttachment` code over from using the `file_id` and django `File`-models to storing things in filestore (the go service) directly via the `blob_path`.

As attachments have a 30 day TTL, it is high time to remove the backwards compatibility code.
Copy link

codecov bot commented Jun 18, 2025

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/models/eventattachment.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93804      +/-   ##
==========================================
- Coverage   88.02%   88.02%   -0.01%     
==========================================
  Files       10331    10331              
  Lines      596378   596378              
  Branches    23160    23160              
==========================================
- Hits       524976   524960      -16     
- Misses      70946    70962      +16     
  Partials      456      456              

@Swatinem Swatinem force-pushed the swatinem/rm-eventattachment-fileid-part1 branch from 87208ad to 1aa35a4 Compare June 18, 2025 13:55
@Swatinem Swatinem requested a review from a team as a code owner June 18, 2025 13:55
@Swatinem Swatinem force-pushed the swatinem/rm-eventattachment-fileid-part1 branch from 1aa35a4 to 86da06d Compare June 18, 2025 15:06
@Swatinem Swatinem merged commit c5bf2e6 into master Jun 18, 2025
64 checks passed
@Swatinem Swatinem deleted the swatinem/rm-eventattachment-fileid-part1 branch June 18, 2025 16:08
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
Already 17 months ago in #62318, I switched the `EventAttachment` code
over from using the `file_id` and django `File`-models to storing things
in filestore (the go service) directly via the `blob_path`.

As attachments have a 30 day TTL, it is high time to remove the
backwards compatibility code.
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.

2 participants