Repository navigation
feat!: replace xblocks-contrib with xblocks-core 2.0.0 - #38473
Merged
Merged
Conversation
This was referenced Apr 29, 2026
kdmccormick
force-pushed
the
kdmccormick/xblocks-core
branch
from
May 4, 2026 19:38
fab4962 to
456922d
Compare
kdmccormick
force-pushed
the
kdmccormick/xblocks-core
branch
5 times, most recently
from
May 6, 2026 19:32
c75ca1f to
e37ee70
Compare
Member
Author
|
Gonna destroy and re-create this sandbox. I think the build cache isn't fully getting invalidated, which is messing with the static asset build. |
kdmccormick
force-pushed
the
kdmccormick/xblocks-core
branch
from
May 7, 2026 12:44
e37ee70 to
872dd8b
Compare
kdmccormick
force-pushed
the
kdmccormick/xblocks-core
branch
2 times, most recently
from
May 7, 2026 18:26
f8afc53 to
0e9b195
Compare
kdmccormick
force-pushed
the
kdmccormick/xblocks-core
branch
from
May 8, 2026 16:58
0e9b195 to
cde43de
Compare
kdmccormick
force-pushed
the
kdmccormick/xblocks-core
branch
from
August 10, 2026 18:33
cde43de to
dee56f2
Compare
kdmccormick
force-pushed
the
kdmccormick/xblocks-core
branch
8 times, most recently
from
August 20, 2026 11:21
08c1227 to
e9836a6
Compare
Handles the breaking change from the xblocks-core 1.0.5->2.0.0 upgrade. Closes: openedx/xblocks-core#237
The import path `xblock_poll` is taken by the *newer* PollBlock, developed and maintained by OpenCraft: https://github.com/open-craft/xblock-poll We don't want to conflict with that block, so we've made the old formerly- built-in block's path xblock_poll_question, which matches its entrtypoint and XML tag, <poll_question>.
The openedx/xblocks-contrib repository has been renamed to openedx/xblocks-core, and its 2.0.0 release moves each block into its own top-level xblock_* package. Update the dependency name in pyproject.toml and re-lock, which picks up xblocks-core 2.0.0 from PyPI. Co-Authored-By: Claude Opus 5.5 <[email protected]>
XBLOCK_NOAUTH_HANDLER_ALLOWLIST (added on master after this branch was written) still named the LTI and video handlers by their xblocks_contrib paths, which no longer import, so those handlers silently dropped off the allowlist. Caught by test_default_allowlist_entries_import. Co-Authored-By: Claude Opus 5.5 <[email protected]>
kdmccormick
force-pushed
the
kdmccormick/xblocks-core
branch
from
November 9, 2026 18:55
48d6120 to
ee96425
Compare
kdmccormick
enabled auto-merge (squash)
November 9, 2026 18:56
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 10, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.poll -> xblock_poll_question). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 10, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.video.video -> xblock_video.block). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 10, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.video.video -> xblock_video.block). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 10, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.video.video -> xblock_video.block). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 10, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.html -> xblock_html). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 10, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.video.video -> xblock_video.block). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 10, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.video.video -> xblock_video.block). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 10, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.video.video -> xblock_video.block). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 10, 2026
kdmccormick
pushed a commit
that referenced
this pull request
Nov 24, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.html -> xblock_html). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 25, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.poll -> xblock_poll_question). Co-Authored-By: Claude Opus 5.5 <[email protected]>
irfanuddinahmad
added a commit
that referenced
this pull request
Nov 25, 2026
xblocks-core 2.0.0 (#38473) removed the xblocks_contrib package. Point the platform entrypoint, imports and mock.patch targets at the new per-block packages (e.g. xblocks_contrib.video.video -> xblock_video.block). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
feat!: replace xblocks-contrib with xblocks-core 2.0.0
xblocks-contrib has been renamed to xblocks-core. Its 2.0.0 release
moves each built-in XBlock out of the shared xblocks_contrib namespace
and into its own top-level package (xblock_problem, xblock_video, ...).
Swap the dependency for xblocks-core 2.0.0 from PyPI, and point imports
of the extracted blocks at the new xblock_* modules.
point and <poll_question> tag; xblock_poll is OpenCraft's newer
poll XBlock.
handler paths.
BREAKING CHANGE: If you override XBLOCK_NOAUTH_HANDLER_ALLOWLIST,
replace the old LTI and video handler entries with their new paths, or
LTI 1.1 grade passback and video transcript downloads will stop working:
Remove:
xblocks_contrib.lti.lti.LTIBlock.grade_handler
xblocks_contrib.lti.lti_2_util.LTI20BlockMixin.lti_2_0_result_rest_handler
xblocks_contrib.video.video_handlers.VideoStudentViewHandlers.transcript
Add:
xblock_lti.block.LTIBlock.grade_handler
xblock_lti.lti_2_util.LTI20BlockMixin.lti_2_0_result_rest_handler
xblock_video.video_handlers.VideoStudentViewHandlers.transcript
The lti_consumer entries are unchanged.
Part of: openedx/xblocks-core#237
Part of: openedx/xblocks-core#149
Co-Authored-By: Claude Opus 4.6 [email protected]
Supporting information
Blocked by:
Closes:
Part of:
xblocks-corexblocks-core#149Testing instructions
I had Opus 5.5 augment the e2e tests branch with a bunch of additional tests to cover all core XBlocks. They all pass on both master and this branch, with the exception of a few which fail on both (and thus are existing bugs):
https://github.com/openedx/end-to-end-tests/blob/kdmccormick/xblocks-core/docs/xblocks-core-e2e-tests.md