Make sure YouTube API key is unset by default.
Default for the EDXAPP_YOUTUBE_API_KEY
variable in edx/configuration repository is "PUT_YOUR_API_KEY_HERE"
rather than empty/null.
Set it to null in default vars to prevent failing YouTube XHR requests when loading course units containing videos in the Studio or LMS.
A valid YouTube API key can still be set via extra settings.
Testing Instructions
- Spawn a new VM.
- SSH into the new VM.
- Make sure
YOUTUBE_API_KEY
is set to null in/edx/app/edxapp/lms.auth.json
and/edx/app/edxapp/cms.auth.json
. - In the Studio, open a unit that contains at least one YouTube video.
- Make sure no error is show.
- Check the browser console to make sure there are no failed YouTube API XHR requests.
Reviewers: