[Bug 26614] action=parse shows different sortkey then one outputted by prop=categories (prefix vs actual binary sortkey)
https://bugzilla.wikimedia.org/show_bug.cgi?id=26614 Aaron Schulz schulzaaro...@yahoo.de changed: What|Removed |Added CC||schulzaaro...@yahoo.de --- Comment #9 from Aaron Schulz schulzaaro...@yahoo.de 2011-12-06 01:29:39 UTC --- Fixed in r54567. Please update and add explained comment. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26614] action=parse shows different sortkey then one outputted by prop=categories (prefix vs actual binary sortkey)
https://bugzilla.wikimedia.org/show_bug.cgi?id=26614 --- Comment #6 from Reedy s...@reedyboy.net 2011-01-15 01:01:18 UTC --- This isn't actually an API par se, it's more the parser sort of. Where is it actually output from a parse query? I can't see it anywhere obviously. bug 24650 has been fixed now. Where are these actually used anywhere by anyone? I'm poking around, and have logged bug 26736 as a related bug, depending on this perceived usefulness.. Especially, as per Aryeh, it may move further from being a human readable thing, which is probably useless. ++---+ | cl_sortkey | cl_sortkey_prefix | ++---+ | FULLTWOLOW | | | MAIN PAGE | | ++---+ -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26614] action=parse shows different sortkey then one outputted by prop=categories (prefix vs actual binary sortkey)
https://bugzilla.wikimedia.org/show_bug.cgi?id=26614 --- Comment #7 from Bawolff bawolff...@gmail.com 2011-01-15 02:07:06 UTC --- Where is it actually output from a parse query? I can't see it anywhere obviously. The sortkey attribute of the cl element in this query: api.php?action=parsetext=[[category:Foo|bar]]prop=categories Honestly, it wouldn't be horrible to leave it the way it is. In a sense, its outputing what it reads the sortkey as, not what the final sortkey is. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26614] action=parse shows different sortkey then one outputted by prop=categories (prefix vs actual binary sortkey)
https://bugzilla.wikimedia.org/show_bug.cgi?id=26614 --- Comment #5 from Aryeh Gregor simetrical+wikib...@gmail.com 2011-01-07 17:01:19 UTC --- The way they're used in practice is that if cl_sortkey_prefix is empty, then cl_sortkey = $wgContLang-convertToSortkey( page_title ). Otherwise, cl_sortkey = $wgContLang-convertToSortkey( cl_sortkey_prefix . \0 . page_title ). See Title::getCategorySortkey() and Language::convertToSortkey(). cl_sortkey is in general an arbitrary binary string which may bear no discernible relationship to the original page title or sortkey prefix, once we start using proper ICU or CLDR or whatever for sortkeys. So I can't imagine why anyone would want the actual value; logically, you'd only want to sort by it. I don't know why you'd want cl_sortkey_prefix either, for that matter (although it is going to be human-readable text). I can't see any use for it other than constructing cl_sortkey. Do you know of anyone who actually wants or uses these? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26614] action=parse shows different sortkey then one outputted by prop=categories (prefix vs actual binary sortkey)
https://bugzilla.wikimedia.org/show_bug.cgi?id=26614 Bawolff bawolff...@gmail.com changed: What|Removed |Added CC||bryan.tongm...@gmail.com, ||s...@reedyboy.net, ||simetrical+wikib...@gmail.c ||om, soxre...@gmail.com, ||vasi...@gmail.com Component|Categories |API AssignedTo|wikibug...@lists.wikimedia. |roan.katt...@gmail.com |org | Summary|truncate sortkey when |action=parse shows |adding to ParserOutput |different sortkey then one ||outputted by ||prop=categories (prefix vs ||actual binary sortkey) --- Comment #3 from Bawolff bawolff...@gmail.com 2011-01-07 01:03:38 UTC --- On second thought, even if it was truncated in ParserOutput, the api would still output the wrong sortkey on action=parse, because its outputting the equivalent of cl_sortkey_prefix, not cl_sortkey. The question is, should it be outputting the prefix, or the final (binary) sortkey? Does anyone know how these values are actually used in practise (so which is appropriate?). Perhaps we should output both? I'm leaning towards outputting the final binary sortkey here, but I could also imagine someone would have use for the human readable sort key as well, so I'm unsure. cc'ing Aryeh Gregor in case he has any thoughts on this, seeing as he did most of the category stuff. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26614] action=parse shows different sortkey then one outputted by prop=categories (prefix vs actual binary sortkey)
https://bugzilla.wikimedia.org/show_bug.cgi?id=26614 --- Comment #4 from Reedy s...@reedyboy.net 2011-01-07 02:12:15 UTC --- I'm guessing this has some relation to bug 24650 -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 26614] action=parse shows different sortkey then one outputted by prop=categories (prefix vs actual binary sortkey)
https://bugzilla.wikimedia.org/show_bug.cgi?id=26614 Bawolff bawolff...@gmail.com changed: What|Removed |Added Blocks||24650 -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l