Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team join requests not disappearing #10516

Open
VTChess opened this issue Feb 9, 2022 · 7 comments · Fixed by #10582
Open

Team join requests not disappearing #10516

VTChess opened this issue Feb 9, 2022 · 7 comments · Fixed by #10582
Labels

Comments

@VTChess
Copy link

VTChess commented Feb 9, 2022

There is a bug where the number of join requests for teams that you have to review doesn't go away in some cases. Here are screenshots from 2 of my friends as examples:

image (3)
image (4)

In this example, JoshHiban says he has had a notification for 4 team join requests for around a year, even though when he clicks on them, it says there are 0 requests to review. He does not know what initially caused this to occur, but he speculated that they were join requests for an old team that got closed.

This example happened recently to both myself and djchessdog. There was a titled player who had requested over a year ago to join one of our teams, but not long after, his account got closed. For the past year, we let his join request sit in our queue to review (it was still sitting there, even though though the titled player's account had been closed), but then yesterday, after what I assume was 1 year since the account was closed, the join request disappeared from our queue, but the notification of 1 join request has still remained.

@VTChess VTChess added the bug label Feb 9, 2022
@kraktus
Copy link
Member

kraktus commented Feb 9, 2022

My guess would that it’s related to legacy requests preceding #9743

@kraktus
Copy link
Member

kraktus commented Feb 20, 2022

Tested closing a team with pending requests, and could not reproduce, will investigate further.

@theherk
Copy link

theherk commented Nov 10, 2022

In reference to this forum post, I believe my account is in this condition. It isn't a problem, but you can reference that account if that aids the hunt.

@VTChess
Copy link
Author

VTChess commented Nov 10, 2022

I was the original poster of this issue, and my issue never actually did go away. I have continued to have a notification that I have a new Team request, but when I click on it, it says there are 0 join requests.

The issue in my case came from a titled player who requested to join our team, but then their account was closed shortly thereafter. The team leaders decided to leave his request to join our team as a "souvenir" of sorts, but then after 1 year, the join request suddenly went away, but the notification has always remained

@schlawg
Copy link
Collaborator

schlawg commented Nov 11, 2022

We should probably clear associated team join requests on account closure (when it happens) in the code, but that won't fix cases where it has already happened. VTChess's issue (and possibly theherk's as well) can be easily whack-a-moled by a prod db admin. A more general script could remove all suspended/closed/other accounts from existing team request collections.

@kraktus
Copy link
Member

kraktus commented Nov 11, 2022

Pretty sure those requests are already cleared when I checked the issue. I think it’s only an issue with older requests.

@schlawg
Copy link
Collaborator

schlawg commented Nov 11, 2022

does team_request objects get migrated to read only at some point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants