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

Remove Quiz results block from core

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-72616-master
    • Hide

      Setup (before patch)

      The following steps should be run on a Moodle site without the patch.

      1. Login as admin.
      2. Create two courses C1 and C2.
      3. Add a quiz to each course.
      4. Go to Site administration / Plugins / Blocks / Manage blocks
      5. Go to Quiz results (disabled) and enabled clicking on the eye icon to show the block.
      6. Go to course C1 and Turn editing on.
      7. Go to the quiz and Add a block and add these blocks:
        1. Quiz results (disabled)
        2. Activity results
      8. Go to Configuring a Quiz results (disabled) block and set the weight to 5.
      9. Go to course C2 and Turn editing on.
      10. Go to the quiz and Add a Quiz results (disabled) block.
      11. Go to Configuring a Quiz results (disabled) block and set the weight to 6. 
      12. Check the following SQL query return 2 rows. Annotate the ids

        SELECT * FROM `mdl_block_instances` WHERE blockname = 'quiz_results' 
        

      13. Check the following SQL query return 2 rows(you'll need to replace the ids that you've annotated previously)

        SELECT * FROM `mdl_block_positions` WHERE blockinstanceid in (ID1,ID2) 
        

      TEST (after patch)

      1. Apply the patch and run the upgrade process.
      2. Verify it ends without error.
      3. Login as admin.
      4. Go to "Site administration > Plugins > Plugins overview".
      5. Verify there is no longer a mention of 'Quiz results' (block_quiz_results).
      6. Go to courses C1 and C2 and turn editing on.
      7. Go to the quizzes and confirm you don't see   Quiz results (disabled) block
      8. Go to Site administration / Plugins / Blocks / Manage blocks
      9. Verify there is no longer a mention of 'Quiz results' (block_quiz_results).
      10. Check the following SQL query is empty:

        SELECT * FROM `mdl_block_instances` WHERE blockname = 'quiz_results' 
        

      11. Check the following SQL is empty (you'll need to replace the ids that you've annotated previously in the setup)

        SELECT * FROM `mdl_block_positions` WHERE blockinstanceid in (ID1,ID2) 

      Show
      Setup (before patch) The following steps should be run on a Moodle site without the patch. Login as admin. Create two courses C1 and C2. Add a quiz to each course. Go to Site administration / Plugins / Blocks /  Manage blocks Go to Quiz results (disabled) and enabled clicking on the eye icon to show the block. Go to course C1 and Turn editing on. Go to the quiz and Add a block and add these blocks: Quiz results (disabled) Activity results Go to Configuring a Quiz results (disabled) block and set the weight to 5. Go to course C2 and Turn editing on. Go to the quiz and Add a Quiz results (disabled) block. Go to Configuring a Quiz results (disabled) block and set the weight to 6.  Check  the following SQL query return 2 rows. Annotate the ids SELECT * FROM `mdl_block_instances` WHERE blockname = 'quiz_results' Check  the following SQL query return 2 rows(you'll need to replace the ids that you've annotated previously) SELECT * FROM `mdl_block_positions` WHERE blockinstanceid in (ID1,ID2) TEST (after patch) Apply the patch and run the upgrade process. Verify it ends without error. Login as admin. Go to "Site administration > Plugins > Plugins overview". Verify  there is no longer a mention of 'Quiz results' (block_quiz_results). Go to courses C1 and C2 and turn editing on. Go to the quizzes and confirm you don't see   Quiz results (disabled) block Go to Site administration / Plugins / Blocks /  Manage blocks Verify  there is no longer a mention of 'Quiz results' (block_quiz_results). Check  the following SQL query is empty: SELECT * FROM `mdl_block_instances` WHERE blockname = 'quiz_results' Check  the following SQL is empty (you'll need to replace the ids that you've annotated previously in the setup) SELECT * FROM `mdl_block_positions` WHERE blockinstanceid in (ID1,ID2)
    • Moppies Kanban

    Description

      The Quiz results block is hidden by default since Moodle 2.9. It is recommended to use the Activity results block instead, which works with any type of activity (not just quizzes).

      This issue is to remove block_quiz_results as a standard plugin and add it to the Moodle plugins directory.
       

      Attachments

        1. block_quiz_results_moodle28.png
          block_quiz_results_moodle28.png
          14 kB
        2. block_quiz_results_moodle29.png
          block_quiz_results_moodle29.png
          6 kB
        3. MDL-72616_after_C1_Step 7.png
          MDL-72616_after_C1_Step 7.png
          80 kB
        4. MDL-72616_after_C2_Step 7.png
          MDL-72616_after_C2_Step 7.png
          67 kB
        5. MDL-72616_after_Step 10.png
          MDL-72616_after_Step 10.png
          56 kB
        6. MDL-72616_after_Step 11.png
          MDL-72616_after_Step 11.png
          56 kB
        7. MDL-72616_after_Step 2.png
          MDL-72616_after_Step 2.png
          81 kB
        8. MDL-72616_after_Step 5.png
          MDL-72616_after_Step 5.png
          124 kB
        9. MDL-72616_after_Step 9.png
          MDL-72616_after_Step 9.png
          134 kB
        10. MDL-72616_before_Step 12.png
          MDL-72616_before_Step 12.png
          82 kB
        11. MDL-72616_before_Step 13.png
          MDL-72616_before_Step 13.png
          67 kB

        Activity

          People

            cescobedo Carlos Escobedo
            sarjona Sara Arjona (@sarjona)
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Angelia Dela Cruz Angelia Dela Cruz
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 2 hours, 15 minutes
                2h 15m