Last modified: 2014-11-17 09:21:11 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 T33251, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31251 - "My new messages" badge number is wrong
"My new messages" badge number is wrong
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
unspecified
All All
: High major with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 28579 31275 31319 31416 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-29 16:15 UTC by Sumana Harihareswara
Modified: 2014-11-17 09:21 UTC (History)
10 users (show)

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


Attachments
there are no new messages, yet the indicator says 1 (70.30 KB, image/png)
2011-09-29 16:15 UTC, Sumana Harihareswara
Details
I have 27 new invisible messages... =P (98.09 KB, image/png)
2011-09-30 14:04 UTC, Helder
Details
18 "new" messages (19.19 KB, image/png)
2011-10-05 21:45 UTC, Krinkle
Details

Description Sumana Harihareswara 2011-09-29 16:15:30 UTC
Created attachment 9123 [details]
there are no new messages, yet the indicator says 1

Right now mediawiki.org says I have 1 new message (via "My new messages (1)" in the list of links at the top), but gives me "There are no new messages for you." at Special:NewMessages.  See attached screenshot.
Comment 1 Helder 2011-09-30 14:01:37 UTC
*** Bug 31275 has been marked as a duplicate of this bug. ***
Comment 2 Helder 2011-09-30 14:04:30 UTC
Created attachment 9131 [details]
I have 27 new invisible messages... =P

Copying from the dupe bug
Comment 3 Roan Kattouw 2011-10-03 09:26:19 UTC
*** Bug 31319 has been marked as a duplicate of this bug. ***
Comment 4 Krinkle 2011-10-05 21:34:31 UTC
See also:
* bug 24292
* bug 20644
* bug 28579
Comment 5 Krinkle 2011-10-05 21:45:28 UTC
Created attachment 9164 [details]
18 "new" messages

Interesting side note: A few minutes I ago I actually had 18 new messages and I clicked the link to read them. Then when I was done, and refreshed the messages were no longer there but the link still reads "18" and hours later still does.
Comment 6 Mark A. Hershberger 2011-10-06 14:43:18 UTC
Seen on [[WP:VPT]]: "liquidthreads problem at en.wiktionary"

On en.wiktionary, I see "my new messages (1)" in bold, but when I click on it, it says "There are no new messages for you.".
Comment 7 Mark A. Hershberger 2011-10-06 16:22:22 UTC
*** Bug 31416 has been marked as a duplicate of this bug. ***
Comment 8 Sumana Harihareswara 2012-05-10 21:09:17 UTC
Still happening on MediaWiki.org for me, 1.20wmf2 (c29337d).
Comment 9 Krinkle 2012-05-11 08:32:40 UTC
Yeah, mine's still stuck at 18. I've gotten used to it. I'm all excited when I got 19 (which means 1). :D
Comment 10 zoglun 2012-08-15 01:57:24 UTC
Oh, same problem in my wiki:  "my new messages (3)" 

How can I reset the number to none in database?
Comment 11 Valerie Juarez 2013-03-19 18:33:29 UTC
If this is a dup of bug 24292, that bug has been fixed. Can those who were affected by this bug tell me if they are still affected or if it was fixed?
Comment 12 Helder 2013-03-19 20:20:51 UTC
Currently there doesn't seems to be a way to show all new messages in only one page, so I did the following:
1) Opened https://www.mediawiki.org/wiki/Special:NewMessages
2) Opened "Next page" in a new tab
3) Repeated step 2 until there was no "Next page" link
4) Executed "$('.lqt_post_new_message ').length" in the console for each of the tabs and summed the results:
25+28+25+25+30+25+26+25+25+29+21 === 284

Nonetheless, LQT says I have 286 unread messages, so I don't think this is fixed.
Comment 13 Nischay Nahata 2013-04-07 17:46:39 UTC
I guess this bug should affect all?

when I tried to mark all my new messages as read and refreshed the page I didn't find any new messages and the count was rightly 0. In fact this bug has never occurred to me. Did others use some special steps to reproduce? ;)
Comment 14 Quim Gil 2013-04-11 14:25:40 UTC
This happens constantly in a normal work situation: 

1. New messages n (when n > 0)  :)

2. Go to http://www.mediawiki.org/wiki/Special:NewMessages

3. Open another page at mediawiki.org


At this point both pages are showing n messages. Good.

4. Reply to one of the threads at http://www.mediawiki.org/wiki/Special:NewMessages

5. "Mark as read" the thread you just reply.


At this point both pages are showing still n messages. Not so good.

6. Go to the second page you opened and click any link pointing to another mediawiki.org page.

7. Check the header of the newly loaded mediawiki.org page.


At this point the second pages is still showing n messages. Very bad.


You can keep clicking links in the second tab and jumping to other pages at mediawiki.org. n messages are still shown.

It seems that only clicking to "New messages (n)" directly will change the score to "New messages (n-1)". Very very bad, and what this bug is about.

Ideally the score would be updated live whenever a thread is marked as read.

As a second (and last) choice, the score should be updated whenever a new page is loaded.
Comment 15 Quim Gil 2013-04-11 14:36:21 UTC
(after just some more clicks in normal work conditions):

... and even  after clicking to "New messages (n-1)" you might get a wrong count if you have been marking threads as read at http://www.mediawiki.org/wiki/Special:NewMessages relying, changing pages in other tabs...

But if the sync between "Mark as read" and the counter in the header is improved, there is a chance that all this family of bugs will be solved at once.
Comment 16 Nischay Nahata 2013-04-11 15:16:10 UTC
Quim, thanks for such a detailed explanation.

I was easily able to reproduce this on MW.org but not on my local wiki; there on clicking 'Mark as read' the 'New messages(n)' completely disappears (I thought that was another bug) and on refreshing the count is very right. So confused I am now :p

p.s. Yes, I have the latest LQT
Comment 17 Andre Klapper 2013-04-22 12:35:11 UTC
*** Bug 28579 has been marked as a duplicate of this bug. ***
Comment 18 Quim Gil 2013-04-22 16:25:29 UTC
(In reply to comment #16)
> p.s. Yes, I have the latest LQT

Interesting. Then the question perhaps is: does mediawiki.org have the latest version?

http://www.mediawiki.org/wiki/Special:Version says "Version 2.1-alpha" but what snapshot? For instance, https://www.mediawiki.org/wiki/Extension:LiquidThreads points "Version 2.1-alpha" to https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/LiquidThreads.git;a=commitdiff;h=20800acaee6a3ceb732d93faa12786fa7bf0397a;ds=sidebyside (2012-09-21).

http://translatewiki.net/wiki/Special:Version says also "Version 2.1-alpha", but pointing to https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/LiquidThreads.git;h=d4f1a8b8b014694962c6426c09b5b11e7477df1c (2013-04-19). Can this problem be found in translatewiki.net or is it fixed there?
Comment 19 Helder 2013-06-06 16:15:25 UTC
I just saw "New messages (1,406)" in my personal tools on mediawiki.org, and when I clicked the link, the value changed to "New messages (644)" (I didn't mark any message as read - just followed the link to [[mw:Special:NewMessages]]).
Comment 20 Helder 2013-06-10 11:58:42 UTC
(In reply to comment #19)
> I just saw "New messages (1,406)" in my personal tools on mediawiki.org, and
> when I clicked the link, the value changed to "New messages (644)" (I didn't
> mark any message as read - just followed the link to
> [[mw:Special:NewMessages]]).

And it keeps going back and forward from around 500 messages to a few more than 1000.
Comment 21 Helder 2013-07-01 14:42:56 UTC
(In reply to comment #20)
> And it keeps going back and forward from around 500 messages to a few more
> than 1000.

It still overestimates the number of messages in my first visit to [[mw:Special:NewMessages]] as being 958, and goes back to 572 after some clicks on "Next page".
Comment 22 Sumana Harihareswara 2014-09-23 19:07:33 UTC
I don't think I can still reproduce this.

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


Navigation
Links