Skip to content

Read students Last Activity from HPPS tables - #8206

Draft
donnapep wants to merge 1 commit into
hpps-reports-students-avg-gradefrom
hpps-reports-students-last-activity
Draft

Read students Last Activity from HPPS tables#8206
donnapep wants to merge 1 commit into
hpps-reports-students-avg-gradefrom
hpps-reports-students-last-activity

Conversation

@donnapep

@donnapep donnapep commented Aug 25, 2026

Copy link
Copy Markdown
Member

SEN-83: HPPS: Reports Overview aggregates → table-aware

Part of the Reports → Overview HPPS effort. Stacked on hpps-reports-students-avg-grade.

Proposed Changes

  • Students tab, Last Activity column: derived from the HPPS progress tables when enabled — the column value, its sorting, and the date-range filter all read HPPS data.

Testing Instructions

Setup (HPPS enabled):

  • Create a course with lessons.
  • Enrol 2 students and have each complete a lesson on different days (or edit the progress dates so the two Last Activity dates differ).

Verify at Reports → Overview → Students:

  • Each student's Last Activity date matches when they last acted.
  • Sort by Last Activity ascending, then descending; confirm the two students reorder correctly.
  • Set the date-range filter to exclude the older student's activity; confirm only the newer student remains.

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

WordPress Playground Preview

The changes in this pull request can previewed and tested using a WordPress Playground instance.

Open WordPress Playground Preview

Branch the students report's last-activity join on the active progress
storage mode. In tables mode it derives last_activity_date from
sensei_lms_progress, mirroring the quiz-effective-status join used by
Tables_Based_Progress_Aggregation_Service::count_lesson_statuses_with_quiz()
so passed/graded lessons (whose granular status lives on the quiz
progress row) are counted correctly. Comments mode is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@donnapep
donnapep force-pushed the hpps-reports-students-avg-grade branch from cfb4e51 to 0947142 Compare August 25, 2026 15:26
@donnapep
donnapep force-pushed the hpps-reports-students-last-activity branch from 5ed71e8 to 957ffbd Compare August 25, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant