XMLWordPrintable

    • MOODLE_23_STABLE
    • MOODLE_24_STABLE
    • w37_MDL-35071_m24_enrolrestore
    • Hide

      This issue requires new QA tests, previously there was not much to test because only restore of manual enrolments worked properly.

      1/ create backups on different sites using different settings and enrolment instances (with/without users)

      2/ verify different restore types (new course, override and add content) with the "Restore as manual enrolments" enabled - it is expected that all enrolments are merged into one manual enrol instance

      3/ verify different restore types (new course, override and add content) with the "Restore as manual enrolments" disabled

      • manual enrolments are restored
      • self enrolments may be merged with existing instances if role matches
      • there is max 1 guest enrol instance
      • all other enrolment types are not supposed to be restored (yet)
      • verify instance sortorder matches the original course

      Note: MDL-27856 implements cohort restore, it could be tested together with this issue.

      Show
      This issue requires new QA tests, previously there was not much to test because only restore of manual enrolments worked properly. 1/ create backups on different sites using different settings and enrolment instances (with/without users) 2/ verify different restore types (new course, override and add content) with the "Restore as manual enrolments" enabled - it is expected that all enrolments are merged into one manual enrol instance 3/ verify different restore types (new course, override and add content) with the "Restore as manual enrolments" disabled manual enrolments are restored self enrolments may be merged with existing instances if role matches there is max 1 guest enrol instance all other enrolment types are not supposed to be restored (yet) verify instance sortorder matches the original course Note: MDL-27856 implements cohort restore, it could be tested together with this issue.

      List of solved problems:

      • no way to restore enrolments from disabled/nonexistent/nonrestorable plugins - solution is to add option to "Restore as manual enrolments" options which migrates data to standard enrol_manual plugin
      • no way to map/alter custom fields - such as roles or userid stored in customintX fields
      • roles need to be restored AFTER the enrolments because they need new enrolid
      • enrol->sortorder should be converted to XML field order, we do not need the value in backup file at all
      • support for multiple enrol-self instances
      • trigger automatic sync of all enrol plugins before the restore of first instance - this creates course category enrolments for example, it might trigger LDAP sync, etc.
      • let enrol plugins create instances, enrolments and role assignments - we need as much flexibility as possible, let plugins decide eveything

      Not included in this issue:

      • ability to backup/restore extra tables of enrol plugins
      • only self, manual and guest plugins are fully implemented, the rest will follow if this gets integrated

            skodak Petr Skoda
            skodak Petr Skoda
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.