HF RL Explorer

Make CrewSwitchboardUseCase unit-testable by abstracting transaction management

Make CrewSwitchboardUseCase unit-testable by abstracting transaction management: a task in LegoFlow-SWE (Harbor dataset). The CrewSwitchboardUseCase currently performs multiple database operations within a single transaction. For example, join and leave require a transaction to keep the crew state…

The task

The `CrewSwitchboardUseCase` currently performs multiple database operations within a single transaction. For example, `join` and `leave` require a transaction to keep the crew state consistent. The implementation directly depends on a live database connection (Diesel’s `PgConnection` through `r2d2`), so **every unit…

Part of Lego-X/LegoFlow-SWE.