Last modified: 2014-05-11 08:57:49 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 T32753, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30753 - Use correct sorting for page name ordered listing special pages
Use correct sorting for page name ordered listing special pages
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 30672
  Show dependency treegraph
 
Reported: 2011-09-04 15:28 UTC by Krinkle
Modified: 2014-05-11 08:57 UTC (History)
6 users (show)

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


Attachments

Description Krinkle 2011-09-04 15:28:39 UTC
Once the system is in place (bug 30673), we should start figuring out a way to use the collations. This one is a reminder to use it in Special:AllPages
Comment 1 Bartosz Dziewoński 2014-05-09 22:12:18 UTC
This will probably require adding a page_sortkey column to the 'page' table (akin to cl_sortkey in 'categorylinks'), and maybe another one if we wanted to sort by both the real title and the DEFAULTSORT, as well as adding/updating indexes.

How viable would doing this be? Is there any less painful reasonably performant way?
Comment 2 Danny B. 2014-05-09 22:56:24 UTC
Changed the summary to be more general as the issue involves the following special pages:


Special:AllPAges
Special:PrefixIndex
Special:Uncategorized*
Special:Unused*
Special:OrphanPages
Special:DeadEndPages
Special:WithoutInterwiki
Special:ListRedirects


Special:CategoryTree (or should that one honour the sortkey order?)
Comment 3 Danny B. 2014-05-09 22:59:12 UTC
Also to consider:

Should the special pages just use the collation given by the system or should they also honour overrides by {{DEFAULTSORT:}}?
Comment 4 Bartosz Dziewoński 2014-05-10 23:47:09 UTC
(In reply to Bartosz Dziewoński from comment #1)
> This will probably require adding a page_sortkey column to the 'page' table
> (akin to cl_sortkey in 'categorylinks'), and maybe another one if we wanted
> to sort by both the real title and the DEFAULTSORT, as well as
> adding/updating indexes.

We can't actually do that if we ever want to support using multiple collations on one wiki (bug 44667).
Comment 5 Liangent 2014-05-11 08:52:04 UTC
(In reply to Bartosz Dziewoński from comment #4)
> (In reply to Bartosz Dziewoński from comment #1)
> > This will probably require adding a page_sortkey column to the 'page' table
> > (akin to cl_sortkey in 'categorylinks'), and maybe another one if we wanted
> > to sort by both the real title and the DEFAULTSORT, as well as
> > adding/updating indexes.
> 
> We can't actually do that if we ever want to support using multiple
> collations on one wiki (bug 44667).

probably it's doable now by abusing categorylinks, using categorylinks rows with cl_category set to empty. not sure about performance consideration though.
Comment 6 Liangent 2014-05-11 08:55:33 UTC
Some other issues, missing categorylinks rows will result in incomplete page list. I guess people will tolerate it less than incomplete categories.
Comment 7 Bartosz Dziewoński 2014-05-11 08:57:49 UTC
I talked about this with Reedy yesterday (mostly I was blabbering silly ideas and he was cringing) and we came up with this too, but having to fill the other fields with gibberish would be a bit silly. It might be the simplest thing that'll work, though.

We also came up with maybe just creating a separate table just for storing generated sortkeys and what they apply to (e.g. a page title, a page defaultsort, a category link) and using JOIN queries. Not sure about the performance of this.

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


Navigation
Links