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

Config overhaul: migrate to figment #850

Closed
6 tasks done
josecelano opened this issue May 9, 2024 · 0 comments · Fixed by #808
Closed
6 tasks done

Config overhaul: migrate to figment #850

josecelano opened this issue May 9, 2024 · 0 comments · Fixed by #808
Assignees
Labels
Code Cleanup / Refactoring Tidying and Making Neat

Comments

@josecelano
Copy link
Member

josecelano commented May 9, 2024

Parent issue: #401

The figment crate provides some functionalities we want to have, like:

  • Overwrite and merge config options from different sources.
  • Allow users to use default values and only provide values that they want to overwrite.

Subtasks

  • Implement a new configuration mod with Figment.
  • Reorganize configuration mods creating new submods for config file sections.
  • Introduce versioning for configuration, so that we can make breaking changes to the configuration in the future.
  • Replace in production the configuration with the new Figment implementation.
  • Use Default trait for config sections (not only root config).
  • Allow users not to provide values when defaults are OK for them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup / Refactoring Tidying and Making Neat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant