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

Configuration overhaul: clean and reorganize before migration to figment #590

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented May 17, 2024

Configuration overhaul: clean and reorganize before migration to figment.

  • Remove unused code.
  • Versioning for configuration.
  • Extract mods for sections in config toml file.

TrackerMode enum names and serialized values can not be changed now because that's a breaking change for the toml config file and also for the API (some endpoints return the tracker mode.

They should be changed in the future:

Enum variants (Index -> Tracker):

  • Public -> Public
  • Private -> Private
  • Whitelisted -> Listed
  • PrivateWhitelisted -> PrivateListed

Enum serialized values (Index -> Tracker):

  • Public -> public
  • Private -> private
  • Whitelisted -> listed
  • PrivateWhitelisted -> private_listed

Load and save configuration from a toml file in the Configuration struct
are not being used currently.
@josecelano josecelano self-assigned this May 17, 2024
@josecelano josecelano added this to the v3.0.0 milestone May 17, 2024
@josecelano josecelano requested a review from da2ce7 May 17, 2024 14:54
@josecelano josecelano marked this pull request as ready for review May 17, 2024 15:34
@josecelano
Copy link
Member Author

ACK 8675d6b

@josecelano josecelano merged commit c9b1d5a into torrust:develop May 17, 2024
12 of 13 checks passed
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.

Configuration overhaul: clean and reorganize before migration to Figment
1 participant