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

Add setting for cron action after enrolment expiration - enrol_manual

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3
    • 2.4
    • Enrolments
    • MOODLE_23_STABLE
    • MOODLE_24_STABLE
    • w38_MDL-35063_m24_manualaction
    • Hide

      1/ set up several courses with manual enrolment
      2/ enrol several users
      3/ edit some of the enrolments to have timeend < now
      4/ execute enrol/manual/cli/sync.php script or cron
      5/ verify nothing changed (because default configuration is to do nothing - current state)
      6/ change expired action in manual 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 manual 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 manual enrolment 2/ enrol several users 3/ edit some of the enrolments to have timeend < now 4/ execute enrol/manual/cli/sync.php script or cron 5/ verify nothing changed (because default configuration is to do nothing - current state) 6/ change expired action in manual 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 manual 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

    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

              skodak Petr Skoda
              skodak Petr Skoda
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Mark Nelson Mark Nelson
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12