Skip to content

refactor: use video block utils from xblocks-contrib package#38088

Merged
farhan merged 5 commits intomasterfrom
farhan/use-extracted-video-block-utils
Mar 9, 2026
Merged

refactor: use video block utils from xblocks-contrib package#38088
farhan merged 5 commits intomasterfrom
farhan/use-extracted-video-block-utils

Conversation

@farhan
Copy link
Contributor

@farhan farhan commented Mar 4, 2026

Use utility classes from xblocks-contrib/video to avoid the if-else conditions for fixing test cases for the extracted video block
This is the PR in which we are fixing the test cases for the extracted video block.

openedx-platform (removed) xblocks-contrib (moved)
bumper_utils.py bumper_utils.py
video_handlers.py video_handlers.py

Following tool can be used to check the difference of the original and moved code files
https://www.diffchecker.com/text-compare/

Testing notes:

I have tested the PR on the local setup.

  • Created a video block with you tube url.
  • Experience the Youtube Video on the LMS

To save time I have created following follow-up PR:
#38123

@farhan farhan added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Mar 4, 2026
@farhan farhan self-assigned this Mar 5, 2026
@farhan farhan moved this to 🏗 In progress in Aximprovements Team Mar 5, 2026
@farhan farhan force-pushed the farhan/use-extracted-video-block-utils branch from 43d6126 to 69e22e8 Compare March 6, 2026 07:56
@farhan farhan marked this pull request as ready for review March 6, 2026 08:27
@farhan farhan requested review from feanil and kdmccormick March 6, 2026 10:35
@farhan farhan moved this from 🏗 In progress to 👀 In review in Aximprovements Team Mar 6, 2026
@farhan farhan requested a review from salman2013 March 9, 2026 07:39
Copy link
Contributor

@salman2013 salman2013 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the testing notes mentioned in the PR, I am approving this.

@farhan farhan merged commit 9b6445c into master Mar 9, 2026
69 of 70 checks passed
@farhan farhan deleted the farhan/use-extracted-video-block-utils branch March 9, 2026 12:13
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Aximprovements Team Mar 9, 2026
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

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants