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

Filtering within Course Activity Report: Date filter

XMLWordPrintable

    • MOODLE_32_STABLE, MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-57892_filter_outline
    • Hide
      1. Create a fresh Moodle site.
      2. Visit ‘Site administration’ > ‘Development’ > ‘Make test course’.
      3. Create a small course.
      4. Download the attached create_data.php file and put it in your wwwroot.
      5. Run php create_data.php.
      6. As a teacher visit the course
      7. Visit Course admin > Reports > Activity report
      8. With no filters enabled - check the activity views are as expected
      9. Enable the 'from' filter + set a date + click Filter - check the activity views match the activity on or after this date
      10. Cancel the filters
      11. Enable the 'to' filter + set a date + click Filter - check the activity views match the activity before this date
      12. Enable both filters + set dates + click Filter - check only activity views between these dates are included in the report.
      Show
      Create a fresh Moodle site. Visit ‘Site administration’ > ‘Development’ > ‘Make test course’. Create a small course. Download the attached create_data.php file and put it in your wwwroot. Run php create_data.php . As a teacher visit the course Visit Course admin > Reports > Activity report With no filters enabled - check the activity views are as expected Enable the 'from' filter + set a date + click Filter - check the activity views match the activity on or after this date Cancel the filters Enable the 'to' filter + set a date + click Filter - check the activity views match the activity before this date Enable both filters + set dates + click Filter - check only activity views between these dates are included in the report.

      Hi,

      the numbers in the Course Activity Report (report_outline) are calculated from the log entries which are available at the time when the report is requested. Thus, the output is directly coupled to the log lifetime.

      The user is informed about this fact with the line saying "Computed from logs since ..." at the top of the report.

      Unfortunately, a teacher does not have any possibility to define which log entries should be considered when the numbers are calculated.
      For example, we have a Moodle installation with a very long log lifetime and a course on this Moodle installation has run for several months now with several cohorts of students using it. If a teacher looks at the report, he can't really tell if the current cohort is using the course properly or not because he only sees the total numbers for the whole course lifetime.

      I would propose to add a filter widget to the top of the report to control
      a) the start date from when on log entries should be used for computing the numbers
      b) the end date until when log entries should be used for computing the numbers

        1. collapsed-filter-with-buttons.png
          collapsed-filter-with-buttons.png
          32 kB
        2. create_data.php
          2 kB
        3. Step11_Confirmed.PNG
          Step11_Confirmed.PNG
          82 kB
        4. Step12_Confirmed.PNG
          Step12_Confirmed.PNG
          82 kB
        5. Step8_Confirmed.PNG
          Step8_Confirmed.PNG
          88 kB
        6. Step9_Confirmed.PNG
          Step9_Confirmed.PNG
          81 kB

            davosmith Davo Smith
            abias Alexander Bias
            Mark Nelson Mark Nelson
            David Monllaó David Monllaó
            Gladys Basiana Gladys Basiana
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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