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

fix(backend): svg layout attachments are not visible sometimes #1777

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

detj
Copy link
Contributor

@detj detj commented Jan 28, 2025

Summary

This PR fixes an issue where for some cases attachments like SVG layout snapshots would not render because of unexpected mime types (application/octet-stream) inference. Attachment mime types would now be inferred from a more reliable source of information i.e. from the event batch itself rather than reading from the multipart request's form field headers.

Tasks

  • Read each blob's filename with extension from the event batch instead of the multipart request's form field headers
  • Refactor attachment upload to build object key from a reliable source of filename
  • Add more code documentation comments

See also

- read each blob's filename with extension from the event batch instead
of the multipart request's form field headers
- refactor attachment upload to build object key from a reliable source
of filename
- add more code documentation comments

fixes #1736

Signed-off-by: detj <[email protected]>
@detj detj added bug something isn't working backend backend related labels Jan 28, 2025
@detj detj self-assigned this Jan 28, 2025
Copy link

vercel bot commented Jan 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
measure-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 28, 2025 0:04am

@detj detj requested a review from anupcowkur January 28, 2025 12:07
@detj detj merged commit 253df7c into main Jan 28, 2025
10 checks passed
@detj detj deleted the fix-invisible-attachments branch January 28, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend backend related bug something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Svg layout for click gesture not visible/loaded
2 participants