fix: sidebar completion for completable XBlocks with children - #36043
Conversation
|
Thanks for the pull request, @Agrendalath! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
2095e35 to
ad97ec8
Compare
ad97ec8 to
24fde82
Compare
24fde82 to
01ca1bf
Compare
|
@farhaanbukhsh friendly ping on this! |
|
This has the dubious distinction of being one of our top 10 oldest PRs. @Agrendalath @farhaanbukhsh are you planning to move forward with this PR, or should it be closed? |
|
@sarina, even though this (and PRs like #36135 or #36136) are fixes, they were opened on behalf of one of our clients, so we cannot use the CC budget to review them. We will review and merge these PRs in July (or August, in case there is not enough budget in July). cc: @farhaanbukhsh |
|
@Agrendalath can you rebase this branch please :) |
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).
01ca1bf to
c25c2eb
Compare
|
@farhaanbukhsh, sure - done. |
farhaanbukhsh
left a comment
There was a problem hiding this comment.
👍
- ✅ I tested this on master Tutor devstack and it helps to fixs the completable XBlock for Library
- ✅ I read through the code
- ❌ I checked for accessibility issues
- ❌ Includes documentation
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
|
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
|
2U Release Notice: This PR has been deployed to the edX production environment. |
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_VIEWfeature toggle. The sidebar should use the same mechanism as theBlockCompletionTransformerand theedx-completionlibrary. It means that we should treat:Testing instructions
settings.FEATURES['MARK_LIBRARY_CONTENT_BLOCK_COMPLETE_ON_VIEW'] = True.publish_completionrequest to be sent (you can check it, e.g., with the Network tab).get_completionrequest, which retrieves the completion data from the completion service (from the edx-completion).Deadline
"None"
Private-ref: BB-8469 (temporary)