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

Add question versions

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • master_MDL-71696-versioning-integration
    • Hide

      A. Fresh installation (Moodle 4.0)

      Setup

      1. Create a fresh install of Moodle with this patch.
      2. Confirm that installation completes successfully.
      3. Log in as an admin
      4. Set up a course and access to the question bank
      5. Add a quiz with at least 3-4 questions, please use different types of questions to get a better feeling of the patch.
      6. Create a new user
      7. Enrol that user as a student in that course

      Testing scenario A.1. Version of questions

      1. Edit the questions created during setup, to create some versions for those questions
      2. Save changes and go to the edit page again
      3. Confirm:
        1. That you can see Version 2 instead of version 1
        2. Every time a question is edited, a new version is created

      Testing scenario A.2. Quiz considers the version of questions

      1. Create a new question category
      2. Add some questions to it
      3. Setup a quiz
      4. Add those questions to the quiz
      5. Use the created category as a random question
      6. Change the versions for the questions in the regular questions in quiz
      7. Login as student
      8. Attempt the quiz
      9. Confirm
        1. Quiz uses the version selected in an attempt
        2. Random question picks up the questions from the selected question category

      Testing scenario A3. Question data in restore (same site)

      1. Backup the course and save the .mbz file on the local device
      2. Restore the previous backup file in the same site as a new course
      3. Confirm:
        1. The restored questions are available and working as expected
        2. The restored quiz has all the questions
        3. The restored quiz has all the attempts
        4. All the files are available in the restores questions
        5. Preview of the questions are working as expected

      Testing scenario A.4. Question data in restore (different site)

      1. Setup a new Moodle 4.0 site
      2. Restore the previous backup course (created in scenario A3) on that site
      3. Confirm:
        1. The restored questions are available and working as expected
        2. The restored quiz has all the questions
        3. The restored quiz has all the attempts
        4. All the files are available in the restores questions
        5. Preview of the questions are working as expected

       

      B. Migration from Moodle 3.11

      Setup

      1. Setup a Moodle 3.11 site
      2. Log in as an admin
      3. Set up a course and access to the question bank
      4. Add a quiz with at least 3-4 questions, please use different types of questions to get a better feeling of the patch.
      5. Create a quiz
      6. Add the created questions to the quiz
      7. Create a new user
      8. Enrol that user as a student in that course
      9. Attempt the quiz
      10. Backup the course (include user data)
      11. Download and save the file in the local device

      Testing scenario B.1. Migration of questions

      1. Change the codebase to 4.0 with this patch applied
      2. Upgrade the site.
      3. Go to the quiz and check the questions and any attempts made for those questions.
      4. Confirm:
        1. That all the questions are available in the question bank
        2. All the question data including the files added to the questions are available
        3. The preview of the questions is working as expected
        4. All the questions in the quiz are available and preview is working from quiz
        5. The previous attempts are available and they can be viewed as expected
      5. Log out and login as the student
      6. Navigate to the course
      7. Re-attempt the quiz
      8. Confirm:
        1. The quiz is working as expected without any issue or error
      9. Log out and login as an admin
      10. Create some versions of the questions
      11. Change to those versions from the quiz
      12. Logout and login as a student
      13. Start a new attempt of the quiz again (if the previous attempt wasn't finished, you should finish it before starting a new attempt; otherwise, the new question versions won't be updated)
      14. Confirm:
        1. That the newly selected versions in the quiz are considered in this attempt
        2. All the questions are working as expected without any issue
        3. Any image or files are available to access

      Testing scenario B.2. Legacy question data migrates in restore

      1. Standup a fresh Moodle 4.0 site
      2. Restore the Moodle 3.11 course backup on that site
      3. Confirm:
        1. The restored questions are available and working as expected
        2. The restored quiz has all the questions
        3. The restored quiz has all the attempts
        4. All the files are available in the restores questions
        5. Preview of the questions are working as expected
      Show
      A. Fresh installation (Moodle 4.0) Setup Create a fresh install of Moodle with this patch. Confirm that installation completes successfully. Log in as an admin Set up a course and access to the question bank Add a quiz with at least 3-4 questions, please use different types of questions to get a better feeling of the patch. Create a new user Enrol that user as a student in that course Testing scenario A.1. Version of questions Edit the questions created during setup, to create some versions for those questions Save changes and go to the edit page again Confirm : That you can see Version 2 instead of version 1 Every time a question is edited, a new version is created Testing scenario A.2. Quiz considers the version of questions Create a new question category Add some questions to it Setup a quiz Add those questions to the quiz Use the created category as a random question Change the versions for the questions in the regular questions in quiz Login as student Attempt the quiz Confirm Quiz uses the version selected in an attempt Random question picks up the questions from the selected question category Testing scenario A3. Question data in restore (same site) Backup the course and save the .mbz file on the local device Restore the previous backup file in the same site as a new course Confirm : The restored questions are available and working as expected The restored quiz has all the questions The restored quiz has all the attempts All the files are available in the restores questions Preview of the questions are working as expected Testing scenario A.4. Question data in restore (different site) Setup a new Moodle 4.0 site Restore the previous backup course (created in scenario A3) on that site Confirm : The restored questions are available and working as expected The restored quiz has all the questions The restored quiz has all the attempts All the files are available in the restores questions Preview of the questions are working as expected   B. Migration from Moodle 3.11 Setup Setup a Moodle 3.11 site Log in as an admin Set up a course and access to the question bank Add a quiz with at least 3-4 questions, please use different types of questions to get a better feeling of the patch. Create a quiz Add the created questions to the quiz Create a new user Enrol that user as a student in that course Attempt the quiz Backup the course (include user data) Download and save the file in the local device Testing scenario B.1. Migration of questions Change the codebase to 4.0 with this patch applied Upgrade the site. Go to the quiz and check the questions and any attempts made for those questions. Confirm : That all the questions are available in the question bank All the question data including the files added to the questions are available The preview of the questions is working as expected All the questions in the quiz are available and preview is working from quiz The previous attempts are available and they can be viewed as expected Log out and login as the student Navigate to the course Re-attempt the quiz Confirm : The quiz is working as expected without any issue or error Log out and login as an admin Create some versions of the questions Change to those versions from the quiz Logout and login as a student Start a new attempt of the quiz again (if the previous attempt wasn't finished, you should finish it before starting a new attempt; otherwise, the new question versions won't be updated) Confirm : That the newly selected versions in the quiz are considered in this attempt All the questions are working as expected without any issue Any image or files are available to access Testing scenario B.2. Legacy question data migrates in restore Standup a fresh Moodle 4.0 site Restore the Moodle 3.11 course backup on that site Confirm : The restored questions are available and working as expected The restored quiz has all the questions The restored quiz has all the attempts All the files are available in the restores questions Preview of the questions are working as expected

      Allow questions to have multiple versions.

      This issue provides the core API's and database schema changes for questions to have multiple versions.

      The ability to add/edit question versions via mod_quiz or the upcoming mod_qbank will not be implemented in this tracker. They will have their own trackers

       

      More information about this issue specification: https://moodle.org/mod/forum/discuss.php?d=417599

        1. authorstext.png
          51 kB
          Sara Arjona (@sarjona)
        2. backup-moodle2-course-90-course_with_question-20220131-1556-an.mbz
          7 kB
          Sara Arjona (@sarjona)
        3. changesinimporquestions.png
          81 kB
          Sara Arjona (@sarjona)
        4. cogmenupreview.png
          57 kB
          Sara Arjona (@sarjona)
        5. duplicatequestion.png
          47 kB
          Sara Arjona (@sarjona)
        6. managepoliciesstatus.png
          46 kB
          Sara Arjona (@sarjona)
        7. newcommentstyle.png
          22 kB
          Sara Arjona (@sarjona)
        8. qbank_migration.png
          72 kB
          Sara Arjona (@sarjona)
        9. qbank_style.png
          49 kB
          Sara Arjona (@sarjona)
        10. qbanktemplate.png
          81 kB
          Sara Arjona (@sarjona)
        11. questionversionmigration.gif
          50 kB
          Sara Arjona (@sarjona)
        12. restorequestion.png
          87 kB
          Sara Arjona (@sarjona)
        13. Set up_Screenshot.png
          66 kB
          Gladys Basiana
        14. Testing scenario A.1._Screenshot.PNG
          18 kB
          Gladys Basiana
        15. Testing scenario A.2. _Screenshot.png
          117 kB
          Gladys Basiana
        16. Testing scenario A.4._Screenshot.png
          183 kB
          Gladys Basiana
        17. Testing scenario A3. _Screenshot.png
          148 kB
          Gladys Basiana
        18. Testing scenario B.1. Migration of questions_Step 14_Evidence.avi
          2.46 MB
          Gladys Basiana
        19. Testing scenario B.1. Migration of questions_Step 4_Screenshot.png
          195 kB
          Gladys Basiana
        20. Testing scenario B.1. Migration of questions_Step 8_Evidence.avi
          4.18 MB
          Gladys Basiana
        21. Testing scenario B.2. Legacy question data migrates in restore_Evidence.avi
          9.57 MB
          Gladys Basiana
        22. unrelatedchangesupgrade.png
          296 kB
          Sara Arjona (@sarjona)

            safatshahin Safat Shahin
            mattp@catalyst-au.net Matt Porritt
            Tim Hunt Tim Hunt
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 7 hours, 25 minutes
                1w 7h 25m

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