refactor: Clean up CMS production settings cruft #36306
Merged
kdmccormick merged 3 commits intoopenedx:masterfrom Mar 5, 2025
Merged
refactor: Clean up CMS production settings cruft #36306kdmccormick merged 3 commits intoopenedx:masterfrom
kdmccormick merged 3 commits intoopenedx:masterfrom
Conversation
e0e2246 to
accbbec
Compare
Member
Author
|
@feanil This is ready for review. I've tested using dump_settings, and I'll smoke test with the PR sandbox on Monday. |
|
Sandbox deployment successful 🚀 |
We separate out the handful of settings which have useful comments. The rest of the settings' comments were not helpful--they were either just stating the obvious, or they were duplicative of what's documented in common.py.
699251b to
16d4177
Compare
|
Sandbox deployment successful 🚀 |
Member
Author
|
Smoke test looks good. @feanil ready for review |
feanil
approved these changes
Mar 4, 2025
Contributor
feanil
left a comment
There was a problem hiding this comment.
PR looks good, checked for typos and logical errors and didn't spot anything new.
Contributor
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
Contributor
|
2U Release Notice: This PR has been deployed to the edX production environment. |
tonybusa
pushed a commit
to tonybusa/edx-platform
that referenced
this pull request
Apr 23, 2025
This is a pure refactoring of cms/envs/production.py, removing several redundant statements that have accrued over the years as the platform moved from python-only, to python+json, to python+json+yaml, to today's python+yaml setup. This is the CMS version of: * a81493c * (originally 1593923) Also included: * Add some more explicit structure to the both LMS's and CMS's production.py using big comments. * In both LMS and CMS settings, alphabetize the production overrides, and remove the extraneous comments. Separate out the handful of settings which have useful comments. The rest of the settings' comments were not helpful--they were either just stating the obvious, or they were duplicative of what's documented in common.py. Co-Authored-By: Feanil Patel <feanil@axim.org> Part of: openedx#36215
UsamaSadiq
pushed a commit
that referenced
this pull request
May 14, 2025
This is a pure refactoring of cms/envs/production.py, removing several redundant statements that have accrued over the years as the platform moved from python-only, to python+json, to python+json+yaml, to today's python+yaml setup. This is the CMS version of: * a81493c * (originally 1593923) Also included: * Add some more explicit structure to the both LMS's and CMS's production.py using big comments. * In both LMS and CMS settings, alphabetize the production overrides, and remove the extraneous comments. Separate out the handful of settings which have useful comments. The rest of the settings' comments were not helpful--they were either just stating the obvious, or they were duplicative of what's documented in common.py. Co-Authored-By: Feanil Patel <feanil@axim.org> Part of: #36215
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
What it says on the tin. See individual commits for more details
Supporting Information
Part of:
This is essentially the CMS version of:
Testing instructions
With an up-to-date version of both master and this PR's branch, run
./diff_settings.sh master kdmccormick/settings-cms-envs-production, wherediff_settings.shis:Should yield: