Page MenuHomePhabricator

Problem with file sorting in categories on Commons
Closed, ResolvedPublic

Description

Author: Eugene.Zelenko

Description:
There is problem with file sorting in category on Commons (see http://commons.wikimedia.org/wiki/Category:Gerbovnik_Vinklera). Newly uploaded files appeared after set of old files. Names are on Cyrillic, but it's possible to notice first letters appeared in 2 places.

This problem was introduced after upgrade to 1.17.

It may be MediaWiki problem, or some database tebles was not properly updated during/after upgrade.


Version: unspecified
Severity: normal

Details

Reference
bz27741
TitleReferenceAuthorSource BranchDest Branch
update gitlab-test settingsrepos/releng/gitlab-settings!9jeltoupdate-gitlab-testmain
Customize query in GitLab

Event Timeline

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

Due to changes at the category system the namespace is not any more inside the sortkey. All files uploaded before the 1.17 have the old sortkey with namespace.

You can fix this by nulledit (save without changes) all the pages inside the category.

With the api you get the sortkey:
http://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Gerbovnik%20Vinklera&cmprop=sortkey&cmlimit=500

Note, the category changes in 1.17 aren't live yet. Presumably this is caused by the category changes being patched out, but the removing of $wgCategoryPrefixedDefaultSortkey in r70416 still (Accidentally?) kept in. It should all be fixed when category collations are deployed to wmf.

This should have been long fixed by now. Closing as such (re-open if still present)