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

Add qbank_deletequestion to core

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • master_MDL-71615-deletequestion
    • 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.

      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.

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

            safatshahin Safat Shahin
            mattp@catalyst-au.net Matt Porritt
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Mihail Geshoski Mihail Geshoski
            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 - 1 hour, 55 minutes
                1h 55m

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