Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-10999 Moodle 3.4 QA testing
  3. MDLQA-11309

CLONE - Backup and restore activity with files references: Recovering activities in the same course

    XMLWordPrintable

    Details

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

      Description

      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. Restore from backup into the same course
      3. Make sure that all files are still references

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          32 kB
        2. screenshot-10.png
          screenshot-10.png
          27 kB
        3. screenshot-11.png
          screenshot-11.png
          11 kB
        4. screenshot-12.png
          screenshot-12.png
          15 kB
        5. screenshot-13.png
          screenshot-13.png
          4 kB
        6. screenshot-14.png
          screenshot-14.png
          11 kB
        7. screenshot-15.png
          screenshot-15.png
          25 kB
        8. screenshot-16.png
          screenshot-16.png
          24 kB
        9. screenshot-17.png
          screenshot-17.png
          23 kB
        10. screenshot-18.png
          screenshot-18.png
          28 kB
        11. screenshot-19.png
          screenshot-19.png
          30 kB
        12. screenshot-2.png
          screenshot-2.png
          10 kB
        13. screenshot-20.png
          screenshot-20.png
          32 kB
        14. screenshot-3.png
          screenshot-3.png
          10 kB
        15. screenshot-4.png
          screenshot-4.png
          10 kB
        16. screenshot-5.png
          screenshot-5.png
          15 kB
        17. screenshot-6.png
          screenshot-6.png
          8 kB
        18. screenshot-7.png
          screenshot-7.png
          41 kB
        19. screenshot-8.png
          screenshot-8.png
          33 kB
        20. screenshot-9.png
          screenshot-9.png
          35 kB

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: