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

Filter out statistics of deleted teams #11973

Merged
merged 3 commits into from
Mar 6, 2025

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Mar 5, 2025

Forgot about this case of deleted team on ranking page...

Either this or just delete the statistics when the team is deleted 🤔 That one sounds better how about both

@nanaya nanaya marked this pull request as draft March 5, 2025 16:50
@nanaya nanaya marked this pull request as ready for review March 6, 2025 01:14
@@ -30,6 +31,7 @@ public function testDelete(): void
$team->members()->create(['user_id' => User::factory()->create()->getKey()]);
Chat\Message::factory()->create(['channel_id' => $team->channel, 'user_id' => $team->leader_id]);
$team->applications()->create(['user_id' => User::factory()->create()->getKey()]);
$team->statistics()->create(['ruleset_id' => 0]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other team in the test should also have statistics (and probably add applications as well)

@nanaya
Copy link
Collaborator Author

nanaya commented Mar 6, 2025

I'll add that tomorrow...

(also the ranking page is currently occasionally broken btw)

@notbakaneko notbakaneko enabled auto-merge March 6, 2025 08:30
@notbakaneko notbakaneko merged commit 84b9ea4 into ppy:master Mar 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants