-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Upon deletion request, notification should be sent to uploader, not author #3147
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
During the past 2 weeks I noticed a malfunction that might be a bug of this app: If a user creates a deletion request the notification is not sent to the uploader as it should be but to the name the 'author' field contains. If author and uploader are the same that doesn't matter but if the author (for example an author name imported from flickr) doesn't have a user account on Commons the notification fails. One of several examples can be seen here: https://commons.wikimedia.org/wiki/User_talk:David_W._Carmichael --Achim55 @nicolas-raoul: This bug is a real problem. I don't like to fix almost daily the bad results on Commons. Best, Achim55 (Sysop on Commons) Next hit: https://commons.wikimedia.org/wiki/User_talk:Luigi_Novi Next hit: https://commons.wikimedia.org/wiki/User_talk:D%C3%A9partement_des_Hauts-de-Seine |
Sorry, seems like we missed this (I was only notified of the ping today). Yes, we should be able to fix this shortly. Just to be clear what is needed - for instance, for https://commons.wikimedia.org/wiki/File:8.1.19VaughanChiangByLuigiNovi30.jpg we should send the notification to User:Nightscream, correct? |
Correct, thank you. |
Thanks for the confirmation, this will be included in the next release. |
Hello I found this lines apps-android-commons/app/src/main/java/fr/free/nrw/commons/contributions/Contribution.java Line 178 in 02f5cda
The previous line belongs to the method called in this line: apps-android-commons/app/src/main/java/fr/free/nrw/commons/upload/UploadClient.java Line 60 in 02f5cda
Initially called from here apps-android-commons/app/src/main/java/fr/free/nrw/commons/upload/UploadService.java Line 193 in 02f5cda
which looks kind of fishy. I mean, if we are providing the creator value to the user field by default. In the response from the API one can see something like this: <a href="http://commons.wikimedia.org/wiki/User:Sanjay_ach" title="User:Sanjay ach">Sanjay ach</a> |
Can someone help in summarising the issue for me? I am confused because of @IgnacioGarcia198's comment. Is there an issue while uploading the picture or is there an issue while nominating a file for deletion? Based on the initial comments posted on this issue thread, my understanding is that for https://commons.wikimedia.org/wiki/File:8.1.19VaughanChiangByLuigiNovi30.jpg, the app should try to notify, As of now, the app sees the following value and picks the text instead of title/user url.
|
@maskaravivek I was checking in the apps-android-commons/app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.java Line 114 in 891d9ec
And after following for a while where the value of user variable was coming from, I ended up thinking it is coming from the backend so it might be the case the creator was saved as the user in the backend. (I do not know much about this backend so cannot say anything concluding).
|
Yes, this is correct according to @Achim55 's reply to me. So we should pick the title/user url, not the text.
Nominating the file for deletion. |
As I can't find this in the documentation (but now here on Issues on a screenshot) I reported here: https://phabricator.wikimedia.org/T232142 (closed because of this).
Edit: The relevant code seems here:
apps-android-commons/app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.java
Line 116 in 11d3618
It seems very false to take the creator of the file (but I don't get the code on
apps-android-commons/app/src/main/java/fr/free/nrw/commons/Media.java
Line 337 in 5865d59
As a maintainer of the desktop version, I can say there is an Api request needed to get the list of uploaders (here it seems there is only taken a single user/string, but I don't understand Java really).
The text was updated successfully, but these errors were encountered: