Skip to content

Review: No thanks given despite "Sending Thanks: Success" #2744

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
nicolas-raoul opened this issue Mar 25, 2019 · 47 comments
Closed

Review: No thanks given despite "Sending Thanks: Success" #2744

nicolas-raoul opened this issue Mar 25, 2019 · 47 comments

Comments

@nicolas-raoul
Copy link
Member

As part of the review I performed, I chose to thank the uploader (why not?), and a notification tells me that it worked:
Screenshot_20190325-145038
But when I look at https://www.mediawiki.org/wiki/Special:Log/thanks I do not see my thank (it was two hours ago):
Screenshot from 2019-03-25 16-35-21

@nfatma
Copy link
Contributor

nfatma commented Mar 30, 2019

Can I work on this issue?

@maskaravivek
Copy link
Member

Sure. Assigned to @nfatma

@nfatma
Copy link
Contributor

nfatma commented May 8, 2019

I have been working on this issue for quite long. It seems to me that the API calling and use is perfect. Also when I was trying to make Request https://commons.wikimedia.org/w/api.php?action=thank&revid=108006&source=diff&token=8f9706723e33af5c950b628dceb6f7555cd2a2f0+\ via API sandbox I am getting the below error:

{
"error": {
"code": "mustpostparams",
"info": "The following parameter was found in the query string, but must be in the POST body: token.",
"*": "See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
},
"servedby": "mw1346"
}

@neslihanturan
Copy link
Collaborator

neslihanturan commented May 8, 2019

Hi @nfatma can you copy the request url taken from sandbox here?
image

@nfatma
Copy link
Contributor

nfatma commented May 9, 2019

sure @neslihanturan

/w/api.php?action=thank&format=json&token=34a419c2852c0e298652b8199193240c5cd3e626%2B%5C&source=diff

and here I am getting this:
{
"error": {
"code": "missingparam",
"info": "One of the parameters "rev" and "log" is required.",
"*": "See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
},
"servedby": "mw1225"
}

@neslihanturan
Copy link
Collaborator

neslihanturan commented May 9, 2019

I have been working on this issue for quite long. It seems to me that the API calling and use is perfect.

Can you also share related code lines that your sentence above is about? So that I can help

I found it @nfatma

@nicolas-raoul
Copy link
Member Author

@nfatma Are you still working on this issue? What are your findings? What would be the correct URL to make it work? Thanks :-)

@chaytanyasinha
Copy link

Well I have a question that the "Thanks" message is sent via mail or is it a notification on the application?

@nicolas-raoul
Copy link
Member Author

nicolas-raoul commented Nov 25, 2019 via email

@chaytanyasinha
Copy link

what is the language used in webapp

@neslihanturan
Copy link
Collaborator

Hey @chaytanyasinha , our app facilities using https://commons.wikimedia.org/ from android devices. When you click "view in browser" , you will see the image on browser.

@chaytanyasinha
Copy link

Yes @neslihanturan,I opened the webapp in my mobile browser.Can you please tell me in which language are the api written for the issue.

@neslihanturan
Copy link
Collaborator

We are using MediaWiki API for this purpose. However, we probably shouldn't need to edit the API for this issue. So, I can't understand why you need the langugage of the APı. Please make sure you read our contributors documents beforehand, you can find more information about APIs we used there.

I think for this issue we need help with investigation. If you are able to reproduce the issue please share the details here, as @nicolas-raoul did, so that we can find the solution.

@chaytanyasinha
Copy link

I did reproduced the issue and updated about it in the earlier comments @neslihanturan.

@neslihanturan
Copy link
Collaborator

Sorry @chaytanyasinha I can't see it. Can you please share the link of the comment you mentioned?

@chaytanyasinha
Copy link

Sorry @neslihanturan,I got confused actually I updated about the reproduction of issue in the issue #3202 and the link of the comment is: #3202 (comment)

@neslihanturan
Copy link
Collaborator

Thanks for the update @chaytanyasinha , can you add more info toy our test though? There are some points I couldn't understand about the comment you linked:
1 - Did you send thank or did you nominate for deletion or did you do both?
2- Is your thank succeed and given, or it succeeded but not given as described in this issue?

@chaytanyasinha
Copy link

@neslihanturan Actually I did thank for the first it succeeded but it was showing a progress in notification bar so just to test I nominated a picture for deletion and it worked on the first go.
So,I concluded that there is an issue in sending thanks as it shows it succeeded but it's still in progress according to the notification bar and it's not sent in real.

@neslihanturan
Copy link
Collaborator

Notification is not reliable to verify thank is worked or not, instead you should check:

But when I look at https://www.mediawiki.org/wiki/Special:Log/thanks I do not see my thank (it was two hours ago)...
as written in @nicolas-raoul 's comment. If you did this on beta cluster, you should check this on beta.

@chaytanyasinha
Copy link

chaytanyasinha commented Nov 25, 2019

Yes @neslihanturan ,In this list also I was not able to find my user name.
So I think its not working properly.

@neslihanturan
Copy link
Collaborator

Then, the way we make API call should be wrong. @nfatma already did great investigation though, those comments can be helpful to create the correct the API call.

@chaytanyasinha
Copy link

Yes I went through those comments and I went on the provided url.

@chaytanyasinha
Copy link

@neslihanturan @nicolas-raoul If you say I can give a try of writing new API.

@neslihanturan
Copy link
Collaborator

I would like to be able to combine two issues. Currently this issue and #3202 seems like the same thing. Lets discuss here.

@chaytanyasinha I think writing the new API is not the way we go. The way we make the API call should be investigated. You can use Mediawiki APı sandbox for investigation purposes. If you are willing to do in this way, please say us so that I will assign the issue to you. Otherwise, @SamuelleMollard also interested.

@chaytanyasinha
Copy link

Yes I can do this way too @neslihanturan

@neslihanturan
Copy link
Collaborator

neslihanturan commented Nov 26, 2019

Okay so this issue is assigned to @chaytanyasinha , thanks for your interest:)

@chaytanyasinha
Copy link

@neslihanturan Actually I went through MediaWiki APi Sandbox yesterday only and I came to know about this error:
{
"error": {
"code": "mustpostparams",
"info": "The following parameter was found in the query string, but must be in the POST body: token.",
"*": "See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
},
"servedby": "mw1235"
}

@chaytanyasinha
Copy link

Currently I am going through this(https://www.mediawiki.org/wiki/Extension:Thanks#API_Documentation) so that I can find a way to solve it

@MOLLARDAmbre
Copy link

Should I try and work on it too then or would it be more efficient if I worked on an other issue then ?

@neslihanturan
Copy link
Collaborator

neslihanturan commented Nov 26, 2019

Please work on another issue @SamuelleMollard . I am currently online, if you want to pick one just left a comment under the issue and I will assign it to you if it is not already assigned.

Note:

  • Do not rely on the assigned label to strictly, sometimes the label is outdated and the issue is still available.
  • Following beginner friendly labels usually helps.

@MOLLARDAmbre
Copy link

Very well, I'm selecting an issue labelled 'beginner-friendly' and commenting under it then. Thanks

@chaytanyasinha
Copy link

@neslihanturan @nicolas-raoul I went through the APIs and I found them fine.Even we can see on all other wikimedia platforms its working as in the thank list I checked all other thanks are used in other platforms so I think there is problem with something else.

@chaytanyasinha
Copy link

@neslihanturan @nicolas-raoul Please reply what should I do next. As I am getting same errors nfatma got and I found the api fine as its working for other platforms.

@neslihanturan
Copy link
Collaborator

Actually I don't know @chaytanyasinha , since I haven't work on this issue before.

@chaytanyasinha
Copy link

It's okay @neslihanturan . So should I work on another issue or the issues which I started?

@neslihanturan
Copy link
Collaborator

Sure @chaytanyasinha , you can always switch between issues, just clearly say if you want to leave it so that someone else can work on.

@neslihanturan
Copy link
Collaborator

Actually this comment of @nicolas-raoul is beneficial for this issue too: #3202 (comment)

You can try using breakpoints to find out unexpected pattern of the method.

@sivaraam
Copy link
Member

I think there is a slight misunderstanding here. The Thanks feature seems to be working fine. The link in the issue description clearly shows that the logs at Mediawiki were being searched. If I understand correctly, when you thank a user for uploading the image to Common the log would be found in the Commons wiki and not in Mediawiki. So, I checked the logs at Commons and guess what I found when I searched for the Thanks logs on 25March2019:

image

I'm not sure whether that is the Thank @nicolas-raoul was looking for. So, my theory might be wrong. But just wanted to note my observation.

@chaytanyasinha
Copy link

@neslihanturan I think I will switch to other issues.

@neslihanturan
Copy link
Collaborator

Oh so thanks were working according to @sivaraam 's comment. I am not closing this issue until @nicolas-raoul verifies it though. Thanks @sivaraam !

@nicolas-raoul
Copy link
Member Author

nicolas-raoul commented Nov 30, 2019 via email

@MOLLARDAmbre
Copy link

I can try, but I have to do something before and launching android studio should take about 20 min anyway so not right now, but I am not sure I will be able to, since I have not been able to get a sending thanks:success yet to be honnest

@MOLLARDAmbre
Copy link

I can't get a sending thanks: success, no matter how i try
I'll work on #3202 and if I can fix that I will send you the logs, but for now I can't get them.
Furthermore, I can confirm that those thanks are not in the log mentioned above

@sivaraam
Copy link
Member

sivaraam commented Dec 4, 2019

FWIW, I just tried to Thank an uploader. Regardless of the fact that the I got a "Sending Thanks: Failure" notification the Thanks was indeed sent as you can see in the thanks log.

image

On a side note, I'm getting a "Requesting category change ..." notification despite the fact that I never chose to request a category change for the image I reviewed. The worst part is that the notification is sticky i.e., I'm not able to swipe to make it go away!

@nicolas-raoul
Copy link
Member Author

@sivaraam Your last paragraph is actually another well-known bug waiting for someone to fix it :-) : #2909

@sivaraam
Copy link
Member

sivaraam commented Feb 8, 2020

@nicolas-raoul Are you still facing this issue?

I could reliably see the Thank I give to images in the Commons thank log despite the app stating that it could not successfully thank. (looks like a different issue).

@nicolas-raoul
Copy link
Member Author

@sivaraam I just tried with the latest master, you are right! I guess this can be closed.

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