codebattle icon indicating copy to clipboard operation
codebattle copied to clipboard

Bug: Newly registered user displays incorrect wins and rating

Open MikVito opened this issue 8 months ago • 3 comments

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.

Image

Browsers

Chrome

OS

Windows

MikVito avatar Apr 17 '25 21:04 MikVito

Summary: Incorrect display of wins and rating

Environment: Web application, browser Google Chrome version 135.0.7049.115

Steps to reproduce:

  1. Go to page codebattle.hexlet.io/
  2. Press the button "Sign in"
  3. Select authorization via Github

Expected result: The user must have 0 wins and 0 games

Actual result: 207 wins and 1200 rating are displayed

Image

OsuQA avatar Apr 29 '25 16:04 OsuQA

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:

Image

Image

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

AkimGolang avatar May 18 '25 15:05 AkimGolang

Bug: Incorrect display of the new user's rating

Summary: The user has a non-zero rating after registration.

Reproduction steps

  1. Follow the link https://codebattle.hexlet.io/
  2. Click on Sign up
  3. Go through the registration process on the website
  4. Click on Submit
  5. 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

Persifona avatar May 27 '25 20:05 Persifona