Page MenuHomePhabricator

Categorized redirect is shown as stub in Category page
Closed, ResolvedPublic

Description

Author: nao-yuki

Description:
In ja.wp, some redirect page (For example,
bishojo games ported to Sony platform)
has category. Currently it works as redirect, but it is
marked as stub article in Article list on Category Page
if someone set stub threshold.

For example, "Shuffle! On the stage"(It is redirect to "Shuffle!")
is marked as stub in Category:PS2 Games
(
http://ja.wikipedia.org/wiki/Category:%E3%83%97%E3%83%AC%E3%82%A4%E3%82%B9%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B32%E7%94%A8%E3%82%BD%E3%83%95%E3%83%88
).


Version: 1.7.x
Severity: trivial
URL: http://ja.wikipedia.org/wiki/Category:%E3%83%97%E3%83%AC%E3%82%A4%E3%82%B9%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B32%E7%94%A8%E3%82%BD%E3%83%95%E3%83%88

Details

Reference
bz5477

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:10 PM
bzimport set Reference to bz5477.
bzimport added a subscriber: Unknown Object (MLST).

Wiki.Melancholie wrote:

In which way it is marked as a stub? I cannot see anything. Do you mean the link is coloured in
purple when you are logged in (size of article; see Special:Preferences)?

Behavior confirmed with stub threshold set to 250.

I'm not sure why; the page record does have page_is_redirect marked,
which should override stub markings. page_len is 215; setting threshold
down to 200 it shows normally so I can confirm the length field is being
loaded.

nekocue wrote:

patch against svn trunk

Linker::makeSizeLinkObj, called from CategoryPage::doCategoryMagic, does not
respect page_is_redirect or namespace.

The attached patch is a possible solution. There may be a better way.

Attached:

freakofnurture wrote:

I don't see how this is a bug. I rather like being able to easily determine the
presence of improperly included items in redirect categories.

No longer seems to be the case