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

Event list report doesn't list events from core subsystems

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.11.2
    • 3.10.8, 3.11.4
    • Events API
    • MOODLE_311_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-72498-310
    • MDL-72498-311
    • Hide

      Viewing events from core subsystems

      1. Navigate to Reports > Events list in site administration
      2. Confirm you see events listed for each of the following components
        • \core_customfield
        • \core_h5p
        • \core_payment
      3. Click on an event for each, confirm it displays information

      Viewing abstract events

      1. Confirm that abstract \core\event\comment_created event is not listed on the report
      2. Click on the "Comment created \assignsubmission_comments\event\comment_created" event
      3. Click "Parent Event \core\event\comment_created" link
      4. Confirm you see information about the abstract class
      Show
      Viewing events from core subsystems Navigate to Reports > Events list in site administration Confirm you see events listed for each of the following components \core_customfield \core_h5p \core_payment Click on an event for each, confirm it displays information Viewing abstract events Confirm that abstract \core\event\comment_created event is not listed on the report Click on the "Comment created \assignsubmission_comments\event\comment_created" event Click "Parent Event \core\event\comment_created" link Confirm you see information about the abstract class

    Description

      When viewing the event list report, it doesn't consider/list any events belonging to core subsystems (core_*, for example for the following:

      • \core_customfield\event\
      • \core_h5p\event
      • \core_payment\event

      Because the relevant class contains a hard-coded assumption that all events belonging to core exist in $CFG->libdir . '/classes/event'

      https://github.com/moodle/moodle/blob/443a980aea0dcd12d4eb3ba69bc0347b43acb665/report/eventlist/classes/list_generator.php#L65

      Discovered while davidmatamoros was creating events for MDL-70795

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Simey Lameze Simey Lameze
              Víctor Déniz Falcón Víctor Déniz Falcón
              Angelia Dela Cruz Angelia Dela Cruz
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Nov/21

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 16 minutes
                  5h 16m