-
Notifications
You must be signed in to change notification settings - Fork 4.1k
refactor: Use derive_settings
to lazy load settings.
#36205
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
refactor: Use derive_settings
to lazy load settings.
#36205
Conversation
@feanil , this PR is ready as well. It is identical to your version of the PR, except:
|
Some of our settings depend on the values of other settings. Rather than explicitly looking up each one in the YAML settings file, we can simply derive them based on the setting in the YAML file after all the YAML settings have been loaded. Co-Authored-By: Feanil Patel <feanil@axim.org>
82a57f3
to
fc1a6f5
Compare
I have successfully verified this using dump_settings with both Tutor's yamls and the redacted prodlike yamls. FYI @dianakhuang . |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
Some of our settings depend on the values of other settings. Rather than explicitly looking up each one in the YAML settings file, we can simply derive them based on the setting in the YAML file after all the YAML settings have been loaded. Part of: openedx#36215 Co-Authored-By: Feanil Patel <feanil@axim.org>
Some of our settings depend on the values of other settings. Rather than explicitly looking up each one in the YAML settings file, we can simply derive them based on the setting in the YAML file after all the YAML settings have been loaded. Part of: openedx#36215 Co-Authored-By: Feanil Patel <feanil@axim.org>
Some of our settings depend on the values of other settings. Rather than explicitly looking up each one in the YAML settings file, we can simply derive them based on the setting in the YAML file after all the YAML settings have been loaded. Part of: #36215 Co-Authored-By: Feanil Patel <feanil@axim.org>
Description
Some of our settings depend on the values of other settings. Rather
than explicitly looking up each one in the YAML settings file, we can
simply derive them based on the setting in the YAML file after all the
YAML settings have been loaded.
Supporting information
Originally authored by @feanil here:
derived_settings
to lazy load settings. #36124BLOCKED by this derived_settings API improvement:
Part of:
Testing information
Same as #36192, but diff using this PR's branch.