Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #893 +/- ##
===========================================
- Coverage 97.30% 97.29% -0.01%
===========================================
Files 402 403 +1
Lines 6450 6481 +31
Branches 841 844 +3
===========================================
+ Hits 6276 6306 +30
Misses 90 90
- Partials 84 85 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
PR Review: Add player auth migration API Overall this is a clean implementation with good test coverage. One functional bug and one missing validation found. Missing validation that the migrated alias is a Talo alias (Major) loadAliasWithAuth only checks that the alias belongs to a player in the game and that player.auth exists - it does not validate alias.service === PlayerAliasService.TALO. In games with merged players (a player who merged a Talo account with a Steam account), calling this endpoint with the Steam alias ID would:
A guard should be added in migrate.ts after the password check: trimmedService computed late and inconsistently (Minor) trimmedService is assigned at line 75 inside the transaction, but the TALO guard at line 56 already uses service.trim(). Computing trimmedService once before the transaction and reusing it in the TALO guard would be cleaner. Test Coverage No test covers passing a non-Talo alias (e.g. a merged player sending a Steam alias ID). Worth adding given the above. |
c66d970 to
46ef570
Compare
No description provided.