fix: sidebar completion for completable XBlocks with children #36043
+54
−1
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.
Description
It is possible to create a completable XBlock with children. An example is the Library Content Block with the
MARK_LIBRARY_CONTENT_BLOCK_COMPLETE_ON_VIEW
feature toggle. The sidebar should use the same mechanism as theBlockCompletionTransformer
and theedx-completion
library. It means that we should treat:Testing instructions
settings.FEATURES['MARK_LIBRARY_CONTENT_BLOCK_COMPLETE_ON_VIEW'] = True
.publish_completion
request to be sent (you can check it, e.g., with the Network tab).get_completion
request, which retrieves the completion data from the completion service (from the edx-completion).Deadline
"None"
Private-ref: BB-8469 (temporary)