feat: track match #8
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Superkooka/lol-leaderboard!8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/fetch-matches"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR IMMONDE
Il faut l'ORM, injection de service et un Deserializer pour riot-api mais il faut un merge rapide. ça viendra après.
Idem pour les custom qui peuvent être track uniquement en live via spectator api
WIP: feat(fetch-match): trait for get Puuidto WIP: feat: track match@ -0,0 +509,4 @@}if (!$win && str_ends_with($currentStreak, 'lose')) {return "x" . $increment($currentStreak) . ' lose';loses
@ -0,0 +501,4 @@}if ($win && str_ends_with($currentStreak, 'win')) {return "x" . $increment($currentStreak) . ' win';wins
@ -0,0 +155,4 @@$matchData['profile_icon_id'],);$resultLabel = $matchData['win'] ? 'won' : 'loss';handle remake
@ -0,0 +99,4 @@/** @var array<string, array<string, mixed>> $matchDataByPuuid */$matchDataByPuuid = [];foreach ($puuidsInMatch as $puuid) {$matchDataByPuuid[$puuid] = $this->riotAPI->match()->getMatch($matchId, $puuid);don't get match twice
@ -0,0 +112,4 @@$rankData = $this->fetchRank($puuid, $queueType, (int) $matchData['match_ended'], $output);$lpGain = "remake" === $matchData['win_condition'] ? 0 : $this->computeLpGain($pdo, $puuid, $queueType, $rankData, (bool) $matchData['win']);$lpIncertain = 0 === $lpGain && 'remake' !== $matchData['win_condition'];only if more than two match to fetch?
Currently do not support 0LP compensation on AFK or Aegis protected (B+ or more when autofiled)
@ -0,0 +121,4 @@$streak = $this->computeStreak($pdo, $puuid, $queueType, (bool) $matchData['win'], $matchData['win_condition']);$rankData = $this->fetchRank($puuid, $queueType, (int) $matchData['match_ended'], $output);improve handeling of non-classed queue
WIP: feat: track matchto feat: track match71b19ed980to9c0aaf5586@ -0,0 +123,4 @@$rankData = $this->fetchRank($puuid, $queueType, (int) $matchData['match_ended'], $output);$lpGain = "remake" === $matchData['win_condition'] ? 0 : $this->computeLpGain($pdo, $puuid, $queueType, $rankData, (bool) $matchData['win']);$lpIncertain = 1 > ($untrackedLPGameCountByPuuid[$puuid] ?? 0);outdated, fix needed
@ -0,0 +183,4 @@'win' => $matchData['win'] ? 1 : 0,'win_condition' => $matchData['win_condition'],'streak' => $streak,'role' => $matchData['role'],role harmonization needed
2c724a849etoe5eb969693