-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edx-username-changer plugin settings added (#424)
* feat: edx-username-changer plugin settings added * fix: remove CMS entrypoint docs: update licence year * fix: build file, entrypoint and plugin settings updated * docs: FEATURE flag setting added for lms.env.yml file * fix: FEATURES setting fixed
- Loading branch information
1 parent
fba0ecf
commit df9c5cb
Showing
6 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
2 changes: 1 addition & 1 deletion
2
src/edx_username_changer/LICENCE → src/edx_username_changer/LICENCE.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (C) 2022 MIT Open Learning | ||
Copyright (C) 2025 MIT Open Learning | ||
|
||
All rights reserved. | ||
|
||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python_sources(name="edx_username_changer_settings") |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# noqa: INP001 | ||
|
||
"""Settings to provide to edX""" | ||
|
||
|
||
def plugin_settings(settings): | ||
""" | ||
Populate common settings | ||
""" | ||
env_tokens = getattr(settings, "ENV_TOKENS", {}) | ||
|
||
# .. toggle_name: FEATURES['ENABLE_EDX_USERNAME_CHANGER'] | ||
# .. toggle_implementation: DjangoSetting | ||
# .. toggle_default: False | ||
# .. toggle_description: Enable the username changer feature | ||
# .. toggle_use_case: open_edx | ||
# .. toggle_creation_date: 2025-01-15 | ||
|
||
settings.FEATURES["ENABLE_EDX_USERNAME_CHANGER"] = env_tokens.get( | ||
"FEATURES", {} | ||
).get("ENABLE_EDX_USERNAME_CHANGER", False) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# noqa: INP001 | ||
|
||
"""Settings to provide to edX""" | ||
|
||
|
||
def plugin_settings(settings): | ||
""" | ||
Populate devstack settings | ||
""" | ||
settings.FEATURES["ENABLE_EDX_USERNAME_CHANGER"] = False |