Skip to content

Remove branding related code from video xblock. - #37491

Merged
salman2013 merged 2 commits into
masterfrom
salman/remove-branding
Nov 1, 2025
Merged

salman2013 merged 2 commits into
masterfrom
salman/remove-branding

Conversation

@salman2013

@salman2013 salman2013 commented Oct 16, 2025 •

Copy link
Copy Markdown
Contributor

Description

In this PR, we are removing the branding-related code from video block since it’s no longer being used.
We have plan to remove the specialized VIDEO_CDN_URL in the next phase.
When we do that, nothing will reference the branding code so we're removing it first.

More Detail:
As part of simplification efforts under the (Video XBlock extraction
), we have adopted a strategy to gradually identify and remove small, unused portions of the Video Block code. This approach will help us create smaller, more focused PRs that are easier to review during the extraction phase.

Ticket: openedx/public-engineering#425

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Oct 16, 2025
@openedx-webhooks

openedx-webhooks commented Oct 16, 2025 •

Copy link
Copy Markdown

Thanks for the pull request, @salman2013!

This repository is currently maintained by @openedx/wg-maintenance-edx-platform.

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 approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
Where 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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@github-project-automation github-project-automation Bot moved this to Needs Triage in Contributions Oct 16, 2025
@mphilbrick211 mphilbrick211 moved this from Needs Triage to Waiting on Author in Contributions Oct 16, 2025
@salman2013
salman2013 marked this pull request as ready for review October 17, 2025 11:28
@salman2013 salman2013 added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Oct 17, 2025
@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Configuration information unavailable

@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Configuration information unavailable

@farhan farhan left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@farhan
farhan requested a review from feanil October 17, 2025 15:04

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we're dropping the location specific override, don't we need to drop this setting?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are you asking about the VIDEO_CDN_URL setting? To keep the changes simple and easy to test, we decided to make minimal modifications to the platform. In this PR, I removed the branding config–related code, and I’ll remove this setting in a separate PR.

Please let me know if this approach sounds good to you.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Got it. I think in that case it's important to make that plan clear in your PR description/commit messages. The understanding that I don't see recorded in an easily parsable way is:

  1. We want to remove the specialised VIDEO_CDN_URL.
  2. When we do that, nothing will reference the branding code so we're removing it first.

An alternative approach would have been to drop the VIDEO_CDN_URL related code first. This would drop the usage of the branding info but not the models. Then in a follow-up PR you could show that nothing is referencing the branding code and thus could be dropped.

I think for now maybe just update the PR description to make it clear that we're removing this because it's about to stop being used. But think about these other approaches in the future.

@salman2013 salman2013 changed the title chore: remove cdn related code specific to china from video block Remove branding related code from video xblock. Oct 21, 2025
@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Configuration information unavailable

@salman2013
salman2013 requested a review from farhan October 22, 2025 11:52
@salman2013
salman2013 force-pushed the salman/remove-branding branch from f18916b to 7af1231 Compare October 24, 2025 13:04
@salman2013
salman2013 requested review from a team and kdmccormick as code owners October 24, 2025 13:04
@salman2013
salman2013 force-pushed the salman/remove-branding branch from 7af1231 to a7eeb41 Compare October 24, 2025 13:13
@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Configuration information unavailable

@salman2013 salman2013 closed this Oct 24, 2025
@salman2013
salman2013 force-pushed the salman/remove-branding branch from a7eeb41 to 74782f4 Compare October 24, 2025 15:48
@github-project-automation github-project-automation Bot moved this from Waiting on Author to Done in Contributions Oct 24, 2025
@salman2013 salman2013 reopened this Oct 24, 2025
@salman2013
salman2013 removed request for a team and kdmccormick October 24, 2025 16:07
@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Configuration information unavailable

@farhan farhan left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove branding related code from css for example

rest all seems good

@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Configuration information unavailable

@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Configuration information unavailable

@salman2013
salman2013 requested a review from farhan October 29, 2025 11:33
@salman2013

Copy link
Copy Markdown
Contributor Author

@farhan Please review it again i believe its ready.

@farhan

farhan commented Oct 30, 2025 •

Copy link
Copy Markdown
Contributor

@salman2013 Just checking in — have you done its manual testing on the sandbox?

@salman2013

Copy link
Copy Markdown
Contributor Author

@farhan Yes, i did manual testing on sandbox.
#37491 (comment)

@salman2013
salman2013 merged commit 7f0375b into master Nov 1, 2025
@salman2013
salman2013 deleted the salman/remove-branding branch November 1, 2025 04:22
haftamuk pushed a commit to haftamuk/edx-platform that referenced this pull request Nov 3, 2025
* chore: remove branding related code from video_block class as it is stop being used, we have plan to remove the specialized VIDEO_CDN_URL in the next phase as after removing URL nothing will reference the branding code so we're removing it first.
anfbermudezme pushed a commit to Pearson-Advance/edx-platform that referenced this pull request Feb 16, 2026
* chore: remove branding related code from video_block class as it is stop being used, we have plan to remove the specialized VIDEO_CDN_URL in the next phase as after removing URL nothing will reference the branding code so we're removing it first.
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 open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants