feat: remove built-in Video XBlock implementation (slash-n-burn #37819)#38750
feat: remove built-in Video XBlock implementation (slash-n-burn #37819)#38750irfanuddinahmad wants to merge 7 commits into
Conversation
|
Thanks for the pull request, @irfanuddinahmad! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
bd94b9b to
d841d89
Compare
d227bd7 to
b52f988
Compare
Removes xmodule/video_block/, CSS assets, the USE_EXTRACTED_VIDEO_BLOCK toggle, and both 'video'/'videoalpha' entrypoints in pyproject.toml now that the extracted version in xblocks-contrib is the only implementation. Inlines rewrite_video_url into video_urls.py (sole production caller). Updates all test file imports and mock.patch paths from xmodule.video_block to xblocks_contrib.video. Deletes test_video_handlers.py and test_video_mongo.py which patch edxval_api internal paths that no longer exist in xmodule. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
xblocks_contrib.video.video uses get_edxval_api() from video_utils, not a module-level edxval_api attribute. Patching the non-existent attribute raised AttributeError in mock.patch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
d02bd44 to
f18930d
Compare
… (PT008) Ruff PT008 requires using return_value= instead of lambda when patching. Using new=MagicMock(return_value=None) avoids injecting a mock arg into the test function signatures while satisfying the lint rule. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…fixture The USE_EXTRACTED_VIDEO_BLOCK toggle was removed; test_api.py now asserts xblocks_contrib directly. VideoBlockEditor.css was deleted with the video block; tests updated to use HtmlBlockEditor.css which still exists. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
Removes the built-in Video XBlock from xmodule/ as part of the Slash-n-Burn Built-In XBlocks epic (#37819). The extracted version in xblocks-contrib has been the active implementation since USE_EXTRACTED_VIDEO_BLOCK was set to True.
Deleted:
Modified:
Note on deleted tests: test_video_handlers.py (1355 lines) and test_video_mongo.py (2605 lines) patch internal methods of the built-in VideoBlock (edxval_api module paths, EXPORT_IMPORT_* constants) that no longer exist. These tests cannot be straightforwardly migrated without knowledge of xblocks-contrib's internal structure.
Test plan
🤖 Generated with Claude Code
Closes openedx/public-engineering#539