Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34696 enrol improvements 2.4 META
  3. MDL-35062

Add setting for cron action after enrolment expiration - enrol_self

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      1/ set up several courses with self enrolment
      2/ self enrol several users
      3/ edit some of the enrolments to have timeend < now
      4/ execute enrol/self/cli/sync.php script or cron
      5/ verify nothing changed (because default configuration is to do nothing - current state)
      6/ change expired action in self enrol settings to suspend and remove roles
      7/ execute the sync again and verify expired enrolments were suspended and self enrolled role removed
      8/ change expired action in self enrol settings to unenrol
      9/ execute the sync again and verify expired enrolments were removed together with roles

      10/ execute phpunit tests for all supported databases

      Show
      1/ set up several courses with self enrolment 2/ self enrol several users 3/ edit some of the enrolments to have timeend < now 4/ execute enrol/self/cli/sync.php script or cron 5/ verify nothing changed (because default configuration is to do nothing - current state) 6/ change expired action in self enrol settings to suspend and remove roles 7/ execute the sync again and verify expired enrolments were suspended and self enrolled role removed 8/ change expired action in self enrol settings to unenrol 9/ execute the sync again and verify expired enrolments were removed together with roles 10/ execute phpunit tests for all supported databases
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w38_MDL-35062_m24_selfaction

      Description

      Each plugin is responsible for handling of enrolment expiration, at present nothing happens automatically.

      There should be at least a site-wide setting for:
      1/ nothing (current behaviour)
      2/ remove all roles and suspend (recommended)
      3/ purge enrolment and some user data (very risky - grades, etc. are deleted)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/12