-
Notifications
You must be signed in to change notification settings - Fork 920
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 <[email protected]> * Try adding globals resolver Signed-off-by: Ankita Katiyar <[email protected]> * Minor change Signed-off-by: Ankita Katiyar <[email protected]> * Add globals resolver Signed-off-by: Ankita Katiyar <[email protected]> * Revert refactoring Signed-off-by: Ankita Katiyar <[email protected]> * Add test + remove self.globals Signed-off-by: Ankita Katiyar <[email protected]> * Allow for nested variables in globals Signed-off-by: Ankita Katiyar <[email protected]> * Add documentation Signed-off-by: Ankita Katiyar <[email protected]> * Typo Signed-off-by: Ankita Katiyar <[email protected]> * Add error message + test Signed-off-by: Ankita Katiyar <[email protected]> * Apply suggestions from code review Co-authored-by: Merel Theisen <[email protected]> * Split test into multiple tests Signed-off-by: Ankita Katiyar <[email protected]> * Restrict the globals config_patterns Signed-off-by: Ankita Katiyar <[email protected]> * Release notes Signed-off-by: Ankita Katiyar <[email protected]> * Update docs/source/configuration/advanced_configuration.md Co-authored-by: Merel Theisen <[email protected]> * Add helpful error message for keys starting with _ Signed-off-by: Ankita Katiyar <[email protected]> * Enable setting default value for globals resolver Signed-off-by: Ankita Katiyar <[email protected]> * Typo Signed-off-by: Ankita Katiyar <[email protected]> * Move test for keys starting with _ to the top Signed-off-by: Ankita Katiyar <[email protected]> * Fix cross ref link in docs Signed-off-by: Ankita Katiyar <[email protected]> --------- Signed-off-by: Ankita Katiyar <[email protected]> Co-authored-by: Merel Theisen <[email protected]> Co-authored-by: Juan Luis Cano Rodríguez <[email protected]> Co-authored-by: Nok Lam Chan <[email protected]>
- 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