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

User search doesn't distinguish jagernaut from Jagernaut #413

Open
Ustilago opened this issue Jun 25, 2019 · 4 comments
Open

User search doesn't distinguish jagernaut from Jagernaut #413

Ustilago opened this issue Jun 25, 2019 · 4 comments

Comments

@Ustilago
Copy link

Hi,

User search url http://www.missingmaps.org/users/#/ doesn't distinguish two users only differing by the first letter being uppercase or lowercase : both Jagernaut and jagernaut shows the osm user jagernaut.

@habi
Copy link

habi commented Oct 16, 2019

Same for me with Habi and habi...

@britiger
Copy link

Same if you looking for Christopher you get christopher
osm.org has case-sensitive names!

@britiger
Copy link

britiger commented Jan 8, 2020

Maybe I've found the source of the problem here.

In the user part of the site it calls an API here:
https://osm-stats-production-api.azurewebsites.net/users/Christopher
see: https://github.com/MissingMaps/users/blob/8b98ca0d4551a79260bcb9c8c8093c926921b33a/src/containers/User.js#L18

The root source is here, where the name will give with toLowerCase:
https://github.com/AmericanRedCross/osm-stats-api/blob/e8cbdd9826e115fab849792d6a8c06fe02f62ee9/routes/user.js#L59

My data seams to be already in database, if I serach for a specific tag I used before, I can found myself with correct case and matching user_id:
https://osm-stats-production-api.azurewebsites.net/top-users/bikeparking

@danbjoseph
Copy link
Member

@ramyaragupathy @dakotabenjamin - is this stuff on your radar at all?

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

No branches or pull requests

4 participants