-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for Course Reset #64
Comments
Well. But what would be those data? The Subcourse instance does not really store anything. It just acts as a proxy to push the final grade as the activity grade to the gradebook. Do you mean it should reset the grades? Is not it the case automatically? |
The data that got my attention is the subcourse data that seems to have been "left behind" in the subcourse table after the subcourse activities were deleted from a course. This query:
But the above subcourse activities (862,863,864) have all been deleted from course 11580. So, should those records for those deleted activities still be in the mdl_subcourse table or should they have been deleted when the subcourse activities were deleted from the 11580 course? Course 11580 is a completely blank course - there are no activities in that course and no enrolled users. |
According to my Moodle Cron Logs, it seems like the subcourse module is still trying to fetch grades into the 11580 course for the three subcourse activities that have been deleted in course 11580: Subcourse 857: fetching grades from course 531 to course 11583 ... ok My course 11580 is a completely blank course at the moment - all activities in that course were deleted. |
In that case, those records in the |
Hi Luis - are you still having an issue here? - would be good to know if you deleted those courses strangely or if there's a delete course modules task in a failing state on your site preventing the subcourse from being deleted correctly. |
You'll see that the Subcourses plugin is listed as one of the activities where Course Reset has not implemented. I presume that Subcourses activity data will not be cleared when the course is reset. This could result in "Subcourses garbage" remaining behind when a course is reset.
Please can support for Course Reset be added to the Subcourses plugin so that all Subcourses data is cleared when a course containing a Subcourses activity is cleared.
I've only observed the above behaviour in Moodle 3.9. Not tested in newer versions of Moodle (my Moodle 4 test server is down...)
The text was updated successfully, but these errors were encountered: