Apps-android-commons: Category search does not work properly [current master]

Created on 20 Jun 2019  路  4Comments  路  Source: commons-app/apps-android-commons

Summary:

Searching for the exact category name does not output any results even though that category exists.

Steps to reproduce:

I searched for "Christchurch Botanic" and was told "No Categories Found". However that exact category does exist as per my search of only "Christchurch".

Screenshot_1561017509
Screenshot_1561017541

System logs:

Sorry, forgot to collect logs but it is 100% reproducible for me, so if you have difficulty reproducing I can collect them again.

Device and Android version:

Nexus S API 27 emulator, AND Samsung Galaxy S9

Commons app version:

Current master 2.10.2.452

bug

All 4 comments

I noticed this too, it is a very recent problem.
Screenshot_20190619-140838_Commons

Thanks for finding the issue @misaochan and @nicolas-raoul , I will look into it :-)

@misaochan I tried manually calling the api's with "Christchurch Botanic", for which I get the response

<allcategories>
<c xml:space="preserve">Christchurch Botanic Gardens</c>
</allcategories>

And the app as expected shows the search result for the same.
device-2019-06-23-160042

But for the search term christchurch botanic g, I actually gets 0 response from the api's

<query>
<allcategories/>
</query>
</api>

The keywords are case sensitive, and that is why, although Christchurch Botany has some results, but christchurch botanic g does not have any

A recap of my conversation with Ashish: It actually looks like the first letter of the first word is not case-sensitive, but the others are. That would explain both my and @nicolas-raoul 's findings.

We are planning to look at the old category implementation (prior to the upload process overhaul) to see how this was handled previously, since this issue appears to be new (but to the best of our knowledge the API hasn't changed).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jidanni picture jidanni  路  3Comments

nicolas-raoul picture nicolas-raoul  路  4Comments

Opsylac picture Opsylac  路  3Comments

neslihanturan picture neslihanturan  路  3Comments

madhurgupta10 picture madhurgupta10  路  3Comments