Page MenuHomePhabricator

[Story] Move interwiki sorting code out of Wikibase Client
Closed, ResolvedPublic

Description

We need a different approach for maintaining and specifying sort order.

It could be moved to separate extension, which is sort of WMF specific, and store the few default orders in a system message and have a place where wikis can define a custom order.

There is a patch to handle some aspects of sorting in core, and should revisit that also.

https://gerrit.wikimedia.org/r/#/c/24211/

Sorting the links really is *not* wikibase specific and the sort orders do not belong there.

Details

Reference
bz45004

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:27 AM
bzimport set Reference to bz45004.
bzimport added a subscriber: Unknown Object (MLST).

Note there are rather detailed configurations that pywikipedia uses to maintain all this.

http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/families/wikipedia_family.py?view=log

Note that pywikipedia also uses these MediaWiki system messages which are maintained globally on meta wiki.

http://meta.wikimedia.org/wiki/MediaWiki:Interwiki_config-sorting_order-native-languagename

http://meta.wikimedia.org/wiki/MediaWiki:Interwiki_config-sorting_order-native-languagename-firstword

Obviously that's not an ideal place for us to have them, but they need to be somewhere that allows the community to help maintain it while gerrit seems to suck too much for that, apparently.

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).

it's very relevant. sorting should not be responsibility of Wikibase

aude renamed this task from Move the sort order out of Wikibase Client and generalize to [Story] Move interwiki sorting code out of Wikibase Client.Sep 11 2015, 8:16 AM
aude set Security to None.
aude moved this task from incoming to needs discussion or investigation on the Wikidata board.

just for future reference: (alphabetic_sr was removed from pywikibot because the sorting is handled by Wikidata, and the putfirst config in pywikibot was removed):

https://github.com/wikimedia/pywikibot-core/commit/407babe8b8b10f5dce21baf12c7bfcbb369a3254#diff-8c6dad6322e25e66197a7424e76dcfca

aude assigned this task to Addshore.