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

service: Add _configuration submodule #425

Merged
merged 5 commits into from
Sep 29, 2023
Merged

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Sep 29, 2023

What does this Pull Request accomplish?

Add a _configuration submodule, which reads configuration options from the environment or a .env file. In later PRs, this will be used to replace the examples' command-line parameters and ServiceOptions class.

Update _featuretoggles to share the python-decouple AutoConfig with _configuration.

Why should this Pull Request be merged?

The new create_session(s) API will use this.

What testing has been done?

Ran mypy and new unit tests.

@bkeryan
Copy link
Collaborator Author

bkeryan commented Sep 29, 2023

FYI @cfuentes-ni @rfriedma: This is my proposed replacement for the USE_SIMULATION variable as well as the hardcoded boardtype/model in _nifoo_helpers.py.

@github-actions
Copy link

Test Results

     12 files  ±  0       12 suites  ±0   2m 38s ⏱️ +9s
   282 tests +  5     216 ✔️ +  5    66 💤 ±0  0 ±0 
3 372 runs  +60  2 564 ✔️ +60  808 💤 ±0  0 ±0 

Results for commit 50d19c4. ± Comparison against base commit 1d1d060.

@bkeryan bkeryan merged commit 032ad4d into main Sep 29, 2023
17 checks passed
@bkeryan bkeryan deleted the users/bkeryan/configuration branch September 29, 2023 20:10
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.

4 participants