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

Add qbank_deletequestion to core

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Test scenario 1:

      • Login into the Moodle site as an administrator
      • Navigate to: Site administration > Plugins > Plugins overview
      • Confirm:
        • That the “Delete question bank feature” plugin appears under the "Question banks plugins" section

      Test scenario 2:

      • Navigate to: Site administration > Plugins > Question bank plugins > Manage question bank plugins
      • Confirm:
        • That the Manage question banks page appears
        • That the plugin "Delete question bank feature" exists.

      Test scenario 3:

      • Create a Course
      • Navigate to the created course: Actions menu (Gear icon) > Question banks
      • Create a new question using any question type.
      • Confirm:
        • That the Delete action is visible.

      Test scenario 4:

      • Navigate to: Site administration > Plugins > Question bank plugins > Manage question bank plugins
      • Disable the plugin by clicking the eye icon.
      • Navigate to the created course: Actions menu (Gear icon) > Question banks
      • Confirm:
        • That the Delete action is not visible.

      Test scenario 5:

      • Navigate to the created course: Actions menu (Gear icon) > Question banks
      • Find the created question.
      • Click the Cog to see the list of actions.
      • Select Delete.
      • Confirm:
        • That the URL for delete goes to the plugin (eg. question/bank/deletequestion)
        • That the page asks for confirmation of deletion of the question.
      • Select Delete to delete the question.
      • Confirm:
        • That the question is deleted from the question bank.

      Test scenario 6:

      • Navigate to the created course: Actions menu (Gear icon) > Question banks
      • Create a new question.
      • Navigate back to the created course.
      • Create a new quiz activity.
      • Add that question to the quiz.
      • Navigate to the created course: Actions menu (Gear icon) > Question banks
      • Find the created question.
      • Click the Cog to see the list of actions.
      • Select Delete.
      • Confirm:
        • That the URL for delete goes to the plugin (eg. question/bank/deletequestion)
        • That the page asks for confirmation of deletion of the question.
      • Select Delete to delete the question.
      • Confirm:
        • That the question is not deleted from the question bank and just hidden as its in use.
      Show
      Test scenario 1: Login into the Moodle site as an administrator Navigate to: Site administration > Plugins > Plugins overview Confirm: That the “Delete question bank feature” plugin appears under the "Question banks plugins" section Test scenario 2: Navigate to: Site administration > Plugins > Question bank plugins > Manage question bank plugins Confirm: That the Manage question banks page appears That the plugin "Delete question bank feature" exists. Test scenario 3: Create a Course Navigate to the created course: Actions menu (Gear icon) > Question banks Create a new question using any question type. Confirm: That the Delete action is visible. Test scenario 4: Navigate to: Site administration > Plugins > Question bank plugins > Manage question bank plugins Disable the plugin by clicking the eye icon. Navigate to the created course: Actions menu (Gear icon) > Question banks Confirm : That the Delete action is not visible. Test scenario 5: Navigate to the created course: Actions menu (Gear icon) > Question banks Find the created question. Click the Cog to see the list of actions. Select Delete. Confirm: That the URL for delete goes to the plugin (eg. question/bank/deletequestion) That the page asks for confirmation of deletion of the question. Select Delete to delete the question. Confirm: That the question is deleted from the question bank. Test scenario 6: Navigate to the created course: Actions menu (Gear icon) > Question banks Create a new question. Navigate back to the created course. Create a new quiz activity. Add that question to the quiz. Navigate to the created course: Actions menu (Gear icon) > Question banks Find the created question. Click the Cog to see the list of actions. Select Delete. Confirm: That the URL for delete goes to the plugin (eg. question/bank/deletequestion) That the page asks for confirmation of deletion of the question. Select Delete to delete the question. Confirm: That the question is not deleted from the question bank and just hidden as its in use.
    • Affected Branches:
      MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
      master_MDL-71615-deletequestion

      Description

      This implementation will introduce a qbank plugin
      "deletequestion" which will implement the delete question
      action in the question bank view by replacing the core
      class. Having this plugin will give users the
      flexibility of enabling or disabling this action.

        Attachments

        1. image-2021-08-10-11-58-58-117.png
          image-2021-08-10-11-58-58-117.png
          74 kB
        2. delete.png
          delete.png
          60 kB
        3. MDL-71615_6B.png
          MDL-71615_6B.png
          34 kB
        4. MDL-71615_1.png
          MDL-71615_1.png
          46 kB
        5. MDL-71615_2.png
          MDL-71615_2.png
          50 kB
        6. MDL-71615_3.png
          MDL-71615_3.png
          97 kB
        7. MDL-71615_4.png
          MDL-71615_4.png
          88 kB
        8. MDL-71615_5A.png
          MDL-71615_5A.png
          50 kB
        9. MDL-71615_5B.png
          MDL-71615_5B.png
          56 kB
        10. MDL-71615_6A.png
          MDL-71615_6A.png
          67 kB

          Issue Links

            Activity

              People

              Assignee:
              safats Safat Shahin
              Reporter:
              mattp@catalyst-au.net Matt Porritt
              Peer reviewer:
              Tim Hunt Tim Hunt
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Mihail Geshoski Mihail Geshoski
              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 - 1 hour, 55 minutes
                  1h 55m