-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some bugfixes and cleanup for actor config code.
* Make normalize_schemas() public. The caller (normally in the workflow) will read the schemas and then pass them to load() so it also needs to call normalize_schema() in between those two steps. * Emit separate warnings for unknown section names and unknown field names * Remove usage of added_field variable which was replaced in a refactor with using the dictionary of schemas (which have the same information as keys of nested dictionaries). * Remove some functions that have been rewritten after confirming that all of their functionality has been ported. * Add a comment specifically for what is happening with format_config() (Not needed for MVP). * Remove config_schemas from the RepositoryManager class. Instead, we will have any caller extract that information from RepositoryManager.actors. * Don't warn for every field in a section that isn't recognized. * Add both section and field to warning messages about unknown fields. * Make use of field instead of getting it from the schema dict again. * Fix name of the validate_field_type function.
- Loading branch information
Showing
2 changed files
with
33 additions
and
57 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