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

Player autocomplete, return bad request for usernames shorter than 3 characters #13806

Merged
merged 4 commits into from
Oct 22, 2023

Conversation

kraktus
Copy link
Member

@kraktus kraktus commented Oct 21, 2023

All client-code for Lichess already check that and lichobile does too: https://github.com/lichess-org/lichobile/blob/663e69fab10e4267a9b3369febe85d1363816ba2/src/ui/players/PlayersCtrl.ts#L51

prompted by lichess-org/berserk#48.

Note that currently it does sometimes return a result (undocumented), hitting the userIdsLikeCache cache, so maybe this is intended.

new version of #13803

…characters

All client-code for Lichess already check that and lichobile does too: https://github.com/lichess-org/lichobile/blob/663e69fab10e4267a9b3369febe85d1363816ba2/src/ui/players/PlayersCtrl.ts#L51

prompted by lichess-org/berserk#48.

Note that currently it does sometimes return a result (undocumented), hitting the `userIdsLikeCache` cache, so maybe this is intended.
@ornicar ornicar merged commit 5e10db7 into lichess-org:master Oct 22, 2023
2 checks passed
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