-
Notifications
You must be signed in to change notification settings - Fork 2
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
Some images are being loaded from github #1815
Comments
Once we figure out how this is happening, we should take a look at xPRO and Residential as well. |
These images are kept in our code base as static assets https://github.com/mitodl/mitxpro-theme/tree/master/lms/static/images. Actually, we have just overridden it. This is how edX does https://github.com/mitodl/edx-platform/tree/master/lms/static/images and we cannot do anything about this. If we still want to do something about it please let me know. CC: @pdpinch |
I understand these are the correct images, but the URLs are wrong. End-users shouldn't be getting these images via github.com URLs. They should be coming from courses.mitxonline.mit.edu, or maybe the CDN. @mitodl/devops is there something wrong with our configuration, or the deployment of this theme? I did a quick search of the theme repo and didn't see any hard-coded links to raw.githubusercontent |
This happens for the learning MFE only. For all the other tabs like progress, the URL is https://courses.mitxonline.mit.edu/static/mitxonline/images/logo.0a44f80f6467.png. Not really sure what's wrong with the learning MFE. Digging a bit more into the Learning MFE. |
logo.png and favicon.ico are set in .env and are coming from https://github.com/mitodl/ol-infrastructure/blob/c30a498638c6f2cfda797724f579e91687e76c33/src/ol_concourse/pipelines/open_edx/mfe/values.py#L10. @mitodl/devops | @blarghmatey Could we change this? |
This can be changed and will require us to update the pipeline to push those images to S3 and then load them through Fastly instead of GitHub. |
@blarghmatey how big of an effort is this? We're updating the logos now in mitodl/ol-infrastructure#2270 and it just seems wrong to me to serve them from raw.githubusercontent.com! |
@pdpinch Tobias was suggesting the use of @blarghmatey FYI |
Are we able to close this now? |
@pdpinch is this ready to be closed now? |
I'm still seeing the logo and two (?) requests for the favicon going to raw.githubusercontent.com from the page at https://courses.mitxonline.mit.edu/learn/course/course-v1:MITxT+14.310x+3T2022/home https://raw.githubusercontent.com/mitodl/mitxonline-theme/main/lms/static/images/logo.png On the Studio side, everything seems to come from courses.mitxonline.mit.edu, which is better. I tested an MFE page and a legacy theme page. |
The corresponding logos in QA are loading from the theme rather than GitHub, so I am going to close this as all of the necessary configuration changes have been made. We are just waiting on a production deploy of edX and MFEs for MITx Online. |
Steps to Reproduce
Expected Behavior
All MIT-specific resources should be loaded from mitxonline.mit.edu or the CDN.
Actual Behavior
logo.png and favicon.ico are loading from githubusercontent.com!
Screenshot or Screencast
The text was updated successfully, but these errors were encountered: