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

Update mod_quiz for new question bank

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      The implementation mainly reflects the changes in the code level without having any changes to the UI. There are some basic tests can be done to make sure that mod_quiz is using the plugins rather than pointing back to the old api.

      Setup:

      • Login to your Moodle as a site administrator.
      • Create a new course.
      • Create a quiz activity in that course.
      • Create some questions in any question bank.

       

      Test scenario:

      • Navigate to the quiz
      • Select "Edit quiz" from options
      • Confirm:
        • That the custom view is not broken and showing an empty page without any questions.
      • Add a new question from the question bank.
      • Confirm:
        • That the addition is working perfectly and the question list from the banks are showing properly.
      • Edit that question.
      • Confirm:
        • That the question edit page redirects to 'question/bank/editquestion/question.php'
        • That the editing is working fine from the plugin
      • Save changes and return back to the custom view.
      • Click the preview icon.
      • Confirm:
        • That the preview pop up url is 'question/bank/previewquestion/preview.php'
        • That the comment section is visible for the users to comment on the question.
      • Close the preview.
      • Ensure that you can disable qbank subplugins, but can't unsitall (only contibuted subplugins will be allowed for unistall)

       

      Show
      The implementation mainly reflects the changes in the code level without having any changes to the UI. There are some basic tests can be done to make sure that mod_quiz is using the plugins rather than pointing back to the old api. Setup: Login to your Moodle as a site administrator. Create a new course. Create a quiz activity in that course. Create some questions in any question bank.   Test scenario: Navigate to the quiz Select "Edit quiz" from options Confirm: That the custom view is not broken and showing an empty page without any questions. Add a new question from the question bank. Confirm: That the addition is working perfectly and the question list from the banks are showing properly. Edit that question. Confirm: That the question edit page redirects to 'question/bank/editquestion/question.php' That the editing is working fine from the plugin Save changes and return back to the custom view. Click the preview icon. Confirm: That the preview pop up url is 'question/bank/previewquestion/preview.php' That the comment section is visible for the users to comment on the question. Close the preview. Ensure that you can disable qbank subplugins, but can't unsitall (only contibuted subplugins will be allowed for unistall)  
    • Affected Branches:
      MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
      master_MDL-71679-mod_quiz-52

      Description

      This implementation will introduce changes to the mod_quiz to implement the new qbank api for view. Major changes are introduced in the custom view and also all the legacy points to the old qbank are changed to qbank plugins where needed. It also deprecated and deletes classes and scripts which were kept not to break mod_quiz for the new api implementation.

        Attachments

        1. MDL-71679_add question.png
          MDL-71679_add question.png
          88 kB
        2. MDL-71679_edit question.png
          MDL-71679_edit question.png
          122 kB
        3. MDL-71679_edit quiz.png
          MDL-71679_edit quiz.png
          78 kB
        4. MDL-71679_plugins.png
          MDL-71679_plugins.png
          98 kB
        5. MDL-71679_preview.png
          MDL-71679_preview.png
          74 kB

          Issue Links

            Activity

              People

              Assignee:
              safats Safat Shahin
              Reporter:
              guillermogomez@catalyst-au.net Guillermo Gomez Arias
              Peer reviewer:
              Tim Hunt Tim Hunt
              Integrator:
              Ilya Tregubov Ilya Tregubov
              Tester:
              Angelia Dela Cruz Angelia Dela Cruz
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Dec/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h