Skip to content

Conversation

@Swatinem
Copy link
Member

@Swatinem Swatinem commented 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.

Ref FS-49

@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.
@codecov
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.
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants