-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Convert BuiltIn Video Block's html from mako template into django template #37509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for the pull request, @salman2013! 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. |
2 similar comments
1 similar comment
59e3049 to
dfd509a
Compare
|
Sandbox deployment failed 💥 |
|
Sandbox deployment failed 💥 |
b7a20f2 to
caa9f36
Compare
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
efd3fb1 to
cd7f16a
Compare
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
7d25eb4 to
427721b
Compare
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment successful 🚀 |
20d2e65 to
204e35b
Compare
|
Sandbox deployment successful 🚀 |
farhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good now.
If we could do the manual testing of the disabled features that will be great.
For example:
- Video Sharing
- sendPerformanceBeacon methods
lms/templates/video.html
Outdated
| id="google-translate-logo" | ||
| src="https://learning.edx.org/d4ab1b25143ecad62d69d855b00e7313.png" | ||
| alt="Translated by Google logo" | ||
| alt="{% trans 'Translated by Google logo' as tmsg %}{{tmsg|force_escape}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it un-translated as in the original file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reverted it.
14082e3 to
8b92a20
Compare
|
@farhan thanks for the feedback. Video Sharing sendPerformanceBeacon methods By default the script is disabled inside video_block I have tested and compared it with the master branch by enabling and disabling cdn_eval , the video playback experience and console logs seems the same on both master and with the changes in this PR. |
|
Sandbox deployment successful 🚀 |
…o-django-template
|
Sandbox deployment successful 🚀 |
farhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now
kdmccormick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Description
In this PR
student_view,public_viewandauthor_view.studio_viewas it is because there is already deprecation ticket to remove legacy video editor which is rendering in studio_view.Alternate Approach/ considerations:
I also tried using Django’s built-in template loader (django.template.loaders) to render the template. It successfully found the HTML file under
lms/templateswhen running in the LMS, but not in the CMS. The reason is that the CMS (settings) do not include a path to read files from the lms directory, and the file exists only within the LMS app.In this approach if we update the video.html location from
lms/templatestocommon/templatesit render properly on both CMS and LMSReasons:
We are transitioning from Mako to Django templates.
Eventually we have to extract out the Video Block into xblocks-contrib repository
Ticket: openedx/public-engineering#427
Acceptance Criteria:
Testing results:
I tested this PR on sandbox with following video formats.
Youtube
Youtube with transcript
Mp4
HLS

webm
In-video quiz
Video Sharing