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

Wrong store classes used in report_log

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7
    • 2.7
    • Logging, Reports
    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • wip-mdl-45073
    • Hide
      1. As admin enable standard logs.
      2. Log in as student in course submit an assignment, view book, forum etc. to create logs.
      3. Log in as teacher and go to participants page.
      4. Select student and view profile.
      5. Click on "Profile settings for Student -> Activity reports -> All logs"
      6. make sure you see graph and logs.
      7. Change log store and make sure log and graphs are visible.
      8. Disable "Standard log store" and go back to participation report, and make sure log and graph is visible.
      9. Disable "Legacy log store" and enable "Standard log store" and go back to participation report, and make sure log and graph is visible.
      10. Disable "Legacy and standard" log stores and make sure no error/graph/report appear and you see "No log reader enabled"

      Run behat tests for tag @report_log

      Show
      As admin enable standard logs. Log in as student in course submit an assignment, view book, forum etc. to create logs. Log in as teacher and go to participants page. Select student and view profile. Click on "Profile settings for Student -> Activity reports -> All logs" make sure you see graph and logs. Change log store and make sure log and graphs are visible. Disable "Standard log store" and go back to participation report, and make sure log and graph is visible. Disable "Legacy log store" and enable "Standard log store" and go back to participation report, and make sure log and graph is visible. Disable "Legacy and standard" log stores and make sure no error/graph/report appear and you see "No log reader enabled" Run behat tests for tag @report_log

      Report log is using wrong log store check in report/log/graph.php.

      Following check is not valid:

      // If reader is not a sql_reader and not legacy store then return.
          if (!($reader instanceof \core\log\sql_internal_reader) && !($reader instanceof logstore_legacy\log\store)) {
              return array();
          }
      

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            Marina Glancy Marina Glancy
            Dan Poltawski Dan Poltawski
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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