Skip to content

fix: reflect back the changes after completing MCQs without the need … - #25

Closed
choeying-10 wants to merge 1 commit into
wbc-ulmo1-stagefrom
fix/instant-completion-refresh
Closed

fix: reflect back the changes after completing MCQs without the need …#25
choeying-10 wants to merge 1 commit into
wbc-ulmo1-stagefrom
fix/instant-completion-refresh

Conversation

@choeying-10

Copy link
Copy Markdown

Summary

  • Update completions.js so MCQ problem_check (not only publish_completion) calls completionSet() and starts a native refresh.
  • Use flow.last() in CourseInteractor.getCourseStructure when isNeedRefresh is true so refresh waits for the network emission instead of returning cached structure via .first().
  • Serialize CourseContainerViewModel.updateData() with a trailing refresh so rapid back-to-back MCQs are not coalesced onto one stale in-flight fetch.

Why

MCQs never hit publish_completion, so the app often never refreshed after submit. When a refresh did run, the cache-first structure flow plus .first() returned old data (including stale course_progress). Overlapping refreshes could also drop a completion until a later attempt.

…to refresh the page or getting out of course and back in
@choeying-10 choeying-10 self-assigned this Aug 4, 2026
@choeying-10 choeying-10 added the bug Something isn't working label Aug 4, 2026
@yogeshbhagatcode
yogeshbhagatcode deleted the branch wbc-ulmo1-stage August 13, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants