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

Add qbank_editquestion 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 “Edit 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 "Edit 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 Edit action is visible.
        • That the Duplicate action is visible.
        • That the Create a new question 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 Edit action is not visible.
        • That the Duplicate action is not visible.
        • That the Create a new question 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 Edit.
      • Confirm:
        • That the URL for delete goes to the plugin (eg. question/bank/editquestion)
        • That the page shows the question edit form according to the qtype.
      • Select save changes after making some changes.
      • Confirm:
        • That the question is reflecting the changes done in the form.

      Test scenario 6:

      • 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 Duplicate.
      • Confirm:
        • That the URL for delete goes to the plugin (eg. question/bank/editquestion)
        • That the page shows the question edit form according to the qtype.
        • Shows the name of the question with an added "(copy).
      • Select save changes after making some changes.
      • Confirm:
        • That the new question is reflecting the changes done in the form.

      Test scenario 6:

      • Navigate to the created course: Actions menu (Gear icon) > Question banks
      • Find the created question.
      • Click the "Create a new question" button.
      • Select the question type.
      • Click "Add button".
      • Confirm:
        • That the URL for delete goes to the plugin (eg. question/bank/editquestion)
        • That the page shows the question edit form according to the qtype.
      • Select save changes after making some changes.
      • Confirm:
        • That the new question is reflecting the changes done in the form.
      Show
      Test scenario 1: Login into the Moodle site as an administrator Navigate to: Site administration > Plugins > Plugins overview Confirm: That the “Edit 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 "Edit 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 Edit action is visible. That the Duplicate action is visible. That the Create a new question 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 Edit action is not visible. That the Duplicate action is not visible. That the Create a new question 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 Edit. Confirm: That the URL for delete goes to the plugin (eg. question/bank/editquestion) That the page shows the question edit form according to the qtype. Select save changes after making some changes. Confirm: That the question is reflecting the changes done in the form. Test scenario 6: 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 Duplicate. Confirm: That the URL for delete goes to the plugin (eg. question/bank/editquestion) That the page shows the question edit form according to the qtype. Shows the name of the question with an added "(copy). Select save changes after making some changes. Confirm: That the new question is reflecting the changes done in the form. Test scenario 6: Navigate to the created course: Actions menu (Gear icon) > Question banks Find the created question. Click the "Create a new question" button. Select the question type. Click "Add button". Confirm: That the URL for delete goes to the plugin (eg. question/bank/editquestion) That the page shows the question edit form according to the qtype. Select save changes after making some changes. Confirm: That the new question is reflecting the changes done in the form.
    • Affected Branches:
      MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
      master_MDL-71374-editquestion

      Description

      This implementation will introduce a qbank plugin "editquestion"
      which will implement the edit question, add question and copy
      question actions in the question bank view by replacing the
      core classes. Having this plugin will give users the
      flexibility of enabling or disabling these actions.

        Attachments

          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:
              Gladys Basiana Gladys Basiana
              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, 15 minutes
                  1h 15m