Skip to content

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

Closed
AtaZh opened this issue Oct 26, 2016 · 21 comments
Closed

Categories aren't added #310

AtaZh opened this issue Oct 26, 2016 · 21 comments

Comments

@AtaZh
Copy link
Contributor

AtaZh commented Oct 26, 2016

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:
screenshot_2016-10-26-14-08-57

@misaochan
Copy link
Member

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?

@misaochan misaochan added the bug label Oct 27, 2016
@AtaZh
Copy link
Contributor Author

AtaZh commented Oct 27, 2016

I've just uploaded another one - same thing.
https://commons.wikimedia.org/?curid=52554328

@AtaZh
Copy link
Contributor Author

AtaZh commented Oct 27, 2016

Changed device to English - same thing
https://commons.wikimedia.org/wiki/File:Monastery_hill.jpg

@misaochan
Copy link
Member

Wow, interesting. @AtaZh what version of the app are you using? Do you remember if categories worked for you prior to this version?

@misaochan
Copy link
Member

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.

@misaochan
Copy link
Member

misaochan commented Oct 28, 2016

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.

@misaochan
Copy link
Member

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.

@misaochan
Copy link
Member

Is anyone still experiencing this issue?

@misaochan
Copy link
Member

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.

@misaochan
Copy link
Member

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.

@misaochan
Copy link
Member

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.

@psh
Copy link
Collaborator

psh commented Jul 29, 2017

@misaochan - Is this still a bug that needs to be addressed?

@misaochan
Copy link
Member

@psh It hasn't happened recently for me, but not sure. Has anyone else experienced this recently? @AtaZh ?

@AtaZh
Copy link
Contributor Author

AtaZh commented Aug 9, 2017

Still there

@brainwane
Copy link

@misaochan
Copy link
Member

@AtaZh and @brainwane , thanks for letting us know!

@Czeva
Copy link

Czeva commented Jul 9, 2018

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.

@nicolas-raoul
Copy link
Member

@Czeva

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

@Czeva
Copy link

Czeva commented Jul 10, 2018

@nicolas-raoul
Well, every time I used the app, no ctg was uploaded although it was added before upload, now the third time in a row. I did my best to send the log from my phone but had to use a different email address (gmail) than the one I had registered here with. The methods mentioned above are, I'm afraid, a bit difficult, sorry.

@misaochan
Copy link
Member

misaochan commented Jul 10, 2018

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?

@domdomegg
Copy link
Member

I believe @misaochan's solution is implemented in new upload flow, so this shouldn't happen any more. Please reopen if it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants