Bugs reported on the latest published version of the plugin on github (2024031800) in UVa
As an admin role:
Administrator CLI
Steps to reproduce:
To restore 4 courses with the same category (restoring a category) in moodle 3.11 on a 4.1 platform and then if we create a new category, we need to check that the source courses have no enrolments or activities not installed on the target platform. Furthermore, question banks and quizzes are also removed because there are no WIRIS problems present on the target platform.
Actual result:
a) It is not possible to identify the cause of the non-restore, with error 104002: Error in preflight.
Using the same parameters as in the previous case result in an error: ["code": "11001", "msg": "The ID number is already in use by another category."]
b) This error does not seem to make sense because you are not providing a target category. You should create a new one.
*php* local/coursetransfer/cli/restore_category.php --site_url=https://moodle2023-des.uva.es/uva311https://moodle2023-des.uva.es/uva311 --origin_category_id=2585
--origin_enrolusers=true -- --origin_remove_category=false
It is certain that, despite the indicated error, you have created the category and restored the 4 courses. The LOG message does not correspond (unstated) with what actually happened, nor with the two previous error messages (a, b)
Expected result:
The category has been created successfully and the four courses have been restored.
Bugs reported on the latest published version of the plugin on github (2024031800) in UVa
As an admin role:
Administrator CLI
Steps to reproduce:
Actual result:
b) This error does not seem to make sense because you are not providing a target category. You should create a new one. *php* local/coursetransfer/cli/restore_category.php --site_url=https://moodle2023-des.uva.es/uva311 https://moodle2023-des.uva.es/uva311 --origin_category_id=2585 --origin_enrolusers=true -- --origin_remove_category=false
It is certain that, despite the indicated error, you have created the category and restored the 4 courses. The LOG message does not correspond (unstated) with what actually happened, nor with the two previous error messages (a, b)
Expected result:
The category has been created successfully and the four courses have been restored.