-
Notifications
You must be signed in to change notification settings - Fork 10
refactor: BOMS-200 contract features dict settings into top level settings #179
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
Changes from all commits
4c171e5
d94bc39
ed1debd
c69ec94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -145,32 +145,31 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing | |||||||||
| WEBPACK_CONFIG_PATH = 'webpack.dev.config.js' | ||||||||||
|
|
||||||||||
| ########################### VERIFIED CERTIFICATES ################################# | ||||||||||
|
|
||||||||||
| FEATURES['AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING'] = True | ||||||||||
| AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING = True | ||||||||||
|
|
||||||||||
| ########################### External REST APIs ################################# | ||||||||||
| FEATURES['ENABLE_OAUTH2_PROVIDER'] = True | ||||||||||
| FEATURES['ENABLE_MOBILE_REST_API'] = True | ||||||||||
| FEATURES['ENABLE_VIDEO_ABSTRACTION_LAYER_API'] = True | ||||||||||
| ENABLE_OAUTH2_PROVIDER = True | ||||||||||
| ENABLE_MOBILE_REST_API = True | ||||||||||
| ENABLE_VIDEO_ABSTRACTION_LAYER_API = True | ||||||||||
|
|
||||||||||
| ########################## SECURITY ####################### | ||||||||||
| FEATURES['ENABLE_MAX_FAILED_LOGIN_ATTEMPTS'] = False | ||||||||||
| FEATURES['SQUELCH_PII_IN_LOGS'] = False | ||||||||||
| FEATURES['PREVENT_CONCURRENT_LOGINS'] = False | ||||||||||
| ENABLE_MAX_FAILED_LOGIN_ATTEMPTS = False | ||||||||||
| SQUELCH_PII_IN_LOGS = False | ||||||||||
| PREVENT_CONCURRENT_LOGINS = False | ||||||||||
|
|
||||||||||
| ########################### Milestones ################################# | ||||||||||
| FEATURES['MILESTONES_APP'] = True | ||||||||||
| MILESTONES_APP = True | ||||||||||
|
|
||||||||||
| ########################### Entrance Exams ################################# | ||||||||||
| FEATURES['ENTRANCE_EXAMS'] = True | ||||||||||
| ENTRANCE_EXAMS = True | ||||||||||
|
|
||||||||||
| ################################ COURSE LICENSES ################################ | ||||||||||
| FEATURES['LICENSING'] = True | ||||||||||
| LICENSING = True | ||||||||||
|
|
||||||||||
|
|
||||||||||
| ########################## Courseware Search ####################### | ||||||||||
| FEATURES['ENABLE_COURSEWARE_SEARCH'] = True | ||||||||||
| FEATURES['ENABLE_COURSEWARE_SEARCH_FOR_COURSE_STAFF'] = True | ||||||||||
| ENABLE_COURSEWARE_SEARCH = True | ||||||||||
| ENABLE_COURSEWARE_SEARCH_FOR_COURSE_STAFF = True | ||||||||||
| SEARCH_ENGINE = 'search.elastic.ElasticSearchEngine' | ||||||||||
| SEARCH_COURSEWARE_CONTENT_LOG_PARAMS = True | ||||||||||
|
|
||||||||||
|
|
@@ -183,11 +182,11 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing | |||||||||
| ] | ||||||||||
|
|
||||||||||
| ########################## Dashboard Search ####################### | ||||||||||
| FEATURES['ENABLE_DASHBOARD_SEARCH'] = False | ||||||||||
| ENABLE_DASHBOARD_SEARCH = False | ||||||||||
|
|
||||||||||
|
|
||||||||||
| ########################## Certificates Web/HTML View ####################### | ||||||||||
| FEATURES['CERTIFICATES_HTML_VIEW'] = True | ||||||||||
| CERTIFICATES_HTML_VIEW = True | ||||||||||
|
|
||||||||||
|
|
||||||||||
| ########################## Course Discovery ####################### | ||||||||||
|
|
@@ -209,14 +208,14 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing | |||||||||
| 'language': LANGUAGE_MAP, | ||||||||||
| } | ||||||||||
|
|
||||||||||
| FEATURES['ENABLE_COURSE_DISCOVERY'] = False | ||||||||||
| ENABLE_COURSE_DISCOVERY = False | ||||||||||
| # Setting for overriding default filtering facets for Course discovery | ||||||||||
| # COURSE_DISCOVERY_FILTERS = ["org", "language", "modes"] | ||||||||||
| FEATURES['COURSES_ARE_BROWSEABLE'] = True | ||||||||||
| COURSES_ARE_BROWSEABLE = True | ||||||||||
| HOMEPAGE_COURSE_MAX = 9 | ||||||||||
|
|
||||||||||
| # Software secure fake page feature flag | ||||||||||
| FEATURES['ENABLE_SOFTWARE_SECURE_FAKE'] = True | ||||||||||
| ENABLE_SOFTWARE_SECURE_FAKE = True | ||||||||||
|
|
||||||||||
| # Setting for the testing of Software Secure Result Callback | ||||||||||
| VERIFY_STUDENT["SOFTWARE_SECURE"] = { | ||||||||||
|
|
@@ -230,14 +229,14 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing | |||||||||
|
|
||||||||||
|
|
||||||||||
| ########################## Shopping cart ########################## | ||||||||||
| FEATURES['ENABLE_COSMETIC_DISPLAY_PRICE'] = True | ||||||||||
| ENABLE_COSMETIC_DISPLAY_PRICE = True | ||||||||||
|
|
||||||||||
| ######################### Program Enrollments ##################### | ||||||||||
| FEATURES['ENABLE_ENROLLMENT_RESET'] = True | ||||||||||
| ENABLE_ENROLLMENT_RESET = True | ||||||||||
|
|
||||||||||
| ########################## Third Party Auth ####################### | ||||||||||
|
|
||||||||||
| if FEATURES.get('ENABLE_THIRD_PARTY_AUTH') and ( | ||||||||||
| if ENABLE_THIRD_PARTY_AUTH and ( | ||||||||||
|
||||||||||
| if ENABLE_THIRD_PARTY_AUTH and ( | |
| if globals().get('ENABLE_THIRD_PARTY_AUTH') and ( |
Copilot
AI
Sep 22, 2025
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.
[nitpick] With the removal of the shared FEATURES container, related feature flags are now standalone constants; consider adding a brief comment block or a consistent prefix (e.g., FEATURE_) to retain logical grouping and make future bulk operations (search, tooling) easier.
| SHOW_HEADER_LANGUAGE_SELECTOR = True | |
| # Feature flags (for devstack and development purposes) | |
| FEATURE_SHOW_HEADER_LANGUAGE_SELECTOR = True |
Copilot
AI
Sep 22, 2025
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.
[nitpick] With the removal of the shared FEATURES container, related feature flags are now standalone constants; consider adding a brief comment block or a consistent prefix (e.g., FEATURE_) to retain logical grouping and make future bulk operations (search, tooling) easier.
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.
Removing the parent FEATURES: key and promoting these entries to top-level is a breaking shape change for any loader logic expecting a FEATURES mapping. Confirm and update any configuration parsing code (or provide a migration path); if compatibility is required, consider keeping an empty FEATURES node or duplicating keys during a transition period.