Skip to content

Replace 'Start' with 'Resume' course after pre-test completion - #15229

Open
LianaHarris360 wants to merge 2 commits into
learningequality:developfrom
LianaHarris360:when-resume-course
Open

Replace 'Start' with 'Resume' course after pre-test completion#15229
LianaHarris360 wants to merge 2 commits into
learningequality:developfrom
LianaHarris360:when-resume-course

Conversation

@LianaHarris360

Copy link
Copy Markdown
Member

Summary

This pull requests updates the action button label that opens a course for a learner, based on if the learner has completed the first pre-test.

Previously, if a learner had completed the 1st unit’s pre-test, the label for the open course button was “Start Course”, which was incorrect because the course had technically already been started.

Now, if the course’s first pre-test has been completed, the button label is “Resume Course”.

Because a test is closed by a coach, an active pre-test in the first unit could mean it hadn’t been taken by the learner yet, or was submitted and waiting to be closed by the coach, but the resume payload did not differentiate between the two.

get_resume_data has been updated to include “submitted” on active_test, using _test_submitted(), which checks the learner's ContentSummaryLog (progress >= 1) for the test's synthetic content id, the same id the progress-tracking API logs attempts against.

References

Fixes #15193

Reviewer guidance

  1. Assign a course to a learner and complete the first pre-test
  2. Go to the course home page
ResumeAfterPre-TestCompletion.mov

AI usage

I used Claude Code to update the backend & frontend tests, and to review the code changes.

@LianaHarris360 LianaHarris360 added this to the Kolibri 0.20 milestone Aug 26, 2026
@LianaHarris360 LianaHarris360 added bug Behavior is wrong or broken P0 - critical Priority: Release blocker or regression APP: Learn Re: Learn App (content, quizzes, lessons, etc.) labels Aug 26, 2026
@github-actions github-actions Bot added DEV: backend Python, databases, networking, filesystem... DEV: frontend SIZE: medium labels Aug 26, 2026
@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@AlexVelezLl AlexVelezLl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good, just a question of whether we should track the submission or the start of the test.

Comment thread kolibri/core/courses/models.py Outdated

@bjester bjester left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good to me. @AlexVelezLl's suggestion was good too. I think this is ready for QA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

APP: Learn Re: Learn App (content, quizzes, lessons, etc.) bug Behavior is wrong or broken DEV: backend Python, databases, networking, filesystem... DEV: frontend P0 - critical Priority: Release blocker or regression SIZE: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.20.0-alpha1 - The label of the 'Start course' button remains the same after pre-test completion

3 participants