Repository navigation
Open
openedx/openedx-platform
#38746Description
See parent epic: openedx/openedx-platform#37819
Rollout Position
Step 3 of 8 — Small-medium footprint (~924 LOC core + vendored annotator.js files). Before removing, verify that xmodule/annotator_mixin.py is not used by any other remaining block.
Block Details
| Toggle | USE_EXTRACTED_ANNOTATABLE_BLOCK in openedx/envs/common.py |
| Shim class | _BuiltInAnnotatableBlock in xmodule/annotatable_block.py |
| Entrypoint | annotatable = "xmodule.annotatable_block:AnnotatableBlock" in pyproject.toml |
Checklist
Pre-condition
- Review PRs merged into the built-in Annotatable XBlock code in edx-platform after the extraction work was done — port any bug fixes or improvements to xblocks-contrib if not already there.
- Confirm
xmodule/annotator_mixin.pyis not referenced by any other remaining block.
Steps (single PR)
- Remove the toggle — delete
USE_EXTRACTED_ANNOTATABLE_BLOCKfromopenedx/envs/common.pyand all usages. - Remove the shim — delete
_BuiltInAnnotatableBlockclass and thefrom xblocks_contrib.annotatable import AnnotatableBlock as _ExtractedAnnotatableBlockimport fromxmodule/annotatable_block.py. - Re-point the entrypoint — change
annotatable = "xmodule.annotatable_block:AnnotatableBlock"inpyproject.tomltoannotatable = "xblock_annotatable:AnnotatableBlock". The nameannotatablestays in the platform, because xblocks-core only registers_annotatable_extracted(for testing). - Remove remaining assets:
-
xmodule/annotatable_block.py(Python class) -
xmodule/annotator_mixin.py(mixin — only if no other block depends on it) -
xmodule/js/src/annotatable/display.js(JavaScript) -
common/static/js/vendor/annotator.*.jsfiles (7 vendored Annotator.js files) -
common/static/css/vendor/edxnotes/annotator.min.css -
lms/templates/annotatable.html(template) -
xmodule/static/css-builtin-blocks/AnnotatableBlockDisplay.css -
xmodule/static/css-builtin-blocks/AnnotatableBlockEditor.css - Webpack entries
AnnotatableBlockDisplay/AnnotatableBlockEditorinwebpack.builtinblocks.config.js
-
- Run smoke tests on the extracted Annotatable block to verify nothing is broken.
Metadata
Metadata
Assignees
Labels
No labels
Activity
irfanuddinahmad commentedon Jun 11, 2026
Implementation PR: openedx/openedx-platform#38746
refactor: slash-and-burn Annotatable BuiltIn XBlock
refactor: slash-and-burn Annotatable BuiltIn XBlock
refactor: slash-and-burn Annotatable BuiltIn XBlock
refactor: slash-and-burn Annotatable BuiltIn XBlock
refactor: slash-and-burn Annotatable BuiltIn XBlock
refactor: slash-and-burn Annotatable BuiltIn XBlock