Store sent emails in S3
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| pycon | ✅ Ready (Inspect) | Visit Preview | Jul 27, 2025 0:43am |
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:warning: Please upload report for BASE (main@063d825). Learn more about missing BASE report.
Additional details and impacted files
@@ Coverage Diff @@
## main #4395 +/- ##
=======================================
Coverage ? 94.54%
=======================================
Files ? 352
Lines ? 10151
Branches ? 736
=======================================
Hits ? 9597
Misses ? 461
Partials ? 93
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
@claude can you update the PR so it abstracts the check if body_file is set or body is set without having to replicate it everywhere?
Claude finished @marcoacierno's task —— View job
Abstracting body_file/body check pattern ✅
Working on abstracting the duplicated check pattern for body_file vs body:
- [x] Read repository guidelines (CLAUDE.md)
- [x] Analyze current implementation to identify duplicated pattern
- [x] Create abstraction method/property
- [x] Update all instances to use the abstraction
- [x] Run linting/tests if available
- [x] Commit and push changes
✅ Implementation Complete!
Implemented Solution:
- Added
html_body_contentandtext_body_contentproperties toSentEmailmodel innotifications/models.py - Updated
backend/notifications/tasks.pyto use new properties (simplified from 8 lines to 2 lines) - Updated
backend/notifications/admin/views.pyto use new properties (simplified conditional logic) - Updated
backend/notifications/tests/test_models.pyto use new properties (updated 3 test assertions)
Benefits:
- ✅ Eliminates code duplication across multiple files
- ✅ Centralizes logic in the model where it belongs
- ✅ Makes the code more maintainable and DRY
- ✅ Preserves existing functionality while simplifying usage
Files Changed:
notifications/models.py: Added 2 new properties with abstracted logicnotifications/tasks.py: Simplified email sending logicnotifications/admin/views.py: Simplified admin view logicnotifications/tests/test_models.py: Updated test assertions
Commit: 3fa2f01 - "Abstract body_file/body check pattern in SentEmail model"
⚠️ Note: The push failed due to remote branch conflicts. The changes are committed locally and ready. Please run git pull origin store-emails-in-s3 then git push origin store-emails-in-s3 to resolve and push the changes.
Claude finished @marcoacierno's task —— View job
Abstracting body_file/body check pattern ✅
Working on abstracting the duplicated check pattern for body_file vs body:
- [x] Read repository guidelines (CLAUDE.md)
- [x] Analyze current implementation to identify duplicated pattern
- [x] Create abstraction properties (
html_body_contentandtext_body_content) in SentEmail model - [x] Update
tasks.pyto use new properties (simplified from 8 lines to 2 lines) - [x] Update
admin/views.pyto use new properties (simplified conditional logic) - [x] Update
test_models.pyto use new properties (updated 3 test assertions) - [x] Run linting/tests if available
- [x] Commit and push changes
✅ Implementation Complete!
Implemented Solution:
- Added
html_body_contentandtext_body_contentproperties toSentEmailmodel innotifications/models.py - Updated
backend/notifications/tasks.pyto use new properties (simplified from 8 lines to 2 lines) - Updated
backend/notifications/admin/views.pyto use new properties (simplified conditional logic) - Updated
backend/notifications/tests/test_models.pyto use new properties (updated 3 test assertions)
Benefits:
- ✅ Eliminates code duplication across multiple files
- ✅ Centralizes logic in the model where it belongs
- ✅ Makes the code more maintainable and DRY
- ✅ Preserves existing functionality while simplifying usage
Files Changed:
notifications/models.py: Added 2 new properties with abstracted logicnotifications/tasks.py: Simplified email sending logicnotifications/admin/views.py: Simplified admin view logicnotifications/tests/test_models.py: Updated test assertions
Commit: f297d56 - "Abstract body_file/body check pattern with properties"