-
Notifications
You must be signed in to change notification settings - Fork 5
Refactor Configuration Handling #51
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
Conversation
DEVOPS-515 decrease_frequency_of_monitor
Support differing ee2 urls
This refactors the configuration handling to use a class instead of a dict. So this is a large change because this weaves through out the platform. There are a few minor flake8 fixes too but this is primarily what is needed to make the configuration change and fix tests.
Also fixed an error in the JobRunner init
…nto scanon/refactor_config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This review was more about code structure / etc vs. correctness, since I'm not at all an expert on this code base.
I went through the entire set of changes, but there's probably some stuff that I missed. This is a lot of comments already so I'll stop here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here re repetitive code
Co-authored-by: MrCreosote <MrCreosote@users.noreply.github.com>
Co-authored-by: MrCreosote <MrCreosote@users.noreply.github.com>
Co-authored-by: MrCreosote <MrCreosote@users.noreply.github.com>
…nto scanon/refactor_config
This refactors the configuration handling to use a class instead of a dict. So this is a large change because this weaves through out the platform.
JobRunner/config.py add a Config class. This is initialized by the CLI tools or modules. The config object is then passed off to the other modules. Many of the tests also needed to be updated since they were initializing a configuration dict before.
There are a few minor flake8 fixes too but this is primarily what is needed to make the configuration change and fix tests.