Repository navigation
Open
openedx/openedx-platform
#38747Description
See parent epic: openedx/openedx-platform#37819
Rollout Position
Step 5 of 8 — Medium-high complexity (~1,386 LOC core). The LTI block coexists with a separate LTI Provider Django app and LTI course tab feature — these are out of scope and remain in edx-platform after this removal.
Block Details
| Toggle | USE_EXTRACTED_LTI_BLOCK in openedx/envs/common.py |
| Shim class | _BuiltInLTIBlock in xmodule/lti_block.py |
| Entrypoint | lti = "xmodule.lti_block:LTIBlock" in pyproject.toml |
Checklist
Pre-condition
- Review PRs merged into the built-in LTI XBlock code in edx-platform after the extraction work was done — port any bug fixes or improvements to xblocks-contrib if not already there.
Steps (single PR)
- Remove the toggle — delete
USE_EXTRACTED_LTI_BLOCKfromopenedx/envs/common.pyand all usages. - Remove the shim — delete
_BuiltInLTIBlockclass and thefrom xblocks_contrib.lti import LTIBlock as _ExtractedLTIBlockimport fromxmodule/lti_block.py. - Re-point the entrypoint — change
lti = "xmodule.lti_block:LTIBlock"inpyproject.tomltolti = "xblock_lti:LTIBlock". The nameltistays in the platform, because xblocks-core only registers_lti_extracted(for testing). - Remove remaining assets:
-
xmodule/lti_block.py(Python class) -
xmodule/lti_2_util.py -
xmodule/js/src/lti/lti.js(JavaScript) -
lms/templates/lti.htmlandlms/templates/lti_form.html(templates) -
xmodule/static/css-builtin-blocks/LTIBlockDisplay.css(CSS) - Webpack entries
LTIBlockDisplay/LTIBlockEditorinwebpack.builtinblocks.config.js
-
- Run smoke tests on the extracted LTI block to verify nothing is broken.
Scope Notes
Out of scope for this issue:
lms/djangoapps/lti_provider/— separate Django app handling LTI protocol OAuth callbacks and grade passback; remains in edx-platform.openedx/features/lti_course_tab/— LTI course tab feature; remains in edx-platform.
Metadata
Metadata
Assignees
Labels
No labels
Activity
irfanuddinahmad commentedon Jun 11, 2026
Implementation PR: openedx/openedx-platform#38747