You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove load_single_xblock from block_render.py #39434
load_single_xblock in lms/djangoapps/courseware/block_render.py was the block loader for the xqueue_callback view. #39405 removes that view, and external grader scores already load the block through load_xblock_for_external_grader in lms/djangoapps/grades/score_render.py, so once it lands nothing in the platform calls load_single_xblock outside of tests. It also still tags every block it loads with grade_bucket_type='xqueue'.
Two callers are left:
openedx/features/content_type_gating/tests/test_access.py uses it to load a block for the gating render tests.
We should move both callers off it and then remove the function. The xblocks-extra change has to land first, since that import would break on the release that drops it.
load_xblock_for_external_grader is not a drop-in replacement: it takes an anonymous user id and skips the access checks. The feedback filter probably wants get_block with a FieldDataCache directly, which is all load_single_xblock wraps.
Activity