-
Notifications
You must be signed in to change notification settings - Fork 4.2k
refactor: deprecate static_url argument from ModuleSystem [BD-13]
#30992
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
refactor: deprecate static_url argument from ModuleSystem [BD-13]
#30992
Conversation
|
Thanks for the pull request, @Agrendalath! When this pull request is ready, tag your edX technical lead. |
a866c49 to
f8bd36a
Compare
ormsbee
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.
Content looks good, but please change the commit message:
- Since it's removing something, the prefix should be
feat!:, notfeat: - Please use "remove" instead of "deprecate"–deprecate implies that it's still there but people shouldn't use it because we plan to remove it. This PR actually removes it.
- Please add something in the commit message explaining what people should use instead.
@jristau1984: I think this would be a good one for merging on Monday. The highest risk would be that static course assets (e.g. images) fail to display properly in XBlocks.
static_url argument from ModuleSystem [BD-13]static_url argument from ModuleSystem [BD-13]
f8bd36a to
8dc1099
Compare
|
@ormsbee, thanks for the quick review! I addressed your points. Just one note:
That's true for the XBlock runtime. Initially, I added a shim to the |
|
@Agrendalath: Ack! I totally missed that somehow (for some reason I thought it was being shifted into capa). No, you folks were right, please keep it in, so 2U can monitor to see if anything is still using it before it's finally and completely killed. @jristau1984: The relevant log message to search for in Splunk would be |
8dc1099 to
8f8763a
Compare
|
@ormsbee, I dropped the commit that was removing the XModule shim. For full backward compatibility, I also added back the shim for the XBlock runtime (8f8763a334b6c6fb8561729fd1dec4bdb35d0682), modifying it to show the |
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.
Thank you for your patience. @jristau1984: Please look for the log messages after this has merged:
runtime.STATIC_URL is deprecated. Please use settings.STATIC_URL instead
8f8763a to
edc0cbd
Compare
static_url argument from ModuleSystem [BD-13]static_url argument from ModuleSystem [BD-13]
This argument was officially used only by the ProblemBlock. If you need to get the base URL for static assets in your XBlock, please use `settings.STATIC_URL` directly, instead of `runtime.STATIC_URL`.
edc0cbd to
ca3e457
Compare
static_url argument from ModuleSystem [BD-13]static_url argument from ModuleSystem [BD-13]
|
@Agrendalath 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
Description
As a part of the ModuleSystem removal, we want to get rid of its
static_urlattribute.Supporting information
Sandbox instance: https://pr30046.sandbox.opencraft.hosting/
Use
staff@example.com:edxto log in.Testing instructions
chemical_equation_preview.js.Other information
Private-ref: BB-5518