Skip to content

feat!: replace xblocks-contrib with xblocks-core 2.0.0 - #38473

Merged
kdmccormick merged 5 commits into
masterfrom
kdmccormick/xblocks-core
Nov 9, 2026
Merged

kdmccormick merged 5 commits into
masterfrom
kdmccormick/xblocks-core

Conversation

@kdmccormick

@kdmccormick kdmccormick commented Apr 29, 2026 •

Copy link
Copy Markdown
Member

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.

  • xblocks_contrib.poll becomes xblock_poll_question, matching its entry
    point and <poll_question> tag; xblock_poll is OpenCraft's newer
    poll XBlock.
  • Point XBLOCK_NOAUTH_HANDLER_ALLOWLIST at the new LTI and video
    handler paths.
  • Update docs that referred to xblocks-contrib.

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:

Part of:

Testing 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

@kdmccormick
kdmccormick force-pushed the kdmccormick/xblocks-core branch from fab4962 to 456922d Compare May 4, 2026 19:38
@kdmccormick kdmccormick added the create-sandbox open-craft-grove should create a sandbox environment from this PR label May 4, 2026
@kdmccormick
kdmccormick force-pushed the kdmccormick/xblocks-core branch 5 times, most recently from c75ca1f to e37ee70 Compare May 6, 2026 19:32
@kdmccormick

Copy link
Copy Markdown
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 kdmccormick removed the create-sandbox open-craft-grove should create a sandbox environment from this PR label May 6, 2026
@kdmccormick
kdmccormick force-pushed the kdmccormick/xblocks-core branch from e37ee70 to 872dd8b Compare May 7, 2026 12:44
@kdmccormick kdmccormick added the create-sandbox open-craft-grove should create a sandbox environment from this PR label May 7, 2026
@kdmccormick
kdmccormick force-pushed the kdmccormick/xblocks-core branch 2 times, most recently from f8afc53 to 0e9b195 Compare May 7, 2026 18:26
@kdmccormick kdmccormick added create-sandbox open-craft-grove should create a sandbox environment from this PR and removed create-sandbox open-craft-grove should create a sandbox environment from this PR labels May 7, 2026
@kdmccormick
kdmccormick force-pushed the kdmccormick/xblocks-core branch from 0e9b195 to cde43de Compare May 8, 2026 16:58
@kdmccormick
kdmccormick force-pushed the kdmccormick/xblocks-core branch from cde43de to dee56f2 Compare August 10, 2026 18:33
@kdmccormick kdmccormick changed the title build: Upgrade to xblocks-core v1.0 build: Upgrade to xblocks-core Aug 10, 2026
@kdmccormick kdmccormick added create-sandbox open-craft-grove should create a sandbox environment from this PR and removed create-sandbox open-craft-grove should create a sandbox environment from this PR labels Aug 10, 2026
@kdmccormick
kdmccormick force-pushed the kdmccormick/xblocks-core branch 8 times, most recently from 08c1227 to e9836a6 Compare August 20, 2026 11:21
kdmccormick and others added 5 commits November 9, 2026 13:54
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
kdmccormick force-pushed the kdmccormick/xblocks-core branch from 48d6120 to ee96425 Compare November 9, 2026 18:55
@kdmccormick
kdmccormick enabled auto-merge (squash) November 9, 2026 18:56
@kdmccormick
kdmccormick merged commit 6f85d63 into master Nov 9, 2026
46 of 47 checks passed
@kdmccormick
kdmccormick deleted the kdmccormick/xblocks-core branch November 9, 2026 19:55
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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

create-sandbox open-craft-grove should create a sandbox environment from this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants