refactor: Reference top-level settings instead of FEATURES#38070
Closed
kdmccormick wants to merge 45 commits intomasterfrom
Closed
refactor: Reference top-level settings instead of FEATURES#38070kdmccormick wants to merge 45 commits intomasterfrom
kdmccormick wants to merge 45 commits intomasterfrom
Conversation
…nt/learning_sequences
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
TODO: test_views.py uses @override_settings(MODE_CREATION_FOR_TESTING=True) on setUp(), which patches during setUp execution. The urls.py still uses a module-level conditional on this setting (evaluated at import time). Verify that UrlResetMixin reloads URLs after setUp runs, otherwise the create_mode URL pattern may not be included correctly in tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…_auth
TODO: testutil.py AUTH_FEATURES_KEY + " not in settings.FEATURES" error message
still references FEATURES by name in the string, but this is a cosmetic issue only.
_SETTINGS_MAP in test_settings.py still has 'FEATURES': {} as a dict key in a
fake settings object; harmless since nothing reads it after this change.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
TODO: test_models.py had FEATURES_INVALID_FILE_PATH with CERTS_HTML_VIEW_CONFIG_PATH, which is not in base settings and not referenced anywhere in production code. Removed module-level variable and decorator entirely since the setting is a dead artifact. Verify test_get_no_database_no_file still tests what it intends. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…oryextended Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/badges Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/bulk_enroll Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/bulk_user_retirement Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/debug Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/gating Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/learner_dashboard Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/lms_initialization Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/lms_xblock Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/mailing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/monitoring Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/ora_staff_grader Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/rss_proxy Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/static_template_view Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/staticbook Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/survey Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/user_tours Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s/bulk_email TODO: test_email.py uses ENABLE_INSTRUCTOR_EMAIL and REQUIRE_COURSE_EMAIL_AUTH which are not defined in any common settings file. Skipped conversion. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
TODO: XQA_SERVER, COURSEWARE_SEARCH_INCLUSION_DATE, ENABLE_PROCTORED_EXAMS, ENABLE_FINANCIAL_ASSISTANCE_FORM not in common settings -- skipped. ENABLE_SPECIAL_EXAMS + ENABLE_PROCTORED_EXAMS share a patch.dict in test_rules.py -- skipped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
TODO: ENABLE_FORUM_DAILY_DIGEST and ALLOW_HIDING_DISCUSSION_TAB not in common settings -- skipped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6766949 to
02c1f7c
Compare
Member
Author
|
Closed in favor of #38095 |
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
Replace each reference to the FEATURES dictionary with the equivalent top-level Django settings reference.
Supporting information
TBC
Testing instructions
TBC
Deadline
Verawood code freeze
Other information
A
I used claude code -- more TBC