-
Notifications
You must be signed in to change notification settings - Fork 24
Add grants_waiting_list_update deadline type #4544
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This comment has been minimized.
This comment has been minimized.
5409943 to
b65cb2f
Compare
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4544 +/- ##
=======================================
Coverage 94.15% 94.15%
=======================================
Files 353 353
Lines 10339 10342 +3
Branches 760 761 +1
=======================================
+ Hits 9735 9738 +3
Misses 502 502
Partials 102 102 🚀 New features to boost your workflow:
|
b65cb2f to
7af5e2f
Compare
This comment has been minimized.
This comment has been minimized.
Replace the awkward filtering by custom type with name matching for grants waiting list update deadlines with a proper dedicated deadline type. - Add `grants_waiting_list_update` to Deadline.TYPES enum - Update `_send_grant_waiting_list_email` to filter by new type - Add migration to convert existing custom deadlines with name "Update Grants in Waiting List" to the new type - Update CLAUDE.md to specify Docker-based development commands
7af5e2f to
c9a9b88
Compare
SummaryThis PR refactors the grants waiting list deadline handling by introducing a dedicated Overall, this is a solid improvement that makes the codebase more maintainable and type-safe. The changes are well-tested and the migration is properly reversible. Architecture & Design ✅Strengths:
Minor consideration:
Testing & Coverage ✅Strengths:
Minor improvement opportunity:
Error Handling ✅Strengths:
Performance ✅No performance concerns. The Migration ConsiderationsPotential issue with JSONField query:
Suggestion: Before deploying, verify in production: Deadline.objects.filter(type="custom", name__contains={"en": "Update Grants"}).values('id', 'name', 'conference__code')CLAUDE.md Changes ✅The Docker command documentation updates are helpful and clear. Good addition for developer experience. RecommendationsHigh priority: Nice to have:
Great work on this refactoring! 🎉 |
Summary
grants_waiting_list_updatedeadline type instead of using a "custom" deadline with name matchingTest plan
docker exec pycon-backend-1 uv run pytest grants/tests/test_tasks.py -k "waiting_list"