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

User Tour: Exported file does not contain the uploaded image

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-73210-master-2
    • Hide

      Initial setup

      1. Create a new user tour with below detail:
        • Name: First tour.
        • Description: My first tour.
        • Apply to URL match: /my/%
        • Tour is enabled: Checked.

      Export and import

      1. Open the User tour setting page.
      2. Click on the View link of the My first tour.
      3. Click on the New step link.
      4. Set the Title to: Title 1
      5. Upload the funny-cat.jpg image to the Atto editor.
      6. Press Save changes.
      7. Verify that you see the funny cat image.
      8. Navigate back to the User tour setting page.
      9. Click on the Export tour link of the First tour.
      10. Verify that the browser will download a json file.
      11. Click on the Delete tour link of the First tour to delete the tour.
      12. Click on Import tour.
      13. Drag/Select the downloaded json file and press Save changes.
      14. Verify that the system will import the tour without any errors.
      15. Verify that you will see the funny cat image.

      Tour duplicate

      1. Create the tour again (Follow the Initial setup steps).
      2. Open the User tour setting page.
      3. Click on the View link of the My first tour.
      4. Click on the New step link.
      5. Set the Title to: Title 1
      6. Upload the funny-cat.jpg image to the Atto editor.
      7. Press Save changes.
      8. Verify that you see the funny cat image.
      9. Navigate back to the User tour setting page.
      10. Click on the Duplicate link of the First tour.
      11. Verify that the system will duplicate the tour without any errors.
      12. Verify that you will see the funny cat image.
      13. Navigate back to the User tour setting page.
      14. Delete the First tour.
      15. Click View link of the First tour (Copy).
      16. Verify that you will still see the funny cat image.

       The new Import method still support the old exported file

      1. Navigate back to the User tour setting page.
      2. Click on Import tour.
      3. Drag/Select the attached json file and press Save changes.
      4. Verify that the system will import the tour without any errors.
      5. Verify that you will see the Editing Quiz user tour.
      Show
      Initial setup Create a new user tour with below detail: Name: First tour. Description: My first tour. Apply to URL match: /my/% Tour is enabled: Checked. Export and import Open the User tour setting page. Click on the View link of the My first tour. Click on the New step link. Set the Title to: Title 1 Upload the funny-cat.jpg image to the Atto editor. Press Save changes. Verify that you see the funny cat image. Navigate back to the User tour setting page. Click on the Export tour link of the First tour. Verify that the browser will download a json file. Click on the Delete tour link of the First tour to delete the tour. Click on Import tour. Drag/Select the downloaded json file and press Save changes. Verify that the system will import the tour without any errors. Verify that you will see the funny cat image. Tour duplicate Create the tour again (Follow the Initial setup steps). Open the User tour setting page. Click on the View link of the My first tour. Click on the New step link. Set the Title to: Title 1 Upload the funny-cat.jpg image to the Atto editor. Press Save changes. Verify that you see the funny cat image. Navigate back to the User tour setting page. Click on the Duplicate link of the First tour. Verify that the system will duplicate the tour without any errors. Verify that you will see the funny cat image. Navigate back to the User tour setting page. Delete the First tour. Click View link of the First tour (Copy). Verify that you will still see the funny cat image.  The new Import method still support the old exported file Navigate back to the User tour setting page. Click on Import tour. Drag/Select the attached json file and press Save changes. Verify that the system will import the tour without any errors. Verify that you will see the Editing Quiz user tour.
    • 1
    • HQ Team International CIH2-212, HQ Team International CIH2-213, HQ Team International CIH2-215, HQ Team International CIH2-216

    Description

      After MDL-61674 has landed, we can use the Atto editor for the content of the step.

      But the exported file does not contain the attach images.

      It just contains @@PLUGINFILE@@, so we will lose the images when importing the tour.

      The code should convert the image to base64 (like the question export file) during the export process and convert it back to store_file during the import process.

      Attachments

        1. funny-cat.jpg
          funny-cat.jpg
          399 kB
        2. tour_export_quiz_edit.json
          1 kB
        3. MDL-73210_new import method.webm
          886 kB
        4. MDL-73210_export import.webm
          2.75 MB
        5. MDL-73210_duplicate.webm
          3.41 MB

        Issue Links

          Activity

            People

              huongn@moodle.com Huong Nguyen
              huongn@moodle.com Huong Nguyen
              Shamim Rezaie Shamim Rezaie
              Victor Déniz Falcón Victor Déniz Falcón
              Angelia Dela Cruz Angelia Dela Cruz
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days, 7 hours, 15 minutes
                  4d 7h 15m