Skip to content
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

Course offering seeding fix #36411

Merged
merged 2 commits into from
Aug 24, 2020
Merged

Course offering seeding fix #36411

merged 2 commits into from
Aug 24, 2020

Conversation

uponthesun
Copy link

Fixes this staging seeding failure: https://codedotorg.slack.com/archives/C03CK8E51/p1598249784076000

Which occurred because CourseVerisons exist in the DB that don't have associated CourseOfferings, and this case wasn't handled in the destroy_and_destroy_parent_if_empty method before. This state shouldn't normally exist, but it did because I added logic to seed CourseVersions before adding the CourseOffering model and seeding logic.

@uponthesun uponthesun merged commit 2df798a into staging Aug 24, 2020
@uponthesun uponthesun deleted the course-offering-seeding-fix branch August 24, 2020 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant