You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a player logs in they can see friend only games for people who don't have them as friends, and they can see games of people who have foed them.
They will not receive any updates about those games causing them to appear as "ghost lobbies" that never go away.
Solution
Fixing it should be as simple as adding a filter condition that calls is_visible_to_player to the list comprehension in send_game_list.
Tests
We should add at least the following tests:
A test in tests/integration_tests/test_server.py that verifies that players can't see foes games and can't see games outside of their rating range when logging in.
A test in tests/integration_tests/test_matchmaker.py that verifies that players can still launch matchmaker games against foes.
A test in tests/unit_tests/test_lobbyconnection.py that verifies the behavior of send_game_list.
The text was updated successfully, but these errors were encountered:
Problem
When a player logs in they are sent a list of all open games here:
server/server/lobbyconnection.py
Lines 229 to 233 in 4dd4c92
However, there are certain visibility rules that are followed in consequent broadcasted game updates here:
server/server/__init__.py
Lines 174 to 180 in 4dd4c92
This causes 2 problems:
Solution
Fixing it should be as simple as adding a filter condition that calls
is_visible_to_player
to the list comprehension insend_game_list
.Tests
We should add at least the following tests:
tests/integration_tests/test_server.py
that verifies that players can't see foes games and can't see games outside of their rating range when logging in.tests/integration_tests/test_matchmaker.py
that verifies that players can still launch matchmaker games against foes.tests/unit_tests/test_lobbyconnection.py
that verifies the behavior ofsend_game_list
.The text was updated successfully, but these errors were encountered: