-
Notifications
You must be signed in to change notification settings - Fork 119
[MBL-19555][S/T] Inbox - Fix compose message issue of un-selectable active courses when term ends before course end date #3811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…nds before course end date refs: MBL-19555 affects: Student, Teacher builds: Student, Teacher release note: Fixed compose message issue of un-selectable active courses when term ends before course end date
Claude Code ReviewUpdated: 2025-12-14 ✅ Approved Summary: Logic change correctly fixes the course selection issue by prioritizing course |
Release Note:Fixed compose message issue of un-selectable active courses when term ends before course end date Affected Apps: Student, TeacherBuilds: Student, Teacher
|
BuildsCommit: Unit tests (7fbbcd1) |
rh12
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add unit test for this
petkybenedek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA +1
Had to change the term end date in the provided account to reproduce the issue
…-ActiveCourse-AfterTermEnds
Claude Code ReviewUpdated: 2025-12-21 ✅ Approved
|
petkybenedek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA +1
| if let endDate = item.end_at { | ||
| return endDate < Clock.now | ||
| } else { | ||
| return (item.term?.end_at ?? .distantFuture) < Clock.now | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the format below would be more straightforward then the if-else one.
| if let endDate = item.end_at { | |
| return endDate < Clock.now | |
| } else { | |
| return (item.term?.end_at ?? .distantFuture) < Clock.now | |
| } | |
| return (item.end_at ?? item.term?.end_at ?? .distantFuture) < Clock.now |
refs: MBL-19555
affects: Student, Teacher
builds: Student, Teacher
release note: Fixed compose message issue of un-selectable active courses when term ends before course end date
Test Plan
See ticket's description learn about steps to reproduce.
Checklist