User Cleanup #35
Code-Over-Time
announced in
Tasks: Mid Level
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Category: Backend Development
Level: Mid
Description
There is a problem lurking in the Varcade Games server code.
If you take a look in the web portal server code you will find the following:
website/server/game_portal/game_portal/games/views.pyWhat is happening here is that after fetching the leaderboard from the stats service, the game portal server needs to fetch the user account for each user in the leaderboard. The stats service only stores user IDs, so this is the point where we can fetch the actual name and populate the response for the client.
This code also handles the case where there is a user ID in the leaderboard data returned from the stats server, but NOT in the game portal database.
This can happen if a user creates an account, registers a score on the leaderboard, deletes their account.
There are two problems with this:
We need to update our services so that users are removed from all leaderboards if their account is removed.
We can keep their game stats if they come back in the future, as these are per player so it doesn't matter if they hang around - it won't affect other players. But we need to clean out the leaderboards.
Deliverable
Acceptance Criteria
Task Tips!
signalswill be useful here. We already use this functionality to create a user profile after an account is created, seewebsite/server/game_portal/game_portal/profiles/models.pyBeta Was this translation helpful? Give feedback.
All reactions