osu-web icon indicating copy to clipboard operation
osu-web copied to clipboard

Pinned scores for unloved maps persist

Open KommToby opened this issue 1 year ago • 1 comments

Example Profile: https://osu.ppy.sh/users/10609949 Corresponding Score: https://osu.ppy.sh/scores/1637404790

Not sure if this will cause issues as said beatmap has been changed since, and is now qualified for rank.

KommToby avatar May 29 '24 09:05 KommToby

Currently things are arguably correct, the score is preserved (as it should be, arguably), and is unranked / doesn't give pp.

The biggest problem that I see is that on rank, things happen to scores:

https://github.com/ppy/osu-web/blob/f417275e8ef125b8573fa53c15467e3f45ba2e3e/app/Models/Beatmapset.php#L640-L643

That says "remove" in both cases but the implementation is really "remove" for old tables and "unrank" for new, as far as I can tell:

https://github.com/ppy/osu-web/blob/f417275e8ef125b8573fa53c15467e3f45ba2e3e/app/Jobs/RemoveBeatmapsetBestScores.php#L55-L81 https://github.com/ppy/osu-web/blob/f417275e8ef125b8573fa53c15467e3f45ba2e3e/app/Jobs/RemoveBeatmapsetSoloScores.php#L69-L75

So I can imagine things breaking down on rank or after rank. Something like "we have this row for a legacy score that was preserved, but that score got actually deleted from the old tables, how is this possible", at which point manual (or semi-manual, via osu-queue-score-statistics commands like verify) corrective action may be taken to clean that up, at which point the pin will presumably break (I believe they're all migrated to solo_scores now?)

@peppy thoughts on how to handle?

bdach avatar May 29 '24 11:05 bdach

Hmm, so the part which can break is the verify command? And basically we don't want to remove rows from the new table where they are not present in the old table?

Would a rational solution be to turn off the deletion flow in the verify command by default? Or at least check for pins first?

peppy avatar Jul 18 '24 08:07 peppy

There are only few areas which osu-web queries old score tables now

nanaya avatar Jul 18 '24 08:07 nanaya

Or at least check for pins first?

This is probably the thing to do here yeah.

bdach avatar Jul 18 '24 09:07 bdach