Skip to content
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

[WIP] Config refactoring #615

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

VukW
Copy link
Contributor

@VukW VukW commented Sep 10, 2024

Right now configuration process is quite a complex: settings are spread over two places (config.py and yaml profiles), both are rewritten multiple times during app init, with possible overriding by CLI params. At the same time some settings like UI, Auth, Comms objects are fixed just once at the very start of the app and cannot be reconfigured easily later.
However, for web-UI we aim to support a runtime change of profile / auth, so user can log in and use web-ui without restarting CLI command. For that I do need to refactor config init approach - and, at the same time, it's possible to simplify configuration init for the future usage.

Right now all settings are distributed among hardcoded (and updated during init) values at `config.py`, and dynamic (loaded from .yaml file) profile's `ConfigManager`.
So there is a confusion - which module is responsible for what. In future I'm going to move all dynamic values to `ConfigManager`, ensuring `settings` is just a hardcoded list of default init values and is never rewritten.
@VukW VukW requested a review from a team as a code owner September 10, 2024 09:23
@VukW VukW requested a deployment to testing-external-code September 10, 2024 09:23 — with GitHub Actions Waiting
Copy link
Contributor

github-actions bot commented Sep 10, 2024

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@VukW VukW requested a deployment to testing-external-code September 16, 2024 14:41 — with GitHub Actions Waiting
@VukW VukW requested a deployment to testing-external-code September 16, 2024 14:43 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant