Hi all
I am faced with the question on how to clean up a site with massively duplicated question categories. I am talking of about 400 courses with the number of questions varying from 500 to 9,500! Almost all courses have duplicate question categories. A screenshot from one of the worst courses is attached.
I can't figure out how this happened. This has been happening over years, I believe, at every semester roll-out. The teachers have "template" courses, kind originals from which they pull resources including quizzes to the running courses around with the Sharing cart. Every teacher owns a course category (Manager role) and can duplicate courses at will. The group leaders are Managers of the parent category where there are other "template" courses with resources and question categories - the originals of those multiplied question categories. The teachers run multiple classes for the same/related subjects and share the same pool of question categories. Yeah, the same "test" is being run with random questions every time.
Now my question is how do I clean up this mess? The automated course backups (on PHP CLI) started failing for the bigger courses and their number goes up on a weekly basis.
Even drastic measures like a start with a completely new site, new 4.5 LTS, at the beginning of the next academic year and to leave this site, 4.1 LTS, as an archive, are possible. But a) the new begin is with course backup/restore is pointless, if they carry the mess forward. b) even if we start with "lean" courses, it is pointless, if this growth continues there.
I tend towards that solution, even to the point of investing on manual migration, provided we stop this growth in the new site.
Current site: Moodle 4.1 LTS, always latest update. PHP had been 7.4 until end of December 2024, now running 8.1. MariaDB has been upgraded from 10.4 to 10.11 also in December.
I am aware of the many running discussions on similar problems and some notable tracker issues. Still prefer to make a new start without mixing up with those cases.