Skip to content
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

fix: sidebar completion for completable XBlocks with children #718

Open
wants to merge 2 commits into
base: opencraft-release/redwood.1
Choose a base branch
from

Conversation

Agrendalath
Copy link
Member

@Agrendalath Agrendalath commented Dec 17, 2024

This is a backport of openedx#36043.

Private-ref: BB-8469 (temporary)

@Agrendalath Agrendalath self-assigned this Dec 17, 2024
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 the `BlockCompletionTransformer`
and the `edx-completion` library. It means that we should treat:
1. An aggregator XBlock as completed only when all its children are completed.
2. A completable XBlock as completed when it is directly marked as completed
   (without checking the completion of its children).
The Redwood branch is still using Python 3.8 for unit tests.
This commit can be safely ignored in Sumac.
@Agrendalath Agrendalath force-pushed the agrendalath/sidebar-completion-of-completable-blocks-with-children-redwood branch from e6d0065 to 1ddf5b6 Compare December 17, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant