feat: Automatically send voucher when grant is confirmed#4573
Open
marcoacierno wants to merge 1 commit intomainfrom
Open
feat: Automatically send voucher when grant is confirmed#4573marcoacierno wants to merge 1 commit intomainfrom
marcoacierno wants to merge 1 commit intomainfrom
Conversation
When a user accepts a grant by setting the status to "confirmed", the system now automatically creates a voucher for the free ticket and sends an email to the grantee, similar to how it works for speakers. Changes: - Add `create_and_send_grant_voucher` Celery task in grants/tasks.py - Creates voucher via Pretix integration - Handles case where user already has a speaker voucher (skips) - Upgrades co-speaker voucher to grant voucher if applicable - Sends voucher code email to the grantee - Trigger the task when grant status changes to "confirmed" in the send_grant_reply GraphQL mutation - Add tests for the new functionality Closes #4572 Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Automatically sends vouchers when grants are confirmed by users. The code correctly delegates to async tasks, handles existing vouchers (including co-speaker upgrades), and follows established patterns for speaker vouchers. Issues FoundError Handling
Potential Race Condition
Missing Integration with Admin Flow
Inconsistent Voucher Upgrade Logic
Testing Gap
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a user accepts a grant by setting the status to "confirmed", the system now automatically creates a voucher for the free ticket and sends an email to the grantee, similar to how it works for speakers.
Closes #4572
Generated with Claude Code