Skip to content

feat(difs): Set filename metadata on Objectstore-backed DIFs#119308

Merged
lcian merged 2 commits into
masterfrom
lcian/feat/objectstore-debugfile-filename
Jul 10, 2026
Merged

feat(difs): Set filename metadata on Objectstore-backed DIFs#119308
lcian merged 2 commits into
masterfrom
lcian/feat/objectstore-debugfile-filename

Conversation

@lcian

@lcian lcian commented Jul 9, 2026

Copy link
Copy Markdown
Member

Debug file uploads to Objectstore now pass a filename, built from the debug ID and file extension, so it matches the filename we already return in the Content-Disposition header on download:

f'attachment; filename="{posixpath.basename(debug_file.debug_id)}{debug_file.file_extension}"'

Previously initiate_multipart_upload was called without a filename, so Objectstore had no name to associate with the object.

This is needed in preparation for a follow-up PR where we'll issue 302 redirects to Objectstore for downloads instead of streaming them through Sentry. With this change, Objectstore will set the content-disposition, so downloads will continue to work with no behavioral change for customers.

Close FS-418

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 9, 2026
Debug file uploads to Objectstore now pass a `filename` derived from the
debug ID and file extension, matching what the download endpoint already
sets as the Content-Disposition filename. Extracted the extension logic
from ProjectDebugFile.file_extension into a standalone helper so it can be
computed before the ProjectDebugFile row exists.
@lcian lcian force-pushed the lcian/feat/objectstore-debugfile-filename branch from 2f896af to dfe684d Compare July 9, 2026 15:30
@lcian lcian changed the title feat(objectstore): Set filename metadata when uploading debug files feat(difs): Set filename metadata on Objectstore-backed DIFs Jul 9, 2026
@lcian lcian requested a review from a team July 9, 2026 15:40
@lcian lcian marked this pull request as ready for review July 9, 2026 15:40
@lcian lcian requested review from a team as code owners July 9, 2026 15:40
@linear-code

linear-code Bot commented Jul 9, 2026

Copy link
Copy Markdown

FS-418

@lcian lcian merged commit 47ae832 into master Jul 10, 2026
98 of 99 checks passed
@lcian lcian deleted the lcian/feat/objectstore-debugfile-filename branch July 10, 2026 07:50
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