Skip to content

fix continue and submit button for modular courses#66155

Merged
alex-m-brown merged 12 commits into
stagingfrom
TEACH-1899/fix-continue-and-submit-buttons-for-modular-courses
May 30, 2025
Merged

fix continue and submit button for modular courses#66155
alex-m-brown merged 12 commits into
stagingfrom
TEACH-1899/fix-continue-and-submit-buttons-for-modular-courses

Conversation

@alex-m-brown

@alex-m-brown alex-m-brown commented May 28, 2025

Copy link
Copy Markdown
Contributor

On some levels in modular courses, the user is redirected to the original unit group instead of the current unit group. This PR fixes that by passing the current unit group through to the milestone API which returns the next level_path

Links

Testing story

Update and add tests to ensure that users are kept in the correct course when a milestone is completed.
Manually verified that the reported bugs are fixed locally:
unit 1, lesson 2, level 4
unit 1, lesson 4, level 4

@alex-m-brown alex-m-brown marked this pull request as ready for review May 30, 2025 13:06
@alex-m-brown alex-m-brown requested review from davidsbailey and daynew and removed request for davidsbailey May 30, 2025 13:06

@davidsbailey davidsbailey 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.

looks good! just one nit

"properties": {
"is_migrated": true
"is_migrated": true,
"version_year": "2017"

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.

probably best to remove the version_year, since this lives on the unit group now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ah yes, thank you for the catch on that

@alex-m-brown alex-m-brown merged commit 5f3d4d5 into staging May 30, 2025
6 checks passed
@alex-m-brown alex-m-brown deleted the TEACH-1899/fix-continue-and-submit-buttons-for-modular-courses branch May 30, 2025 20:29
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