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

Restore decouple legacy files from config overwrite

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Testing Instructions:
      Hide

      You will need a backup with Legacy files, and one without.

      Using the backup without legacy files, do a restore, creating a new course or deleting course first.
      Set 'Legacy Files' to no.
      Complete restore and confirm that legacy files does not appear in course.
      Repeat with 'Legacy Files' to yes, and again confirm that no legacy files appear in the course.

      Using the backup with legacy files present, do a restore, creating a new course or deleting course first.
      Set 'Legacy Files' to no.
      Complete restore and confirm that legacy files does not appear in course.
      Repeat with 'Legacy Files' to yes, and again confirm that legacy files does appear in the course.

      Show
      You will need a backup with Legacy files, and one without. Using the backup without legacy files, do a restore, creating a new course or deleting course first. Set 'Legacy Files' to no. Complete restore and confirm that legacy files does not appear in course. Repeat with 'Legacy Files' to yes, and again confirm that no legacy files appear in the course. Using the backup with legacy files present, do a restore, creating a new course or deleting course first. Set 'Legacy Files' to no. Complete restore and confirm that legacy files does not appear in course. Repeat with 'Legacy Files' to yes, and again confirm that legacy files does appear in the course.
    • Affected Branches:
      MOODLE_22_STABLE
    • Pull Master Branch:

      Description

      In our school (which I know isn't unique), we create shell courses with defined names, dates, enrolments, etc.

      If you try and restore a 1.9 backup, or a 2.x backup with legacy files, the only way to get legacy files (without which resources and whatnot can break), is to overwrite course config, which will also overwrite names, dates, and various other settings.

      Personally I think that these should be decoupled, as they are not really inherently linked.

      I have a patch that I'll add to this which spits it out, that we are using.

      This is kinda a paradigm thing, so I'm not sure if others are interested in the idea or not...

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                23 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: