Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34859

General Restore Defaults

    XMLWordPrintable

Details

    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_28_STABLE
    • MOODLE_33_STABLE
    • wip-MDL-34859-master
    • Hide

      0. Make sure you ran upgrade process - there is no version bump in this branch but upgrade is needed so the defaults for the settings are written to mdl_config.

      1. Create a backup of a course that has users, custom enrolment methods (for example "self"), activities, blocks, etc.
      2. Go to Site Administration > Courses > General restore defaults and create some funny set of default settings, lock some of them.
      3. As a manager (not admin!) restore this backup and make sure the defaults applied: try restoring as a new course, merging into existing and replacing existing (delete existing course contents).
      4. Make sure all defaults applied properly
      5. When restoring into existing course experiment with "Overwrite course configuration" and keeping/overwriting course name and startdate - this hopefully became more clear in the UI now.
      6. Revoke from the manager one (or all) of capabilities:

      • moodle/course:changeshortname
      • moodle/course:changefullname
      • moodle/restore:rolldates

      7. In the default settings lock defaults to overwrite course names/dates.
      8. As a manger restore the course merging/replacing the existing course and make sure that names/dates were NOT changed and permission absence wins over config lock.
      9. Experiment with editing section name using the sectionedit form - make sure you can switch between default and custom section name

      Show
      0. Make sure you ran upgrade process - there is no version bump in this branch but upgrade is needed so the defaults for the settings are written to mdl_config. 1. Create a backup of a course that has users, custom enrolment methods (for example "self"), activities, blocks, etc. 2. Go to Site Administration > Courses > General restore defaults and create some funny set of default settings, lock some of them. 3. As a manager (not admin!) restore this backup and make sure the defaults applied: try restoring as a new course, merging into existing and replacing existing (delete existing course contents). 4. Make sure all defaults applied properly 5. When restoring into existing course experiment with "Overwrite course configuration" and keeping/overwriting course name and startdate - this hopefully became more clear in the UI now. 6. Revoke from the manager one (or all) of capabilities: moodle/course:changeshortname moodle/course:changefullname moodle/restore:rolldates 7. In the default settings lock defaults to overwrite course names/dates. 8. As a manger restore the course merging/replacing the existing course and make sure that names/dates were NOT changed and permission absence wins over config lock. 9. Experiment with editing section name using the sectionedit form - make sure you can switch between default and custom section name
    • 3.3 sprint 4

    Description

      We ran into an issue today with instructors performing restores. On the final screen before performing the restore Instructors have the option to "overwrite course configuration". This can be a problem with our instance in that all students are loaded from an ERP system. So if an instructor changes the short name the students will no longer be able to be loaded. I've restricted instructors from changing this in the course settings but the restore option allows this.

      I would like to see General Restore options that can be locked just like the page at /admin/settings.php?section=backupgeneralsettings.

      Attachments

        1. idea.png
          idea.png
          37 kB
        2. restoring1.png
          restoring1.png
          35 kB
        3. restoring2.png
          restoring2.png
          35 kB
        4. Screen Shot 2017-03-09 at 4.21.04 pm.png
          Screen Shot 2017-03-09 at 4.21.04 pm.png
          36 kB
        5. section1.png
          section1.png
          24 kB
        6. section2.png
          section2.png
          25 kB
        7. settings1.png
          settings1.png
          81 kB
        8. settings2.png
          settings2.png
          69 kB
        9. settings3.png
          settings3.png
          93 kB
        10. withcheckboxes.png
          withcheckboxes.png
          22 kB

        Issue Links

          Activity

            People

              marina Marina Glancy
              henestofelj James Henestofel
              John Okely John Okely
              Dan Poltawski Dan Poltawski
              Helen Foster Helen Foster
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May, David Woloszyn, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              12 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/May/17