fix: remove incorrect key type when filtering inaccessible blocks - #35542
Conversation
|
Thanks for the pull request, @Agrendalath! This repository is currently maintained by @openedx/wg-maintenance-edx-platform. 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.
|
|
Hi @Agrendalath! Are you still planning to pursue this pull request? |
bd9dfeb to
194aa3f
Compare
|
@mphilbrick211, thanks for checking. I'll get back to this PR within the next two weeks. |
@Agrendalath checking back in on this! |
194aa3f to
40510c2
Compare
|
@mphilbrick211, this is ready for review. |
40510c2 to
abea6dc
Compare
Returning the list with a 'completion' string was added in 9bc0f85. However, the `get_accessible_sequences` method expects a list of dicts with an 'id' key.
abea6dc to
381242c
Compare
farhaanbukhsh
left a comment
There was a problem hiding this comment.
👍
- ✅ I tested this on Tutor devstack and it helps to handle the error gracefully.
- ✅ 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. |
Description
Returning the list with a 'completion' string was added in 9bc0f85. However, the
get_accessible_sequencesmethod expects a list of dicts with an 'id' key. When it gets the['completion'], it fails with the following traceback:Testing instructions
Steps to reproduce this error
courseware.disable_navigation_sidebar_blocks_cachingwaffle flag and set it toYes.http://local.edly.io:8000/api/course_home/v1/navigation/course-v1:OpenedX+DemoX+DemoCourseendpoint (it should return HTTP 500) and check the LMS logs.Private-ref: BB-8469 (temporary)