-
Notifications
You must be signed in to change notification settings - Fork 2
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
"Invalid Date" appears in "Unused Enrollment Codes" UI in certain conditions. #2512
Comments
What database fields are used to populate "Use code by ____" and "Start Date: ____" ? |
"Use code by": |
Above spreadsheet was generated via:
and then filtering out some whose latest |
No user has ever mentioned this, so I don't think it's a high-priority issue. But it does perhaps reveal some unexpected issues with our data and practices. TL;DR, I think we should change this UI to protect against missing data. However, I'm going to assert a couple of things:
|
Nit: the message is also using the product data model type string (i.e. model class name lowercased):
This should probably be a human-readable value instead, because it displays "courserun" for courses. |
Steps to Reproduce
Create a course run with a null start date.
Create a coupon for a course run (the same above or another), give the
CouponPaymentVersion
a null expiration date.Assign the coupon code to one of your users.
Log in as that user.
Go to https://xpro.mit.edu/dashboard/
Expected Behavior
Under the "Unredeemed Enrollment Code(s)" section, you should see appropriate text (TBD) for "Use code by ____" and "Start Date: ____"
Actual Behavior
"Use code by Invalid Date"
"Start Date: Invalid Date"
Screenshot or Screencast
The text was updated successfully, but these errors were encountered: