Last modified: 2013-08-28 15:34:42 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 T47382, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45382 - API query siteinfo namespacealiases should be sorted numerically, not by source
API query siteinfo namespacealiases should be sorted numerically, not by source
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.21.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://hu.wiktionary.org/w/api.php?ac...
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-25 21:41 UTC by Dereckson
Modified: 2013-08-28 15:34 UTC (History)
8 users (show)

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


Attachments

Description Dereckson 2013-02-25 21:41:45 UTC
Currently, the namespace aliases seems to be sourced by the configuration source and not by numeric ascending order.

It would look nicer and more coherent if we could offer a numeric order there too.
Comment 1 Umherirrender 2013-02-28 18:49:40 UTC
It is possible, that one namespace has more than one alias, than sorting by number has not a very well numeric order.

See dewiki:
http://de.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces|namespacealiases

You can sort on the client, if needed, or must this done on server side?
Comment 2 Sumana Harihareswara 2013-05-02 12:12:06 UTC
Brad Jorsch tells me this is reasonably easy and should just need a sort with an appropriate custom sort function in appendNamespaceAliases() in
includes/api/ApiQuerySiteinfo.php.
Comment 3 Gerrit Notification Bot 2013-07-22 15:28:08 UTC
Change 74618 had a related patch set uploaded by Fantasticfears:
add a anonymous function in appendNamespaceAliases for pretty output

https://gerrit.wikimedia.org/r/74618
Comment 4 Gerrit Notification Bot 2013-08-15 02:46:23 UTC
Change 74618 abandoned by Fantasticfears:
add a anonymous function in appendNamespaceAliases for pretty output

https://gerrit.wikimedia.org/r/74618
Comment 5 Gerrit Notification Bot 2013-08-15 03:09:50 UTC
Change 79173 had a related patch set uploaded by Fantasticfears:
add a anonymous function in appendNamespaceAliases for pretty output

https://gerrit.wikimedia.org/r/79173
Comment 6 Gerrit Notification Bot 2013-08-28 15:33:26 UTC
Change 79173 merged by jenkins-bot:
Sort namespace aliases by id in appendNamespaceAliases for pretty output

https://gerrit.wikimedia.org/r/79173
Comment 7 Brad Jorsch 2013-08-28 15:34:42 UTC
The change should be deployed to WMF wikis with 1.22wmf15.

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


Navigation
Links