Moodle plugins directory: Course recompletion | Moodle.org
Course recompletion
This plugin adds course level settings for recompletion - clearing all course and activity completion for a user based on the duration set notifying the student they need to return to the course and recomplete it.
This plugin could be used to facilitate annual re-certification.
This plugin deletes existing course completion and activity completion data based on the schedule set by the teacher including the ability to delete Quiz and SCORM attempts within the course. You can also choose to retain the quiz and SCORM attempts within archive tables within the recompletion plugin. Limited reporting functionality on the archive tables is avaialble using custom report builder sources. (see Reportbuilder docs for more info.)
The following information is cleared from the course during recompletion:
- All activity grades cleared (and saved to standard grade history tables.)
- All activity completion and course completion flags removed. (with the option to archive this information)
Reporting on data archived by the plugin can be done using Moodle's custom reports feature:
https://docs.moodle.org/en/Custom_reports
The following activities currently allow their data to be deleted and archived:
-
Assignment - You can also choose to give the student another attempt (if the assignment is configured to allow reopening and the maximum number of attempts has not been reached.
Quiz - You can keep the existing attempts and give the student the ability to add new attempts.
-
Choice activity.
SCORM
-
LTI
Lesson
core Hvpactivity and 3rd party mod_hvp plugins are supported.
-
Pulse - resets notifications.
-
Questionnaire
-
Custom certificate (mod_customcert) - resets/removes the old certificate.
Course certificate (mod_coursecertificate)
Hotpot
Other activities that store user data will have the activity completion data reset, but may require manual intervention as they are not yet supported fully. Get in touch privately if you would like to fund support for other activities with user data.
For more information on the current issues with this plugin please see the issues tracker:
https://github.com/danmarsden/moodle-local_recompletion/issues
I refer to James Peter post of november 8 2022, 06:54 about H5P activities and customised certificates.
Are there any new features?
This would be a perfect plugin for me if the activities of these two types of content (plugins) could also be deleted/reset...
Thank you.
David
We recently updated to Moodle 4.3.3 - every morning I pull System Logs to see which courses have reset. Today's logs were missing two entries for the Event name = Course recompletion.
Nine courses were displayed on the log file - 7 displayed as expected.
These are old courses and have always displayed the Event name as expected.
I have a screen capture of the log file - but it appears we cannot insert/upload files to this forum.
Please advise,
Shirley
Exception occurred while calling local_recompletion\privacy\provider::get_contexts_for_userid.
This means that plugin local_recompletion did not complete the processing of data. The following exception information may be passed on to the plugin developer:
Error reading from database
#0 /home/moodle/public_html/lib/dml/moodle_read_slave_trait.php(293): moodle_database->query_end()
#1 /home/moodle/public_html/lib/dml/mysqli_native_moodle_database.php(1337): mysqli_native_moodle_database->query_end()
#2 /home/moodle/public_html/privacy/classes/local/request/contextlist.php(71): mysqli_native_moodle_database->get_recordset_sql()
#3 /home/moodle/public_html/local/recompletion/classes/privacy/provider.php(525): core_privacy\local\request\contextlist->add_from_sql()
#4 /home/moodle/public_html/lib/moodlelib.php(8309): local_recompletion\privacy\provider::get_contexts_for_userid()
#5 /home/moodle/public_html/privacy/classes/manager.php(578): component_class_callback()
#6 /home/moodle/public_html/privacy/classes/manager.php(611): core_privacy\manager::component_class_callback()
#7 /home/moodle/public_html/privacy/classes/manager.php(237): core_privacy\manager->handled_component_class_callback()
#8 /home/moodle/public_html/admin/tool/dataprivacy/classes/task/process_data_request_task.php(93): core_privacy\manager->get_contexts_for_userid()
#9 /home/moodle/public_html/lib/classes/cron.php(508): tool_dataprivacy\task\process_data_request_task->execute()
#10 /home/moodle/public_html/lib/classes/cron.php(302): core\cron::run_inner_adhoc_task()
#11 /home/moodle/public_html/lib/classes/cron.php(128): core\cron::run_adhoc_tasks()
#12 /home/moodle/public_html/admin/cli/cron.php(186): core\cron::run_main_process()
#13 {main}
We are self-hosted and have recently upgrade to Moodle 4.3.3+ the behavior changed then.
We are also struggling with courses that are using the recomplete option after the upgrade. At first we thought it was connected to the UI navigation changes, the removal of the Exit arrow for the Book Activities. The Book Activity does not update the activity status, but older courses. New courses behave as expected. New students with the older courses, do not have issues.
Trackers https://tracker.moodle.org/browse/MDL-80864 and https://tracker.moodle.org/browse/MDL-78535
I am currently using the Activity Completion view to select the Book Activity for each student to allow them to advance to the quiz activity.
We have been using recomplete for years now, is there a limit to how many times a student's status can be reset?
@Shirley - sorry I can't help much further at this stage - if you manage to identify an issue that you think is coming from the recompletion plugin please create an issue for it in the github issues tracker but without further information about the recompletion problem I don't think there's much I can do. If you would like commercial level support feel free to reach out and I can put you in touch with our sales team to discuss your needs.
Validating local_recompletion ... Error
[Error] Required Moodle version [2022112805]
Installation aborted due to validation failure
I am running running Moodle version 4.1.1+ (Build: 20230224)
Any help will be appreciated.
Thank you.
Thank you sincerely for providing this great plugin - it seems to be very useful!
The only issue is that our courses rely on the simple certificate activity (https://moodle.org/plugins/mod_simplecertificate), and when it's time for recompletion, apparently the activity data here is not cleared - the old certificate keeps showing up and the user is not able to get a new one.
Is there a way to retain the simple certificate activity (unfortunately we can't change it) while ensuring that related data is cleared during recompletion? Any help would be greatly appreciated.
Thx!
I was just trying to work out why the local/recompletion:resetmycompletion has a risk bit mask of RISK_XSS. That riskbitmask definition is user can submit content that is not cleaned (both HTML with active content and unprotected files), but I dont see how user can do that with local/recompletion:resetmycompletion capability?
Thanks