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

Include user score position when indexing playlist item scores #11354

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

bdach
Copy link
Contributor

@bdach bdach commented Jul 24, 2024

Needed for daily challenge (without this client can't show position numbers for the user score on the leaderboard).

A second review for performance implications is probably best-advised, this monkey just fix no number showing with hammer. I tried to ask once but got no reply.

ScoreTransformer::MULTIPLAYER_BASE_INCLUDES
[
...ScoreTransformer::MULTIPLAYER_BASE_INCLUDES,
'position',
Copy link
Contributor Author

@bdach bdach Jul 24, 2024

Choose a reason for hiding this comment

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

I can maybe skip this one and hardcode a 1..50 position client-side if it helps. (Does mean we would require a client deploy for daily challenge to go live though.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah this will cause as many additional queries as there are scores

Copy link
Contributor Author

@bdach bdach Jul 24, 2024

Choose a reason for hiding this comment

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

Have force-pushed this out.

ppy/osu#29036 would be the client-side solution.

Needed for daily challenge (without this client can't show position
numbers for the user score on the leaderboard).
@bdach bdach force-pushed the multiplayer-include-position branch from 0ec9c56 to d77b27b Compare July 24, 2024 06:53
@bdach bdach changed the title Include position when indexing playlist item scores Include user score position when indexing playlist item scores Jul 24, 2024
bdach added a commit to bdach/osu that referenced this pull request Jul 24, 2024
Only doing this client-side, because doing this server-side is
expensive:

	ppy/osu-web#11354 (comment)
@nanaya nanaya enabled auto-merge July 24, 2024 07:41
@nanaya nanaya merged commit c291e8d into ppy:master Jul 24, 2024
3 checks passed
@bdach bdach deleted the multiplayer-include-position branch July 24, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants