Closed
Description
Feature Name
Overview
Update various DTOs related to player dashboard stats.
Dependencies
None.
Notes
To accurately test this, a local copy of statistics will be needed. To obtain this, you must do the following:
- Clone the otr-processor repo and set it up
- Setup the DataWorkerService appsettings configuration
- In the DataWorkerService config, disable OsuTrack and Osu under "Players" and enable "Tournaments"
- Run the script under
scripts/sql/dev/accept-all-pre.sql
- Let the
DataWorkerService
run until all tournaments have aProcessingStatus
of 4. - Stop the data worker, then run the otr-processor, it should generate ratings and stats for each verified tournament.
- Run the
DataWorkerService
again until all tournaments have aProcessingStatus
of 5.
Tasks
- Rename
PlayerStatsDTO
toPlayerDashboardStatsDTO
- In
PlayerFrequencyDTO
, remove all fields exceptFrequency
and replace the removed fields with aPlayerCompactDTO
representing the teammate or opponent. - Change the
PlayerDashboardStatsDTO
to store anIEnumerable<PlayerRatingChartDataPointDTO>
instead of aPlayerRatingChartDTO
- If it does not exist, create a
MatchCompactDTO
which contains basic information about a match (no navigations). - Replace the
int? MatchId
field onRatingAdjustmentDTO
with a newMatchCompactDTO? Match
field. - Add a
Mods
field toModStatsDTO
to indicate which mod it belongs to. - Return a list of
ModStatsDTO
dynamically populated instead of a static DTO. - Rename
ModStatsDTO
toPlayerModStatsDTO
and document to reflect that this DTO should only be used to represent a player's mod stats rather than overall stats for the mod.
Metadata
Metadata
Assignees
Labels
No labels