Last modified: 2014-08-27 19:19:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53303, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51303 - Notifications: Getting two "Thank"s from one user for the same edit is possible
Notifications: Getting two "Thank"s from one user for the same edit is possible
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
Thanks (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 57584 61883 70100 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-14 00:48 UTC by Quiddity
Modified: 2014-08-27 19:19 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Quiddity 2013-07-14 00:48:54 UTC
Per https://en.wikipedia.org/wiki/Wikipedia_talk:Notifications#Thanked_twice

It's possible to thank a user for the same edit, twice.

Example: I have the history page, and a specific diff-change, open in separate tabs/windows. If I "thank" in one of those tabs, and don't refresh the other tab, then the second "thank" link doesn't auto-update to "thanked". 

Given how rare this situation is likely to be, and how complicated a fix is likely to be (?), I imagine this won't be fixed/fixable. Reporting for record-keeping.
Comment 1 Quiddity 2013-07-15 00:57:47 UTC
Yikes. See the thread linked in first comment (permalink: https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Notifications&oldid=564293462#Thanked_twice )
for an update. One user has discovered how to accidentally "thank" a multitude of times, for the same edit, via "control-clicking" on any link in the "revision history" page, after a thank has been sent/confirmed.
Comment 2 bsitu 2013-07-15 03:43:46 UTC
After a quick review on the code, the fix should be pretty straight forward.  The state of 'Thanks' is saved into user's web session.  Before sending a thanks notification, just skip sending 'Thanks' notification if a previous 'Thanks' has been sent for the revision
Comment 3 Gerrit Notification Bot 2013-07-15 04:16:54 UTC
Change 73732 had a related patch set uploaded by Bsitu:
(bug 51303) Do not send duplicate thanks notification

https://gerrit.wikimedia.org/r/73732
Comment 4 Gerrit Notification Bot 2013-07-17 22:08:32 UTC
Change 73732 merged by jenkins-bot:
(bug 51303) Do not send duplicate thanks notification

https://gerrit.wikimedia.org/r/73732
Comment 5 MZMcBride 2013-07-18 01:22:48 UTC
(In reply to comment #4)
> Change 73732 merged by jenkins-bot:
> (bug 51303) Do not send duplicate thanks notification
> 
> https://gerrit.wikimedia.org/r/73732

I'm marking this bug resolved/fixed accordingly. Please feel free to re-open this bug if you continue to see this issue (duplicate thanks) in a few days after this change is deployed.
Comment 6 Quiddity 2013-11-25 18:17:41 UTC
Re-opening, per fresh report of a doublethank (with a many hour time-gap between them) from Redrose64 at https://en.wikipedia.org/wiki/Wikipedia_talk:Notifications/Thanks#Doublethank
Comment 7 Elitre 2013-11-26 12:58:16 UTC
*** Bug 57584 has been marked as a duplicate of this bug. ***
Comment 8 Kunal Mehta (Legoktm) 2014-01-08 01:55:46 UTC
The problem is that we store Thanks in session data, which shouldn't be and isn't a persistent cache.

We can either create our own database table for storage, or maybe use wfGetCache( CACHE_DB )? Not sure what our options for persistent storage on the WMF cluster are.
Comment 10 Ricordisamoa 2014-01-24 02:35:11 UTC
(In reply to comment #8)
> The problem is that we store Thanks in session data, which shouldn't be and
> isn't a persistent cache.
> 
> We can either create our own database table for storage, or maybe use
> wfGetCache( CACHE_DB )? Not sure what our options for persistent storage on
> the
> WMF cluster are.

Making thanks log public (Bug 49087) would solve the issue.
Comment 12 Kunal Mehta (Legoktm) 2014-02-24 22:20:51 UTC
*** Bug 61883 has been marked as a duplicate of this bug. ***
Comment 13 Kunal Mehta (Legoktm) 2014-02-24 22:35:23 UTC
*** Bug 61883 has been marked as a duplicate of this bug. ***
Comment 14 Elitre 2014-07-02 10:45:54 UTC
Still happens to me regularly (le sigh). The history for a given page forgets I already thanked a bunch of people. Apparently the Thanks are correctly mentioned in the relevant Log though, so there's this workaround.
Comment 15 Kunal Mehta (Legoktm) 2014-08-27 19:19:54 UTC
*** Bug 70100 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links