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

Update mod_quiz for new question bank

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • master_MDL-71679-mod_quiz-52
    • 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)  

      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.

        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

            safatshahin Safat Shahin
            guillermogomez@catalyst-au.net Guillermo Gomez Arias
            Tim Hunt Tim Hunt
            Ilya Tregubov Ilya Tregubov
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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