openwebwork / webwork2

Course management front end for WeBWorK
http://webwork.maa.org/wiki/Main_Page
Other
145 stars 165 forks source link

option to 'clean' a course just after unarchiving it #2291

Closed Alex-Jordan closed 8 months ago

Alex-Jordan commented 10 months ago

This adds a checkbox to the unarchive course page, and if checked, then when the course is unarchived it will be "cleaned". Cleaning means:

Another small thing is that this removes the checkbox for giving a new course name. If you've entered something into the field for the new course name, that is enough, and the checkbox is redundant.

Alex-Jordan commented 9 months ago

I made the two edits that you caught, thanks.

pstaabp commented 8 months ago

This looks good. I was getting a number of errors related to existing directories--some due to failed unarchiving. This is unrelated to this PR, but I wonder about being able to handle some of this better--either removing a new course directory if it fails to be made or the ability to overwrite an existing directory.