General plugins (Local): Course recompletion

local_recompletion
Maintained by Picture of Dan MarsdenDan Marsden, Picture of Catalyst ITCatalyst IT
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.
410 sites
283 downloads
47 fans
Moodle 3.5, 3.6, 3.7, 3.8, 3.9

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 (You will have to write your own reports to view this archived data though - no reports are currently included in this plugin.)

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)

The following activities have extra support:

  1. Quiz - You can choose to delete all existing quiz attempt data with the option to archive the information or, you can keep the existing attempts and give the student the ability to add new attempts.

  2. SCORM - You can choose to delete all existing SCORM attempt data with the option to archive the information.

  3. Assignment - You can 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.

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

Screenshots

Screenshot #0

Contributors

Picture of Dan Marsden
Dan Marsden (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Jake Garrison
    Thu, Sep 12, 2019, 2:27 AM
    HI Dan!
    Was curious if you could point me in a direction to solve a problem. It seems your plugin does not reset attempts for H5P based activities. Was hoping I could modify it myself. I'm pretty handy with PHP but Moodle is a bit of a beast. Any pointers?
  • Picture of Karolien Burms
    Fri, Sep 20, 2019, 11:31 PM
    Hi Dan,
    Maybe you could help me with something. The CRON task "Check for users that need to recomplete" does not run for me but adds a fail delay every time. Do you have an idea what could have gone wrong? We have moodle 3.6
    In the log file for CROn we see this:
    Execute scheduled task: Check for users that need to recomplete (local_recompletion\task\check_recompletion)
    ... started 15:50:01. Current memory use 19.4MB.
    ... used 1 dbqueries
    ... used 0.050018072128296 seconds
    Scheduled task failed: Check for users that need to recomplete (local_recompletion\task\check_recompletion),Error reading from database

    Thanks!
  • Picture of Dan Marsden
    Mon, Sep 23, 2019, 9:20 AM
    @Karolien - try the latst code from github, there was a bug related to the cron tasks that was fixed semi-recently.
  • Picture of MAG II
    Tue, Sep 24, 2019, 11:07 PM
    Hello -
    I have been using your plugin for some time, and have had a course recomplete after 365 days. Meanwhile, I have been tracking how long it takes a user from time of enrollment in a course to how long it takes that person to complete the course. I have been doing this via SQL with information in the database tables (Moodle Adminer plugin).

    Now that my course has recompleted I am having trouble finding the actual date that the course reset for a user. Is this date of when course recompletes (resets) available in the database somewhere?
  • Picture of Dan Marsden
    Wed, Sep 25, 2019, 7:55 AM
    @Mag - you might need to look at the log table for the completion_reset event for that user. don't think there's any other fields you could use to do this sorry.
  • Picture of MAG II
    Sat, Sep 28, 2019, 12:54 AM
    Hey Dan - Thanks for the response. That sounds like it would put me on the right track, but where do I find the completion_reset event in the database? I opened up all of the log tables and did not find such an event.
  • Picture of Dan Marsden
    Mon, Sep 30, 2019, 4:54 AM
    take a look in the logstore_standard_log table or the site logs report and you should see a recompletion log entry at the time of recompletion.
  • Picture of David Collins
    Fri, Dec 27, 2019, 12:38 AM
    I would like the plug-in to not reset completion automatically, and only at the user's request. I assumed setting the recompletion period to 0 would do this, but I am seeing instances of the user completion reset by the CLI in the log table you mention above. Is that the expected behavior?
  • Picture of Dan Marsden
    Mon, Jan 27, 2020, 5:58 AM
    @David Collins - you would be better to set it to some large figure in the future (try something like 50 years)
  • Picture of Paul Hodder
    Tue, Jul 21, 2020, 2:11 AM
    We are implementing the recompletion plugin for a customer, and they would like us to enable this function for over 200 courses. In looking at the install package and the tables it creates, i believe the only table that would need to be updated is mdl_local_recompletion_config. It appears that the remaining tables are archives for activity completions when users actually recomplete their courses. Dan, can you confirm this assumption? We are thinking requesting a list of course codes and running a script to populate the config table.
  • Picture of Dan Marsden
    Wed, Jul 22, 2020, 5:06 PM
    @Paul - sounds about right! hopefully the plugin works for them!
  • Picture of Daniele Piovan
    Tue, Sep 8, 2020, 11:07 PM
    Hi Dan, I'm looking for something to help me do this: if the student doesn't pass the quiz, the system forces him to download the lesson 1 and 2 file. Does your plugin do this too?
  • Picture of Dan Marsden
    Wed, Sep 9, 2020, 5:19 AM
    @Daniele - No.
  • Picture of Gunnar Hustvedt
    Mon, Sep 14, 2020, 6:43 PM
    Hi. I have problem getting the plugin to work. Is it compatible with Moodle version 3.9.1 ? I have just tested it on a "Test coruse" I have, and sometimes it will work and clear all course and activity completion data, and sometimes it will not. The course consist of one activity (Scorm package made in Captivate 2019) .
  • Picture of Dan Marsden
    Tue, Sep 15, 2020, 7:20 AM
    Works fine for me in 3.9 - sorry I can't help any further at this stage. good luck!
1 2 3 4 5 6
Please login to post comments