Remove profile value passing #279
Labels
Good First Issue!
Hacktoberfest
Small or non-core issues that could be worked on by Hacktoberfest participants
Priority: Low
Status: Available
Type: Maintenance
Projects
Detailed Description
There are a lot of places that expect the configuration to be passed in as a structure. Now that the configuration is stored in a public static module, it is no longer necessary to pass the values from module to module, but a lot of modules expect a copy of the config/profile to be passed in. This adds extra complexity to the code and confusion about the "proper" way to access profile values.
Context
This change is just to reduce complexity and increase readability.
Possible Implementation
The implementation is simple. Simply remove every reference to config. from the existing codebase and replace them with profile.get(, default), then remove every place that a module is specifically waiting for or passing a config.
This is pretty simple and would be a good way for someone to learn something about the structure of the code base. I am happy to provide additional support. Unfortunately, this is one of those projects that makes minor changes to a lot of files in this project.
The text was updated successfully, but these errors were encountered: