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

Backup / restore of questions should include all tags on all contexts

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.5
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as admin
      2. Go to "Site administration > Courses > Manage courses and categories"
      3. Create a new category named ccat1 (parent category: Top)
      4. Create a new course (course1) in the ccat1 category
      5. Visit the course and go to the course's question bank (Edit cog > More > Question bank > Questions)
      6. Set the category filter to "Default for ccat1"
      7. Create a true/false question in the "Default for ccat1" category
        • Question name: q1
        • Question text: q1
        • Tags: qt1a,qt1b
        • Course: course1 tags: ct1a,ct1b
      8. Visit the course main page, and create a new quiz (quiz1)
      9. Edit the quiz and choose to Add a question > From the questino bank
      10. Add the question q1 to the quiz from the "Default for ccat1" Category.
      11. Navigate back to the course
      12. Click on the edit cog and select backup and make a backup of the course
      13. Create a backup with the default settings
      14. Download the backup for later
      15. Go to "Site administration > Courses > Manage courses", select the "ccat1" category and then delete the course1 course.
      16. Create a new course in the "ccat1" category
      17. Visit the new course you just created and from there, go to the course's question bank.
      18. Set the category filter to "Default for ccat1" and then delete the question q1
      19. Go to "Site administration > Courses > Restore course" and restore the backup file you had created on step 9 as a new course in the ccat1 category.
      20. Visit the new course you just created and go to the course's question bank.
      21. Set the category filter to "Default for ccat1"
      22. Verify that you see a question named q1
      23. Edit q1
        1. Verify that the editing form has the following values:
        • Tags: qt1a,qt1b
        • Course: whatever tags: ct1a,ct1b
      Show
      Log in as admin Go to "Site administration > Courses > Manage courses and categories" Create a new category named ccat1 (parent category: Top) Create a new course ( course1 ) in the ccat1 category Visit the course and go to the course's question bank (Edit cog > More > Question bank > Questions) Set the category filter to "Default for ccat1" Create a true/false question in the "Default for ccat1" category Question name: q1 Question text: q1 Tags: qt1a,qt1b Course: course1 tags: ct1a,ct1b Visit the course main page, and create a new quiz ( quiz1 ) Edit the quiz and choose to Add a question > From the questino bank Add the question q1 to the quiz from the " Default for ccat1 " Category. Navigate back to the course Click on the edit cog and select backup and make a backup of the course Create a backup with the default settings Download the backup for later Go to "Site administration > Courses > Manage courses", select the "ccat1" category and then delete the course1 course. Create a new course in the "ccat1" category Visit the new course you just created and from there, go to the course's question bank. Set the category filter to "Default for ccat1" and then delete the question q1 Go to "Site administration > Courses > Restore course" and restore the backup file you had created on step 9  as a new course in the ccat1 category. Visit the new course you just created and go to the course's question bank. Set the category filter to "Default for ccat1" Verify that you see a question named q1 Edit q1 Verify that the editing form has the following values : Tags: qt1a,qt1b Course: whatever tags: ct1a,ct1b
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-61464-master

      Description

      Make sure that backup and restore of questions includes tags in both the question context and the course context (if they differ).

        Attachments

          Activity

            People

            Assignee:
            rezaie9 Shamim Rezaie
            Reporter:
            ryanwyllie Ryan Wyllie
            Peer reviewer:
            Simey Lameze
            Integrator:
            Andrew Nicols
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/May/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 1 hour
                3d 1h