Allow theme template block override - #15947
Conversation
|
Thanks for the pull request, @cgopalan! It looks like you're a member of a company that does contract work for edX. If you're doing this work as part of a paid contract with edX, you should talk to edX about who will review this pull request. If this work is not part of a paid contract with edX, then you should ensure that there is an OSPR issue to track this work in JIRA, so that we don't lose track of your pull request. |
|
@mtyaka @bradenmacdonald theres one test thats failing which I am not sure why. If I run that test in my local, it fails for the |
4782a82 to
9bed181
Compare
|
@mtyaka This should be ready for review again. I have added a comment explaining why it works, and also added some tests. |
There was a problem hiding this comment.
nit: missing newline at end of file
There was a problem hiding this comment.
Missing "from": "comes from the..."
There was a problem hiding this comment.
Missing "from": "comes from the..."
There was a problem hiding this comment.
Duh! Thanks for catching those silly errors. Must be because of the late-night work! Will fix ASAP.
9bed181 to
96e704e
Compare
|
Thanks for the pull request, @cgopalan! I've created OSPR-1889 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. If you like, you can add yourself to the AUTHORS file for this repo, though that isn't required. Please see the CONTRIBUTING file for more information. |
|
@mtyaka The same python tests failed as a couple of builds before - I suspect it might be due to some timezone issues, since the test is looking for a certain date (Sep 11) but finds the next day (Sep 12). Also not sure why the bokchoy job failed as I see no test failures. |
|
@edx/learner Who can review this? |
|
@edx/learner this would be a great addition if it can get a review! |
|
This looks good! Nice work! 👍 |
|
@bderusha Thanks!! |
|
@cgopalan 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
@UmanShahzad @bderusha this PR introduced xsslint violations that pushed us over the limit and master is now failing the quality build. |
|
@jzoldak Was this some kind of race condition? Shouldn't that have broken the build locally? |
|
@bderusha Yes, I believe it was a race condition and this PR would have failed if rebased before merge. Happens occasionally. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Thursday, November 30, 2017. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
|
EdX Release Notice: This PR has been rolled back from the production environment. |
|
A newer version of this PR which fixes some issues is at https://github.com/edx/edx-platform/pull/16856 |
Stanford implemented the ability to override only specific named blocks of templates from a comprehensive theme, but they never contributed it upstream.
This is the PR: Stanford-Online#535
Dependencies: None
Sandbox URL: TBD - sandbox is being provisioned.
Deployment targets: edx.org and edge.edx.org
Merge deadline: None
Testing instructions:
/edx/app/edxapp/themes/testtheme/edx/app/edxapp/themes/testtheme/lms/templates/dashboard.html, and put this content into it:Author notes and concerns:
Note: Some templates are cached, so if you don't see the changes, you can try wiping the cache by doing
rm -rf /tmp/mako_*andsudo service memcached restart.Reviewers
Settings
In lms.env.json ensure that