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

Event monitor: Implement the event observer

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: BACKEND
    • Component/s: Reports
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      1. Set up your cron to run every minute. (Tests won't work without this - on ubuntu you can use crontab -e)
      2. In your message settings set all instances of "Event monitor" to "popup notification"

      Test 1

      1. Run the unit tests.

      Test 2

      1. Create a rule at site level for category created event with default frequency of 1
      2. Subscribe to it as admin.
      3. Create a course category.
      4. Wait for a few minutes and make sure you get a notification about it when you go to messages.

      Test 3

      1. In a course that has a book module, create a rule with default frequency to monitor "chapter viewed" event
      2. Subscribe to it for "All modules"
      3. View a chapter
      4. Make sure you get a notification (After few mins)
      5. Delete the subscription
      6. Subscribe to the rule again by selecting specific module name of the book
      7. View a chapter
      8. Make sure you get a notification (After few mins)
      Show
      Setup Set up your cron to run every minute. (Tests won't work without this - on ubuntu you can use crontab -e) In your message settings set all instances of "Event monitor" to "popup notification" Test 1 Run the unit tests. Test 2 Create a rule at site level for category created event with default frequency of 1 Subscribe to it as admin. Create a course category. Wait for a few minutes and make sure you get a notification about it when you go to messages. Test 3 In a course that has a book module, create a rule with default frequency to monitor "chapter viewed" event Subscribe to it for "All modules" View a chapter Make sure you get a notification (After few mins) Delete the subscription Subscribe to the rule again by selecting specific module name of the book View a chapter Make sure you get a notification (After few mins)
    • Affected Branches:
      MOODLE_27_STABLE
    • Epic Link:
    • Pull Master Branch:
      MDL-46132-master
    • Story Points:
      40
    • Sprint:
      BACKEND Sprint 17

      Description

      Implement an event observer that populates tool_monitor_events, as needed

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ankit_frenz Ankit Agarwal
              Reporter:
              ankit_frenz Ankit Agarwal
              Peer reviewer:
              Frédéric Massart Frédéric Massart
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: