Skip to content

fix: sidebar completion for completable XBlocks with children - #718

Merged
farhaanbukhsh merged 2 commits into
opencraft-release/redwood.1from
agrendalath/sidebar-completion-of-completable-blocks-with-children-redwood
Aug 20, 2025
Merged

fix: sidebar completion for completable XBlocks with children#718
farhaanbukhsh merged 2 commits into
opencraft-release/redwood.1from
agrendalath/sidebar-completion-of-completable-blocks-with-children-redwood

Conversation

@Agrendalath

@Agrendalath Agrendalath commented Dec 17, 2024

Copy link
Copy Markdown
Member

This is a backport of openedx#36043.

Private-ref: BB-8469 (temporary)

@Agrendalath Agrendalath self-assigned this Dec 17, 2024
@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
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).
@Agrendalath
Agrendalath force-pushed the agrendalath/sidebar-completion-of-completable-blocks-with-children-redwood branch from 1ddf5b6 to 42396c2 Compare January 13, 2025 23:37
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 42396c2 to 8b5287b Compare January 20, 2025 20:07

@farhaanbukhsh farhaanbukhsh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

  • ✅ I tested this tested on Tutor with instructions.
  • ✅ I read through the code
  • ❌ I checked for accessibility issues
  • ❌ Includes documentation

@farhaanbukhsh
farhaanbukhsh merged commit 33f4fb6 into opencraft-release/redwood.1 Aug 20, 2025
@farhaanbukhsh
farhaanbukhsh deleted the agrendalath/sidebar-completion-of-completable-blocks-with-children-redwood branch August 20, 2025 12:27
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.

3 participants