2.0 - Deleting of grades information when student is unenrolled

Re: 2.0 - Deleting of grades information when student is unenrolled

by Bob Puffer -
Number of replies: 0

Thank you Petr for bringing this out into the forum discussion.  Just to clarify, we don't re-use courses and store last term's grades with the intent of reloading them if needed.  The scenario described is real, all involving the same term and doesn't involve extraordinary changes to the external database enrol plugin -- it involves commenting out the single block of code that purges all enrollments for a course once the course no longer exists anywhere in the external database authority.  This doesn't involve a complicated workflow but does undo a negative result of the external database enrol plugin design in that, in lieu of commenting out this block, the only other options are:

  1. Maintain no enrollments for past term courses, losing all the data with the unenrolled students... or
  2. Maintain all enrollments in the external authority for however long you wish to keep enrollments for past terms (frequently two years or more having talked with other schools) and synch that massive amount of data when you need really only be synching the current term's enrollments to update them for changes not yet reflected by a new student logging into Moodle.