Last modified: 2013-02-24 03:22:59 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 T47298, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45298 - Semantic MediaWiki Ask API not sorting
Semantic MediaWiki Ask API not sorting
Status: RESOLVED DUPLICATE of bug 45303
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-23 01:16 UTC by Jamie Thingelstad
Modified: 2013-02-24 03:22 UTC (History)
4 users (show)

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


Attachments

Description Jamie Thingelstad 2013-02-23 01:16:20 UTC
When I execute this #ask query in a wikipage I get a properly sorted result set:

{{#ask: [[Category:Event]][[Has event type::Tournament]][[Exclude stats::False]][[Has match count::>>0]][[Has start date::+]]|?Has team count|?Has match count|?Has start date|sort=Has start date|order=asc}}

See http://wiki.planetkubb.com/wiki/User:Thingles/Scratch3

But when I execute the same query via the Ask API sorting isn't occurring:

Category%3AEvent]][[Has%20event%20type%3A%3ATournament]][[Exclude%20stats%3A%3AFalse]][[Has%20match%20count%3A%3A%3E%3E0]][[Has%20start%20date%3A%3A%2B]]|%3FHas%20team%20count|%3FHas%20match%20count|%3FHas%20start%20date|sort%3DHas%20start%20date|order%3Dasc&format=json">http://wiki.planetkubb.com/w/api.php?action=ask&query=[[Category%3AEvent]][[Has%20event%20type%3A%3ATournament]][[Exclude%20stats%3A%3AFalse]][[Has%20match%20count%3A%3A%3E%3E0]][[Has%20start%20date%3A%3A%2B]]|%3FHas%20team%20count|%3FHas%20match%20count|%3FHas%20start%20date|sort%3DHas%20start%20date|order%3Dasc&format=json

I've triple checked things and I don't think I'm doing anything wrong in my request.

I'm using master branch current pull from today of SMW 1.9 alpha and MediaWiki 1.20.2.
Comment 2 Jamie Thingelstad 2013-02-23 20:55:40 UTC
I saw a bunch of changes since yesterday so pulled down the newest master. Sorting issue still exists.
Comment 3 Nischay Nahata 2013-02-24 03:22:59 UTC

*** This bug has been marked as a duplicate of bug 45303 ***

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


Navigation
Links