Repository navigation
Skip course clean up when unarchiving a legacy mysqldump archive, and add a "Clean Course" page. - #3269
Open
drgrice1 wants to merge 1 commit into
Open
Skip course clean up when unarchiving a legacy mysqldump archive, and add a "Clean Course" page.#3269drgrice1 wants to merge 1 commit into
drgrice1 wants to merge 1 commit into
Conversation
… add a "Clean Course" page. Courses restored from the old mysqldump archive format have database tables that have not been upgraded (e.g., missing the `version_id` columns), so the "Clean course after unarchiving" option threw an exception when deleting student users. Now `unarchiveCourse` reports how the database was restored, and the clean up is only performed for the JSON database dump format. If the archive is a mysqldump archive or has no database dump, the clean up is skipped and a message is shown stating that it could not be performed. A new "Clean Course" admin page performs the same clean up on a selected course. This allows a course restored from a mysqldump archive to be cleaned after it has been upgraded. The page refuses to clean a course whose database has not been upgraded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
drgrice1
force-pushed
the
unarchive-course-cleanup
branch
from
November 9, 2026 17:41
7ed1953 to
a8b395a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Courses restored from the old mysqldump archive format have database tables that have not been upgraded (e.g., missing the
version_idcolumns), so the "Clean course after unarchiving" option threw an exception when deleting student users. NowunarchiveCoursereports how the database was restored, and the clean up is only performed for the JSON database dump format. If the archive is a mysqldump archive or has no database dump, the clean up is skipped and a message is shown stating that it could not be performed.A new "Clean Course" admin page performs the same clean up on a selected course. This allows a course restored from a mysqldump archive to be cleaned after it has been upgraded. The page refuses to clean a course whose database has not been upgraded.