Skip to content

SI-27: Move Driver enum from configuration to primitives (EPIC #1669) #1908

Closed

Description

@josecelano

Subissue of EPIC #1669 — Overhaul: Packages

Problem

The Driver enum (Sqlite3, MySQL, PostgreSQL) is currently defined in torrust-tracker-configuration as a TOML deserialization type. However, it is a cross-cutting domain concept used by multiple packages. The duplication in tracker-core is a symptom of misplaced ownership.

Scope

  1. Add a decision to DECISIONS.md.
  2. Move the Driver enum definition from configuration to primitives.
  3. Re-export from configuration for backward compatibility.
  4. Remove the duplicate Driver enum from tracker-core.
  5. Update persistence-benchmark consumer.

Acceptance Criteria

  1. Driver is defined once in torrust-tracker-primitives and used by all consumers.
  2. No duplicate Driver enum exists in any package.
  3. No mapping code converts between two identical enums.
  4. cargo test --workspace passes.
  5. cargo machete passes.
  6. linter all passes.

Activity

  1. added
    Code Cleanup / Refactoring
    EPIC
    and removed
    EPIC
    on Jun 11, 2026
  2. self-assigned this
    on Jun 11, 2026
  3. added 2 commits that reference this issue on Jun 11, 2026
  4. added 3 commits that reference this issue on Jun 19, 2026
  5. added 3 commits that reference this issue on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Code Cleanup / Refactoring

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions