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

Remove remaining uses of content_viewed, and deprecate it

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.7
    • 2.6.1
    • Events API
    • MOODLE_26_STABLE
    • MOODLE_27_STABLE
    • wip-mdl-44017
    • Hide

      Prerequisite

      1. You should have moodle site with some existing stats and logs (Use attached script to generate them ... Originally created by Fred)
      2. Log in as admin
      3. Open live logs (Opens in separate window) Site administration -> Reports -> Live logs

      Test Notes Log

      1. Go to course notes (Course -> Participants -> Notes)
      2. Make sure you view "notes view" log
      3. Run phpunit notes/tests/events_test.php

      Test Book log

      1. Go to course book activity
      2. Make sure you view "book view chapter" log
      3. Run phpunit mod/book/tests/events_test.php

      Test Choice log

      1. Go to course choice activity
      2. Make sure you view "choice view" log
      3. Run phpunit mod/choice/tests/events_test.php
      • Test chat session log*
      1. Go to chat and create few entries
      2. Click on "View past chat sessions"
      3. Make sure you see "chat report* log
      4. Run phpunit mod/chat/tests/events_test.php

      Test Log report

      1. Go to report log (Course administration -> Reports -> Logs)
      2. Make sure you see "course report log" log
      3. Go to user log report (My profile settings -> Activity reports -> Activity reports)
      4. Make sure you see "course report log" log
      5. Run phpunit report/log/tests/events_test.php

      Test Live log report

      1. Go to report log (Course administration -> Reports -> Live Logs)
      2. Make sure you see "course report live" log
      3. Run phpunit report/loglive/tests/events_test.php

      Test Stats report

      1. Enable statistics
      2. Go to Course administration -> Reports -> Statistics
      3. Make sure you see "course report stats" log
      4. Go to My profile settings -> Activity reports -> Statistics
      5. Make sure you see "course report stats" log
      6. Run phpunit report/stats/tests/events_test.php
      Show
      Prerequisite You should have moodle site with some existing stats and logs (Use attached script to generate them ... Originally created by Fred) Log in as admin Open live logs (Opens in separate window) Site administration -> Reports -> Live logs Test Notes Log Go to course notes (Course -> Participants -> Notes) Make sure you view "notes view" log Run phpunit notes/tests/events_test.php Test Book log Go to course book activity Make sure you view "book view chapter" log Run phpunit mod/book/tests/events_test.php Test Choice log Go to course choice activity Make sure you view "choice view" log Run phpunit mod/choice/tests/events_test.php Test chat session log* Go to chat and create few entries Click on "View past chat sessions" Make sure you see "chat report* log Run phpunit mod/chat/tests/events_test.php Test Log report Go to report log (Course administration -> Reports -> Logs) Make sure you see "course report log" log Go to user log report (My profile settings -> Activity reports -> Activity reports) Make sure you see "course report log" log Run phpunit report/log/tests/events_test.php Test Live log report Go to report log (Course administration -> Reports -> Live Logs) Make sure you see "course report live" log Run phpunit report/loglive/tests/events_test.php Test Stats report Enable statistics Go to Course administration -> Reports -> Statistics Make sure you see "course report stats" log Go to My profile settings -> Activity reports -> Statistics Make sure you see "course report stats" log Run phpunit report/stats/tests/events_test.php
    • 20
    • BACKEND Sprint 11

      We still have uses of content_viewed in core. It was decided to remove this from core because:-

      1. There is no educational value in this event.
      2. It doesn't contain enough information of what actually happened.
      3. If some of the viewed events can be grouped together, they should have their own abstract parent. ex- course_module_viewed
      4. we must not store localised strings in events
      5. we should not store urls in other array - we have get_url() instead !!!

            rajeshtaneja Rajesh Taneja
            ankit_frenz Ankit Agarwal
            Petr Skoda Petr Skoda
            Dan Poltawski Dan Poltawski
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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