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

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

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

Alex-Jordan
Copy link
Contributor

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

  • remove all student users and associated data from the database
  • delete the log files
  • delete any scoring files

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.

drgrice1 added a commit to drgrice1/webwork2 that referenced this pull request Jan 9, 2024
Copy link
Member

@drgrice1 drgrice1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some things that I see that need to be fixed. I have implemented all of these in a pull request that I will submit to this branch.

lib/WeBWorK/ContentGenerator/CourseAdmin.pm Outdated Show resolved Hide resolved
lib/WeBWorK/ContentGenerator/CourseAdmin.pm Outdated Show resolved Hide resolved
lib/WeBWorK/ContentGenerator/CourseAdmin.pm Outdated Show resolved Hide resolved
lib/WeBWorK/ContentGenerator/CourseAdmin.pm Outdated Show resolved Hide resolved
drgrice1 added a commit to drgrice1/webwork2 that referenced this pull request Jan 9, 2024
Alex-Jordan added a commit to Alex-Jordan/webwork2 that referenced this pull request Jan 10, 2024
Alex-Jordan pushed a commit to Alex-Jordan/webwork2 that referenced this pull request Jan 10, 2024
Copy link
Member

@drgrice1 drgrice1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good now and is a useful feature.

lib/WeBWorK/ContentGenerator/CourseAdmin.pm Outdated Show resolved Hide resolved
@Alex-Jordan
Copy link
Contributor Author

I made the two edits that you caught, thanks.

Alex-Jordan pushed a commit to Alex-Jordan/webwork2 that referenced this pull request Jan 20, 2024
@pstaabp
Copy link
Member

pstaabp commented Feb 7, 2024

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.

@drgrice1 drgrice1 merged commit baa087d into openwebwork:develop Feb 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants