Repository navigation
Description
Summary
Leftover work for xblock_lti, found while reviewing openedx/openedx-platform#38747, which removes the built-in LTI block. Once that merges, operators can't switch back to the built-in block, so these gaps can't be worked around.
Checked at xblocks-core 24d213ae against the built-in files on openedx-platform master.
1. Platform changes never ported
The extraction copy started on 2025-02-20. These two platform PRs touched the LTI block after that, and their changes are missing here:
| # | Platform PR | Change | Still old here |
|---|---|---|---|
| 1 | openedx/openedx-platform#36461 | Docs links moved from edx.readthedocs.io to docs.openedx.org |
src/xblock_lti/block.py:95-98, used in the Studio help text of lti_id, launch_url and custom_parameters |
| 2 | openedx/openedx-platform#37562 | pytz replaced with zoneinfo |
block.py:74 (from pytz import UTC), the LTI tests, and pytz in pyproject.toml |
2. Bugs not in the built-in block
The built-in block handles each of these correctly.
| # | Where | Bug | Built-in block |
|---|---|---|---|
| 1 | templates/lti.html:65 |
Mako syntax in a Django template. Learners see the literal text ${_("Feedback on your work from the grader:")} above grader comments |
Renders the label |
| 2 | templates/lti.html:17-19 |
The score shows as "(1.0 total_points possible)" ("(1,0 total des points possible)" in French). The {points} / {total_points} points and {total_points} points possible strings are no longer used, so their translations are lost |
Shows "(1.0 points possible)" |
| 3 | static/js/src/lti.js:14,16,18 |
The 3 confirm() prompts lost gettext(), so they always show in English |
Wrapped in gettext() |
| 4 | templates/lti.html:40,60 |
_('View resource in a new window') and the launch_url error use _() as a template argument. That looks up Django's global catalog, not the block's, so the text shows in English |
Translated |
| 5 | static/css/lti.css |
Rules lost their .xmodule_display.xmodule_LTIBlock scope, so div.problem-progress and h2.problem-header can restyle a Problem block in the same unit |
Scoped to the LTI block |
Item 1 was seen in the LMS after an LTI 2.0 result PUT with a comment. Items 2–4 were seen with the French and Arabic catalogs. Item 5 comes from reading the CSS.
Related: #332 (closed) fixed lti_form.html but not these strings.
Part of the Slash-n-Burn Built-In XBlocks epic.
Activity
[-]LTI: leftover changes from the built-in LTI block[/-][+]Post tasks/check-list of Slash & Burn epic[/+][-]Post tasks/check-list of Slash & Burn epic[/-][+]LTI: leftover changes from the built-in LTI block[/+]