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: replace primitive types in configuration with richer types #600

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented May 22, 2024

Replace primitive types in configuration with richer types.

Subtasks

  • In torrust_index::config::v1::auth::Auth
  • In torrust_index::config::v1::database::Database
  • In torrust_index::config::v1::mail::Mail
  • In torrust_index::config::v1::net::Network
  • In torrust_index::config::v1::tracker::Tracker
  • In torrust_index::config::v1::Settings

@josecelano josecelano self-assigned this May 22, 2024
@josecelano josecelano force-pushed the 599-configuration-overhaul-replace-primitive-types-in-configuration-with-richer-types branch from be35927 to fc5adf4 Compare May 22, 2024 12:31
@josecelano josecelano force-pushed the 599-configuration-overhaul-replace-primitive-types-in-configuration-with-richer-types branch from 23888cf to ddbab07 Compare May 22, 2024 12:57
We will use the type `Mailbox` in the configuration and it needs to be
serializable.
We were using a cusomt type but sqlx defines it as a URL. WE can
validate this type in the configration and let the app domain validate
if the connection URL is a valid one. For example, if the app supports
the database driver. Otherwise we have to change this first level
valitation anytime we support a new DB.
@josecelano josecelano force-pushed the 599-configuration-overhaul-replace-primitive-types-in-configuration-with-richer-types branch from d40311d to b1d5267 Compare May 23, 2024 14:37
@josecelano josecelano force-pushed the 599-configuration-overhaul-replace-primitive-types-in-configuration-with-richer-types branch from 7900f12 to a95abfd Compare May 24, 2024 07:31
@josecelano josecelano force-pushed the 599-configuration-overhaul-replace-primitive-types-in-configuration-with-richer-types branch from a95abfd to 8e53982 Compare May 24, 2024 07:42
@josecelano
Copy link
Member Author

ACK ec1d39a

@josecelano josecelano marked this pull request as ready for review May 24, 2024 07:51
@josecelano josecelano merged commit a1b5350 into torrust:develop May 24, 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: replace primitive types in configuration with richer types
1 participant