-
Notifications
You must be signed in to change notification settings - Fork 119
[MBL-19512][S] OfflineMode - Bypass failures on files and images download during course sync #3810
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
Conversation
refs: MBL-19512 affects: Student builds: Student release note: Fixed course sync failure in certain cases.
Claude Code ReviewUpdated: 2025-12-14 Critical Issue
✅ Approved - PR achieves the stated goal of bypassing sync failures to allow sync to complete. However, consider adding logging for observability when assets fail to download for offline mode. |
Release Note:Fixed course sync failure in certain cases. Affected Apps: StudentBuilds: Student
|
BuildsCommit: Merge branch 'chore/MBL-19602-API-RateLimitExceeded-Retrial-Logic-Revised' into bugfix/MBL-19512-Course-Sync-Issue-CanineBehaviorCollege (459fc2b) |
…ised' into bugfix/MBL-19512-Course-Sync-Issue-CanineBehaviorCollege
Claude Code ReviewCritical Issues
✅ Approved - achieves goal of bypassing sync failures, but consider adding logging for observability of lost assets. |
…ised' into bugfix/MBL-19512-Course-Sync-Issue-CanineBehaviorCollege
| } | ||
| .replaceError(with: nil) | ||
| } | ||
| .compactMap({ $0 }) |
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.
.compactMap { $0 }
For consistency, if there's no specific reason for the parenthesis
| } | ||
| .replaceError(with: nil) | ||
| } | ||
| .compactMap({ $0 }) |
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.
.compactMap { $0 }
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
refs: MBL-19512
affects: Student
builds: Student
release note: Fixed course sync failure in certain cases.
This an alternative approach on fixing the issue of course sync for accounts with limited rate, failures of rate limit exceeded was addressed in previous PR, but this one is to continue the process of sync in case of accidental failure while downloading an image or file referenced in pages.
Test Plan
Use account mentioned in ticket to test course sync and offline mode. On offline mode, the course modules should load correctly and studio video should also be playing.
Checklist