Skip to content

Preserve recorded progress completion dates - #8459

Open
donnapep wants to merge 4 commits into
trunkfrom
fix/preserve-recorded-progress-completion-dates
Open

donnapep wants to merge 4 commits into
trunkfrom
fix/preserve-recorded-progress-completion-dates

Conversation

@donnapep

Copy link
Copy Markdown
Member

Based on #8456.

Proposed Changes

Saving completed course, lesson, or quiz progress could replace its completion date with the time of the save. Recalculating a completed course could also reset its completion date. Sensei now writes the recorded completion timestamp when saving progress to WordPress comments and assigns a new timestamp when a course transitions to complete.

Testing Instructions

  1. On a test site, complete a course with a graded quiz in Learning Mode. Record the completion timestamps for the course, lesson, and quiz.
  2. With synchronization enabled and comments selected for reads, load and resave the completed progress through each repository. Verify the original timestamps remain in both stores. Repeat with HPPS selected for reads.
  3. Recalculate the completed course with Sensei_Utils::user_complete_course(). Verify its status is still complete and its recorded completion timestamp is unchanged.
  4. Complete the course as a new student. Verify the completion date reflects when that student finished.

@donnapep donnapep added this to the 4.27.1 milestone Nov 17, 2026
@donnapep donnapep self-assigned this Nov 17, 2026
Retain completion-date coverage in the owning repository tests and fix the reported Psalm errors.
@donnapep
donnapep force-pushed the fix/preserve-unknown-progress-start-dates branch from 2c7f5c7 to b809d98 Compare November 17, 2026 14:36
@donnapep
donnapep force-pushed the fix/preserve-unknown-progress-start-dates branch from b809d98 to 2c89249 Compare November 17, 2026 14:41
Base automatically changed from fix/preserve-unknown-progress-start-dates to trunk November 17, 2026 14:47
@albarin albarin modified the milestones: 4.28.0, 4.29.0 Nov 23, 2026

This branch has not been deployed

No deployments
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.

2 participants