-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove voucher columns from Grant model #4335
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4335 +/- ##
==========================================
- Coverage 94.45% 94.45% -0.01%
==========================================
Files 349 349
Lines 9950 9948 -2
Branches 700 700
==========================================
- Hits 9398 9396 -2
Misses 462 462
Partials 90 90 |
@@ -461,9 +459,6 @@ class GrantAdmin(ExportMixin, ConferencePermissionMixin, admin.ModelAdmin): | |||
"total_amount", | |||
"applicant_reply_sent_at", | |||
"applicant_reply_deadline", | |||
"pretix_voucher_id", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be beneficial to expose in this admin something that checks if a ConferenceVoucher exists for this grant user, so we don't need to go to a different UI to check if this grant has the voucher or not. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah was thinking about.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the columns has_voucher
and has_ticket
Removed the columns `pretix_voucher_id`, `voucher_code`, and `voucher_email_sent_at` from the `Grant` model. These columns are no longer needed as we now use the `ConferenceVoucher` table for voucher management.
200c32e
to
ff5d55f
Compare
Added `has_ticket` and `has_voucher` columns to the GrantAdmin model to determine if a user has a voucher or has redeemed a ticket. The `has_ticket` data is fetched from Pretix via the API, while the `has_voucher` data is retrieved from the `ConferenceVoucher` table.
ff5d55f
to
d45033f
Compare
Removed the columns
pretix_voucher_id
,voucher_code
, andvoucher_email_sent_at
from theGrant
model. These columns are nolonger needed as we now use the
ConferenceVoucher
table for vouchermanagement.
What
ToDo