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

Keep LMSCourse and LMSUser up to date on every launch #6589

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

marcospri
Copy link
Member

@marcospri marcospri commented Aug 23, 2024

For:

This the revert-of-a-revert PR

I reverted #6588 due to a bug, fixed in this commit: d3a7c9c.

We should not try to upsert "copied_from_id" in the new table as the reference to the original courses might not yet exists in the DB. We can only do that once backfill the table.

@marcospri marcospri changed the title Upsert lms user lms course Upsert LMSUser and LMSCourse rows Aug 23, 2024
@marcospri marcospri mentioned this pull request Aug 23, 2024
21 tasks
@marcospri marcospri changed the title Upsert LMSUser and LMSCourse rows Keep LMSCourse and LMSUser up to date on every launch Aug 23, 2024
@marcospri marcospri requested review from acelaya and seanh and removed request for acelaya August 23, 2024 11:16
@marcospri marcospri changed the base branch from main to fix-lms-course-membership-table August 23, 2024 11:21
We need the FK on the LMSCourse table itself, not the old table.

However we can't yet get that value until we backfill the table
complete to get a reference for all row in the new table.
@marcospri marcospri force-pushed the upsert-lms-user-lms-course branch from d3a7c9c to 03af337 Compare August 23, 2024 11:22
Base automatically changed from fix-lms-course-membership-table to main August 26, 2024 07:10
@marcospri marcospri merged commit 8f009ee into main Aug 26, 2024
9 checks passed
@marcospri marcospri deleted the upsert-lms-user-lms-course branch August 26, 2024 07:11
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.

2 participants