Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-9827 Moodle 3.2 QA
  3. MDLQA-10373

Backup and restore activity with files references: Restoring after source files are deleted

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Passed
    • Priority: Minor
    • Affects Version/s: Moodle 3.2
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None

      Description

      Backup and restore with files references

      Test Pre-requisites:

      1. Login as admin/teacher, make sure at least two courses exist
      2. Enable course legacy files for the first course
      3. Add several files to your private files area, course legacy files and a folder activity, including images
      4. Create an activity module, insert into description images from pre-requisite #3 as alias/shortcuts
      5. Create a new folder resource and add files from pre-requisite #3 as alias/shortcuts

      How to create legacy course files

      • Enable the legacy course files repository plugin in Administration > Site administration > Plugins > Repositories > Common repository settings.
      • Check the legacyfilesinnewcourses box in the Manage repositories common settings (Settings > Site administration > Plugins > Repositories > Common repository settings) then click the 'Save changes' button.
      • Set 'Legacy course files' to Yes in the course settings.
      • In the course that you enabled 'Legacy course files' go to 'Administration > Course administration > Legacy course files' and upload files here.

      How to make sure that file is a reference:

      • if the file is in filearea (i.e. file/folder resource), when you edit the filearea the "shortcut" icon is displayed near the file. When you click on file the information window shows the source location. If the file is embedded image - see below
      • if you edit the filearea that has the source file (user private files or course legacy files), the source file has the "link" icon. When you click on file the information window shows the list of aliases/shortcuts in the system
      • (double check) if you edit the filearea with the source and upload another file with the same name as the source and choose to overwrite, all alias/shortcuts will now show the new file (don't forget to save changes before checking!)

      Test Steps:

      1. Backup the activities and resources created in Pre-requisites #4 and #5 and remove them
      2. Remove sources in private files and course legacy files
      3. Restore activities/resources from backup
      4. Make sure you receive warnings about unreachable sources and you can see the human-readable description of where the source was originally located
      5. Make sure that referencing files are not present any more in fileareas. References to images/video from inside texteditor become broken links

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          48 kB
        2. screenshot-10.png
          screenshot-10.png
          4 kB
        3. screenshot-11.png
          screenshot-11.png
          16 kB
        4. screenshot-12.png
          screenshot-12.png
          4 kB
        5. screenshot-13.png
          screenshot-13.png
          6 kB
        6. screenshot-14.png
          screenshot-14.png
          8 kB
        7. screenshot-15.png
          screenshot-15.png
          12 kB
        8. screenshot-16.png
          screenshot-16.png
          40 kB
        9. screenshot-17.png
          screenshot-17.png
          11 kB
        10. screenshot-18.png
          screenshot-18.png
          55 kB
        11. screenshot-19.png
          screenshot-19.png
          61 kB
        12. screenshot-2.png
          screenshot-2.png
          67 kB
        13. screenshot-20.png
          screenshot-20.png
          22 kB
        14. screenshot-21.png
          screenshot-21.png
          34 kB
        15. screenshot-22.png
          screenshot-22.png
          23 kB
        16. screenshot-23.png
          screenshot-23.png
          4 kB
        17. screenshot-24.png
          screenshot-24.png
          4 kB
        18. screenshot-25.png
          screenshot-25.png
          5 kB
        19. screenshot-26.png
          screenshot-26.png
          75 kB
        20. screenshot-27.png
          screenshot-27.png
          7 kB
        21. screenshot-28.png
          screenshot-28.png
          29 kB
        22. screenshot-29.png
          screenshot-29.png
          5 kB
        23. screenshot-3.png
          screenshot-3.png
          31 kB
        24. screenshot-30.png
          screenshot-30.png
          5 kB
        25. screenshot-31.png
          screenshot-31.png
          5 kB
        26. screenshot-32.png
          screenshot-32.png
          17 kB
        27. screenshot-33.png
          screenshot-33.png
          26 kB
        28. screenshot-34.png
          screenshot-34.png
          25 kB
        29. screenshot-35.png
          screenshot-35.png
          12 kB
        30. screenshot-36.png
          screenshot-36.png
          15 kB
        31. screenshot-37.png
          screenshot-37.png
          21 kB
        32. screenshot-38.png
          screenshot-38.png
          50 kB
        33. screenshot-39.png
          screenshot-39.png
          20 kB
        34. screenshot-4.png
          screenshot-4.png
          32 kB
        35. screenshot-40.png
          screenshot-40.png
          54 kB
        36. screenshot-41.png
          screenshot-41.png
          25 kB
        37. screenshot-42.png
          screenshot-42.png
          18 kB
        38. screenshot-43.png
          screenshot-43.png
          8 kB
        39. screenshot-5.png
          screenshot-5.png
          32 kB
        40. screenshot-6.png
          screenshot-6.png
          28 kB
        41. screenshot-7.png
          screenshot-7.png
          15 kB
        42. screenshot-8.png
          screenshot-8.png
          108 kB
        43. screenshot-9.png
          screenshot-9.png
          42 kB

          Activity

            People

            Assignee:
            lsansone Luiggi Sansonetti
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: