Last modified: 2009-07-21 11:19:10 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 T20161, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18161 - Inconsistent separators in Watchlist link toolbars with "enhanced recent changes" (patch)
Inconsistent separators in Watchlist link toolbars with "enhanced recent chan...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Watchlist (Other open bugs)
1.15.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
: easy, patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-25 22:06 UTC by Happy-melon
Modified: 2009-07-21 11:19 UTC (History)
3 users (show)

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


Attachments
updated patch, against r53416 (1.79 KB, patch)
2009-07-18 19:50 UTC, Happy-melon
Details

Description Happy-melon 2009-03-25 22:06:47 UTC
With the recent changes to the way separators have been implemented (bug7509, r47046 and related) there is now an unresolvable inconsistency in the way they are used in watchlist entries. Without ERC, entries show up like this:

(diff) (hist) . . Glenn Quagmire‎; 17:29 . . (+18) . . 86.20.232.82 (talk | block) [rollback]

and With ERC, like this:

17:29  Glenn Quagmire‎ (diff; hist) . . (+18) . . 86.20.232.82 (talk | block) [rollback]

Note the *horrible* "diff; hist" construct that is now created.  *BUT* that semicolon is from the same system message ([[MediaWiki:semicolon-separator]]) that produces the semicolon after the article title without ERC. The bug is that, with ERC, the diff/hist links should use the [[MediaWiki:pipe-separator]] system message for the separator. I've looked through the various code revs associated with these changes, and I can't get my head around where to find the relevant lines; assigning to siebrand 'cos he did them in the first place :D
Comment 1 Siebrand Mazeland 2009-03-26 13:11:58 UTC
Not accepting assignment. Reason: Enhanced RC is done by JS as far as I know, and I have never made changes in there.
Comment 2 Raimond Spekking 2009-03-26 13:15:51 UTC
I propose this solution:

(diff | hist) . . Glenn Quagmire‎; 17:29 . . (+18) . . 86.20.232.82 (talk | block)

and with ERC:

17:29  Glenn Quagmire‎ (diff | hist) . . (+18) . . 86.20.232.82 (talk | block) 
Comment 3 Happy-melon 2009-03-26 13:36:36 UTC
@Siebrand: I know some of it is done with JS, but there is also a significant amount of different stuff that comes out of the PHP base.  JS is AFAIK just for collapsing the multiple operations together.

@Raimond: I generally agree, but A) that then makes the display without ERC different to the appearance on page histories (unless you want to change them too), and B) is a separate issue to fixing the diff/hist links with ERC.
Comment 4 Brion Vibber 2009-03-26 16:48:47 UTC
Did a quick check on 1.13 and 1.14 installations...

Standard RC looks like:
(diff) (hist) . . Main Page‎; 16:44 . . (+9) . . WikiSysop (Talk | contribs | block)

Enhanced RC looks like:
Main Page‎ (diff; hist) . . (+9) . . WikiSysop (Talk | contribs | block)

This is exactly what it looks like now, so apparently there has not in fact been a change; the basis of this bug is incorrect. Resolving INVALID.
Comment 5 Happy-melon 2009-03-26 17:15:58 UTC
Ok, so it's not a recent change, that explains why I couldn't find it in any of Siebrand's commits.  It's still Wierd(TM). So remove the dependency, make it an enhancement, and say that it should be *internally* consistent with the "talk/contribs/block" and "rollback/undo" toolbars.  Or it should be two separate brackets like without ERC.  But it should definitely not be AFAIK the **only place on-wiki** (apart from RC which uses the same code) where a bracketed toolbar is separated by a semicolon.
Comment 6 Happy-melon 2009-03-26 17:40:39 UTC
Created attachment 5963 [details]
one-line change to ChangesList.php

Found it; one-line change at the end of the longest call stack I've seen for a while (no wonder the HTML output of the watchlist is such a mess!).
Comment 7 Happy-melon 2009-07-18 19:50:55 UTC
Created attachment 6361 [details]
updated patch, against r53416

Original patch is 11,000 revisions out of date now :S  Updated patch and tested against r53416.
Comment 8 Raimond Spekking 2009-07-21 11:19:10 UTC
Patch applied with r53582.

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


Navigation
Links