Skip to content

fix sentry svg#2967

Merged
JacobCoffee merged 1 commit intomainfrom
fix-spons-errs
Mar 20, 2026
Merged

fix sentry svg#2967
JacobCoffee merged 1 commit intomainfrom
fix-spons-errs

Conversation

@JacobCoffee
Copy link
Member

Description

  • Fix Sentry PYDOTORG-PROD-1JJ, PYDOTORG-PROD-1K7 issues

Copilot AI review requested due to automatic review settings March 20, 2026 22:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes Sentry errors triggered when sponsor logos are SVGs by avoiding thumbnail generation for SVG assets in both the public sponsors list and Django admin previews.

Changes:

  • Update sponsors list template to render SVG logos directly and thumbnail only raster images.
  • Update admin logo preview methods to bypass thumbnailing for SVGs and handle missing images more safely.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
apps/sponsors/templates/sponsors/partials/sponsors-list.html Render .svg logos directly; keep thumbnailing behavior for non-SVG logos in download/jobs sponsor blocks.
apps/sponsors/admin.py Render SVG logos directly in admin previews; keep thumbnailing for non-SVG; return placeholder when no logo is present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JacobCoffee JacobCoffee merged commit 258104a into main Mar 20, 2026
18 checks passed
@JacobCoffee JacobCoffee deleted the fix-spons-errs branch March 20, 2026 23:40
JacobCoffee added a commit that referenced this pull request Mar 20, 2026
JacobCoffee added a commit that referenced this pull request Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants