-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Categories aren't added #310
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
Comments
Hm, I just tested the latest version again and could not reproduce your bug. Does it repeatedly fail to categorize any image or is it just this one? |
I've just uploaded another one - same thing. |
Changed device to English - same thing |
Wow, interesting. @AtaZh what version of the app are you using? Do you remember if categories worked for you prior to this version? |
Ah, okay, I think I might have reproduced this issue. It seems that categories are never submitted along with the file, but rather added later (e.g. my contribution history https://commons.wikimedia.org/wiki/Special:Contributions/Misaochan ) . Not sure why this is done, I'll have to delve into the preexisting code to see. But it seems that in some cases, like @AtaZh 's submissions and a few of the files I submitted, the 'extra step' doesn't happen at all, and thus no categories are added. |
I'm pushing a fix that I think might solve the problem (mostly just reverting a change that I made to the relevant code). Can't check whether or not it works yet though, since the category addition can take up to several hours after submission. If it doesn't work, I'll try to contact the original dev to ask. |
Seems to work on my phone: https://commons.wikimedia.org/wiki/File:Christchurch_Botanic_Gardens_2.jpg Hope it works for you guys as well. |
Is anyone still experiencing this issue? |
I figured out why categories aren't submitted with the original file but are submitted as a modification later - it's because uploading starts immediately when the picture is selected, whereas categories are selected after that. So unless we only start uploading when categories have all been selected, this is necessary. I still haven't figured out why it 'misses' the modification sometimes, and why it takes so long sometimes. |
Another user is having issues; https://commons.wikimedia.org/wiki/File:Plat_tunisien_de_sauce_d%27%C3%A9pinards_et_de_viande,_21_f%C3%A9vrier_2017.jpg I don't think this will be an easy fix but we should put it on the priority list. |
The user has informed us that all his categories were added a few days later, lol. We should probably try to talk to yuvipanda about this. |
@misaochan - Is this still a bug that needs to be addressed? |
I'm still experiencing this; see https://commons.wikimedia.org/w/index.php?title=File:Hari-kondabolu-onstage_2.jpg&oldid=274778522 . |
@AtaZh and @brainwane , thanks for letting us know! |
Hi, I am not getting categories, either, although the files were saved from the category page in the app. The images are always uploaded but the ctg is not, even after 2 days. Example: https://commons.wikimedia.org/wiki/File:%C4%8Cesk%C3%BD_Krumlov,_PP_Cvi%C4%8D%C3%A1k.jpg, uploaded as "Uncategorized" (ctg added by myself 2 days later). The same thing happened today (uploaded image w/o the ctg). Using verion 2.7.2, update requests always allowed. |
Do you mean that categories are never saved? Would you mind pressing "menu > settings > send log file" 5 seconds after having choosing the categories and pressing the floppy icon, and then a minute after? Thanks! The best would be to sniff local traffic, you could try this using one of the methods described at https://stackoverflow.com/questions/41152974/whats-the-best-way-to-capture-packets-sent-and-received-by-my-own-android-app |
@nicolas-raoul |
Hmmm. I looked through the log file and unfortunately I can't find anything there that would help pinpoint the problem. :/ As this has been a longstanding and difficult-to-solve problem that causes users a lot of inconvenience, I would like to raise again the possibility of solving this issue by simply modifying our implementation such that categories are sent alongside with the image upload as part of the template, instead of as a modification afterwards. I do understand that the downside of this would be that the image upload would begin later - instead of starting as soon as the title and desc are submitted (i.e. before the categories are selected), it would only start AFTER the categories are selected. However, I personally feel that this is unlikely to impact the user too much, since they can start another upload or do whatever else they want with the app while the first image is uploading. From a user point of view, does it really matter that the upload finishes 30 seconds later, if they aren't having to wait for it? What do you guys think? |
I believe @misaochan's solution is implemented in new upload flow, so this shouldn't happen any more. Please reopen if it does. |
While struggling with #307 I uploaded image with Ukrainian interface. Now I see that file is not categorised.

https://commons.wikimedia.org/w/index.php?title=File:Чорнобривці_.jpg&oldid=210922719
Though I did check three categories from the suggestions:
The text was updated successfully, but these errors were encountered: