torrust / torrust-tracker

A modern and feature-rich (private) BitTorrent tracker.
https://torrust.com
GNU Affero General Public License v3.0
339 stars 40 forks source link

Config overhaul: add version and namespace to the configuration #947

Closed josecelano closed 6 days ago

josecelano commented 6 days ago

Add version to the configuration. It will fail if the provided version is not supported.

version = "2"

It only supports the exact match '2'.

codecov[bot] commented 6 days ago

Codecov Report

Attention: Patch coverage is 66.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 77.36%. Comparing base (ddd73ca) to head (60c6876).

Files Patch % Lines
packages/configuration/src/lib.rs 67.85% 9 Missing :warning:
packages/configuration/src/v2/mod.rs 60.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #947 +/- ## =========================================== - Coverage 77.40% 77.36% -0.04% =========================================== Files 183 183 Lines 9675 9707 +32 =========================================== + Hits 7489 7510 +21 - Misses 2186 2197 +11 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

josecelano commented 6 days ago

ACK 60c68762b64b7b909987fc6002447af7c823adbe