Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-15457 Moodle 3.11 QA
  3. MDLQA-15704

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

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Critical Critical
    • Moodle 3.11
    • Moodle 3.11
    • Backup
    • None

      Backup and restore with files references

      Test Pre-requisites:

      1. Log in as admin or teacher.
      2. Enable course legacy files for a 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 separately 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

        1. image-2021-04-12-16-15-38-743.png
          image-2021-04-12-16-15-38-743.png
          15 kB
        2. image-2021-04-12-16-17-12-285.png
          image-2021-04-12-16-17-12-285.png
          13 kB
        3. image-2021-04-12-16-18-01-468.png
          image-2021-04-12-16-18-01-468.png
          13 kB
        4. image-2021-04-12-16-19-14-321.png
          image-2021-04-12-16-19-14-321.png
          20 kB
        5. image-2021-04-12-16-34-12-421.png
          image-2021-04-12-16-34-12-421.png
          21 kB
        6. image-2021-04-12-16-35-32-771.png
          image-2021-04-12-16-35-32-771.png
          21 kB
        7. image-2021-04-12-16-37-10-655.png
          image-2021-04-12-16-37-10-655.png
          5 kB
        8. image-2021-04-12-16-38-41-201.png
          image-2021-04-12-16-38-41-201.png
          29 kB
        9. image-2021-04-12-16-42-20-015.png
          image-2021-04-12-16-42-20-015.png
          16 kB
        10. image-2021-04-12-16-43-32-295.png
          image-2021-04-12-16-43-32-295.png
          2 kB
        11. image-2021-04-12-16-44-41-086.png
          image-2021-04-12-16-44-41-086.png
          9 kB
        12. image-2021-04-12-16-48-57-093.png
          image-2021-04-12-16-48-57-093.png
          1 kB
        13. image-2021-04-12-16-50-44-571.png
          image-2021-04-12-16-50-44-571.png
          24 kB
        14. image-2021-04-12-16-52-48-955.png
          image-2021-04-12-16-52-48-955.png
          19 kB
        15. image-2021-04-12-16-56-39-168.png
          image-2021-04-12-16-56-39-168.png
          6 kB
        16. image-2021-04-12-16-56-52-971.png
          image-2021-04-12-16-56-52-971.png
          5 kB
        17. image-2021-04-12-17-02-40-796.png
          image-2021-04-12-17-02-40-796.png
          33 kB
        18. image-2021-04-12-17-03-57-601.png
          image-2021-04-12-17-03-57-601.png
          7 kB
        19. Selection_008.png
          Selection_008.png
          54 kB
        20. Selection_009.png
          Selection_009.png
          51 kB
        21. Selection_010.png
          Selection_010.png
          3 kB
        22. Selection_011.png
          Selection_011.png
          7 kB

            lsansone Luiggi Sansonetti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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