-
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
mitxonline dashboard crashes when courserun has no upgrade deadline #2362
mitxonline dashboard crashes when courserun has no upgrade deadline #2362
Conversation
@cp-at-mit I think this might be a related issue #2137. Does this PR fix this issue? |
Yeah it sounds like this would resolve that requirement |
This reverts commit 93cbbf9.
for more information, see https://pre-commit.ci
This reverts commit 4dd33a9.
…-upgrade-deadline' of https://github.com/mitodl/mitxonline into 5284-mitxonline-dashboard-crashes-when-courserun-has-no-upgrade-deadline
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 think this PR should make "upgrade deadline" be required field on the CourseRun model.
@annagav What date should the migration use for CourseRuns without an upgrade deadline? |
@cp-at-mit are there there many course runs in production that are missing it? What type of courses are those? |
I think I saw 8 courses without an upgrade deadline. I think they are just normal courses. |
So all the upgrade_deadline does is that it prevents a user from enrolling in verified more after the deadline. So if there is no deadline I am assuming no verified mode is available for the course. So we can set the missing upgrade deadline values to any date in the past or now. |
While our current business rule is that all courses should offer certificates or sale and therefore have an upgrade deadline, I'm reluctant to add a validation for this. Where would it be applied? How will it complicate the course configuration process, which is already quite messy? What do we do if the upgrade deadline hasn't been determined at the time of courserun creation? And does it tie our hands for offering new types of courses in the future, like SPOCs (small private courses) or other courses without certificates? |
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.
👍
What are the relevant tickets?
https://github.com/mitodl/hq/issues/5284
Description (What does it do?)
mitxonline dashboard crashes when courserun has no upgrade deadline
How can this be tested?