Repository navigation
Backlog
Description
Follow-up to the slash-n-burn PRs of the Slash-n-Burn Built-In XBlocks epic. The Video items are tracked separately in #39467.
These platform helpers lose their last production caller when the built-in blocks are removed. They weren't removed in the block PRs, either because their tests need a home first (no test is deleted without a counterpart) or because they are shared library code.
Helpers whose tests need a home first
escape_html_characterstests (the HTML PR, fix: keep edxnotes working on HTML blocks and remove the built-in HTML XBlock (slash-n-burn #37819) #38748). The function, and there/html_to_textimports only it used, were removed in fix: keep edxnotes working on HTML blocks and remove the built-in HTML XBlock (slash-n-burn #37819) #38748 (2026-12-02, at farhan's review). Its tests stay inxmodule/tests/test_utils_escape_html_characters.py, pointed atxblock_html.block, until test: port escape_html_characters tests from openedx-platform xblocks-core#358 (which ports them unchanged) merges. Then delete the platform copy.
Shared library code with no platform caller left
get_css_dependenciesandget_js_dependenciesinopenedx/core/lib/xblock_utils/__init__.py(the Discussion PR, refactor: remove built-in Discussion XBlock implementation (slash-n-burn #37819) #38749). Their only non-test caller was the built-in Discussion block. The forum views call separate same-named methods onopenedx/core/djangoapps/plugin_api/views.py. Because this is anopenedx.core.libAPI that plugins could import, decide whether to deprecate it before removing it and its tests inopenedx/core/lib/tests/test_xblock_utils.py.
Test tooling
jasmine-imagediff(the Problem PR, refactor: slash-and-burn Problem block built-in implementation (slash-n-burn #37819) #38751). Its only user (toImageDiffEqual) was the deleted built-in Problemdisplay_spec.js. refactor: slash-and-burn Problem block built-in implementation (slash-n-burn #37819) #38751 drops it from the xmodule Karma configs. Still left: the RequireJS alias and shim inlms/static/lms/js/spec/main.js,cms/static/cms/js/spec/main.jsandcommon/static/common/js/spec/main_requirejs.js;common/static/karma_common.conf.js; thewindow.imagediffhook incommon/static/common/js/spec_helpers/jasmine-extensions.js; and the vendor filecommon/static/js/vendor/jasmine-imagediff.js.- The
$.fn.qtipstub inxmodule/js/spec/helper.js(after the Annotatable PR, refactor: slash-and-burn Annotatable BuiltIn XBlock #38746). Only the built-in Annotatable JS called.qtip(. Remove the stub once both the Annotatable and Video PRs have merged (both edit that file). Keep thejquery.qtipglobal inlms/envs/common.py: the extracted Annotatable JS still uses it.
Generated using Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Activity
refactor: drop xmodule spec stubs and tooling only the Problem specs …
refactor: drop xmodule spec stubs and tooling only the Problem specs …
refactor: drop xmodule spec stubs and tooling only the Problem specs …
refactor: drop xmodule spec stubs and tooling only the Problem specs …