-
Notifications
You must be signed in to change notification settings - Fork 910
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add globals feature for
OmegaConfigLoader
using a globals resolver (#…
…2921) * Refactor load_and_merge_dir() Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Try adding globals resolver Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Minor change Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Add globals resolver Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Revert refactoring Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Add test + remove self.globals Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Allow for nested variables in globals Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Add documentation Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Typo Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Add error message + test Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Apply suggestions from code review Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> * Split test into multiple tests Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Restrict the globals config_patterns Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Release notes Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Update docs/source/configuration/advanced_configuration.md Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> * Add helpful error message for keys starting with _ Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Enable setting default value for globals resolver Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Typo Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Move test for keys starting with _ to the top Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Fix cross ref link in docs Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> --------- Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> Co-authored-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com> Co-authored-by: Nok Lam Chan <nok.lam.chan@quantumblack.com>
- Loading branch information
1 parent
74b2a88
commit c9fc80a
Showing
6 changed files
with
201 additions
and
5 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
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
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
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