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

Implement qbank plugin enabled/disabled events

    XMLWordPrintable

Details

    • MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • MDL-78823_master
    • Hide
      1. Log in as admin
      2. Go to Site Administration > Plugins > Question bank plugins > Manage question bank plugins
      3. Click the "Disable" icon for "Bulk Move questions"
        • Verify that the plugin is disabled without any errors
      4. Click the "Enable" icon for "Bulk Move questions"
        • Verify that the plugin is enabled without any errors
      5. Go to Site Administration > Reports > Logs
      6. Get the list of logs for today
        • You should see an event with the name "Question bank plugin disabled" and description "User X disabled question bank plugin qbank_bulkmove" where X is your user ID.
        • You should see an event with the name "Question bank plugin enabled" and description "User X enabled question bank plugin qbank_bulkmove" where X is your user ID.

      Also covered by automated tests in qbank_columnsortorder.

      Show
      Log in as admin Go to Site Administration > Plugins > Question bank plugins > Manage question bank plugins Click the "Disable" icon for "Bulk Move questions" Verify that the plugin is disabled without any errors Click the "Enable" icon for "Bulk Move questions" Verify that the plugin is enabled without any errors Go to Site Administration > Reports > Logs Get the list of logs for today You should see an event with the name "Question bank plugin disabled" and description "User X disabled question bank plugin qbank_bulkmove" where X is your user ID. You should see an event with the name "Question bank plugin enabled" and description "User X enabled question bank plugin qbank_bulkmove" where X is your user ID. Also covered by automated tests in qbank_columnsortorder.

    Description

      Currently, admin/qbankplugins.php calls qbank_columnsortorder\column_manager directly to enable and disable columns as qbank plugins are enabled and disabled.

      Rather than calling plugin code directly, we should trigger an event when a qbank plugin is enabled or disabled, so any plugin an observe these events and perform any necessary actions.

      Attachments

        Issue Links

          Activity

            People

              marxjohnson Mark Johnson
              marxjohnson Mark Johnson
              Marcus Green Marcus Green
              Mathew May Mathew May
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 24 minutes
                  4h 24m

                  Clockify

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