feat: hydrate learner state for paginated assessment children - #465
Merged
santhosh-apphelix-2u merged 1 commit intoSep 10, 2026
Merged
Conversation
rahulkanneri-2u
approved these changes
Sep 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes CR-8239, where incrementally loaded assessment questions could appear unanswered even though the learner’s attempt state existed in
StudentModule.When the learner submitted the question again, the backend detected the existing attempt and returned:
Root cause
Lazy children were obtained through
parent.get_children()and could already be bound to the parent’s shallow field-data cache. When the endpoint later supplied the correct batch cache,bind_for_student()skipped rebinding because the user ID was unchanged. As a result, the question rendered with default state instead of the learner’s persisted answer and attempt count.Changes