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

Ensure pp is populated before attempting to import a legacy score #167

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

peppy
Copy link
Member

@peppy peppy commented Nov 10, 2023

Should address ppy/osu#25397 (going forward, not existing scores; they will need to be manually fixed or we should just wait until re-importing everything).

Of note, this only works if we assume there is one single instance of osu-performance running (so processing is in a consistent incrementing fashion), else we may skip ahead with the lastId = Max() logic. But we haven't run multiple osu-performance instances in years so it's probably okay?

If we want to support the above case better, the checks would need to be moved out of the SQL query and into actual logic, incrementing lastId only to the last processed row, and reprocessing that batch until all are satisfied. Personally don't think it's worth it.

Note that I haven't tested this yet, but it's roughly based off existing logic in osu-performance (https://github.com/ppy/osu-performance/blob/3d403354321c5e0cd0cd9c9cf587d5b88a0ba78f/src/performance/Processor.cpp#L706-L710).

@peppy peppy merged commit ecbd1f5 into ppy:master Nov 14, 2023
3 checks passed
@peppy peppy deleted the fix-import-score-before-pp-population branch November 14, 2023 02:48
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 this pull request may close these issues.

1 participant