Bug: Newly registered user displays incorrect wins and rating
Summary
Summary: After registering a new user on Codebattle, the profile in the top-right corner immediately displays non-zero statistics: 5432 wins and 1200 rating. These values are incorrect, as the user has not yet participated in any matches.
Reproduction steps
1. Go to https://codebattle.hexlet.io/
2. Click to "Sign up"
3. Fill out the registration form with the following and create new random user.
4. Click “Submit”
5. Once redirected to the game lobby, observe the stats in the top-right user panel
Expected result
A new user should have 0 wins and 0 rating displayed.
Actual result
The new user profile displays:
- Wins: 5432
- Rating: 1200 immediately after registration.
Browsers
Chrome
OS
Windows
Summary: Incorrect display of wins and rating
Environment: Web application, browser Google Chrome version 135.0.7049.115
Steps to reproduce:
- Go to page codebattle.hexlet.io/
- Press the button "Sign in"
- Select authorization via Github
Expected result: The user must have 0 wins and 0 games
Actual result: 207 wins and 1200 rating are displayed
Summary
The newly registered user has a non-zero rating: 5432 rank and 1200 rating. These values aren't correct because the user hasn't played a single match yet.
Reproduction steps
- Go to https://codebattle.hexlet.io/
- Click to "Sign up"
- Fill out the registration form and create new random user.
- Click “Submit”
- After being redirected to the game lobby, check the stats in the top-right user panel
Expected result
A new user should have 0 rank and 0 rating displayed.
Actual result
The new user profile displays:
Rank: 5432 Rating: 1200 just after registration.
Environment
Browser: Google Chrome 136.0.7103.93, (64 bit) OS: Windows 11 Pro 24H2 Codebattle version: 4bbb0df
Bug: Incorrect display of the new user's rating
Summary: The user has a non-zero rating after registration.
Reproduction steps
- Follow the link https://codebattle.hexlet.io/
- Click on Sign up
- Go through the registration process on the website
- Click on Submit
- Find your nickname and rating on the main page
Expected result A new user should have 0 wins and 0 rating displayed.
Actual result Incorrect rating values are displayed
Browser: Google Chrome Версия 135 (Официальная сборка), (64 бит) ОS: Windows 10