Last modified: 2012-11-07 07:07:07 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 T34988, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32988 - Queries with inversed properties sort broken in 1.7b1
Queries with inversed properties sort broken in 1.7b1
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-12 16:50 UTC by Pierre Réveillon
Modified: 2012-11-07 07:07 UTC (History)
4 users (show)

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


Attachments

Description Pierre Réveillon 2011-12-12 16:50:47 UTC
Hello,

I just updated to 1.7b1, and most of my queries are not sorted anymore.

You'll find an example on http://www.delibris.fr/Liste_des_auteurs, it's a simple query:

{{#ask:[[-Auteur::+]]
|format=category
|limit=999999
}}

I tried adding "|sort=Auteur", but it still does not work.
I tried with other formats too, without success.

In previous SMW version, it was using the default MW sort system.

Cheers,

-- 
Pierre Réveillon
Comment 1 Jeroen De Dauw 2011-12-12 17:26:28 UTC
What did you update from?

There is definitely no problem with sorting regular properties, I just tested that. However, you are sorting using an inverse property. I sort of doubt this ever worked (but you are saying it did - are you _very_ sure?) and am tempted to either mark this as invalid wontfix, or turn it into an enhancement request.
Comment 2 Pierre Réveillon 2011-12-12 18:04:39 UTC
I updated from 1.6.1 (but I also updated MW from 1.17 to 1.18 the same day).
I'm absolutely sure this was working before, and the website editor confirmed that. It was even working for non-existing pages (Like in http://www.delibris.fr/Liste_des_%C3%A9diteurs).

I was using inversed properties quite everywhere because the wiki wasn't completely populated, but now I could query on categories.
So if I'm the only one complaining on that, you can turn it to enh.
Comment 3 Pierre Réveillon 2011-12-12 20:56:27 UTC
In fact I was wrong, I don't know how to do without inversed properties in this case.

I made an install with 1.6.1, you can see it was working: http://old.delibris.fr/Liste_des_auteurs. I updated MW to be sure the bug comes from SMW.

Let me know if you can/will fix it, otherwise I'll need to find a different way to do the query, or to stay in 1.6.1.

Cheers
Comment 4 Pierre Réveillon 2012-02-20 19:26:48 UTC
I'd be interested in fixing/implementing this bug, but I don't know where to start. Could you point me where in the code is done the sort? Or do you have an idea on which modification made it to stop working in version 1.7?

Thanks
Comment 5 Pierre Réveillon 2012-02-21 06:48:49 UTC
I updated to 1.7.0.2, (I was still in b1), and now, it's automatically sorted if I don't provide the "sort" parameter. If I put it, it's not sorted.
Can I hope it will stay like that?
Comment 6 MWJames 2012-11-07 04:33:27 UTC
Is this issue still relevant for SMW 1.8? As a precautionary measures I will renderer this bug as resolved.

Feel free to reopen the bug again if it still applies to SMW 1.8.
Comment 7 Markus Krötzsch 2012-11-07 07:07:07 UTC
This was fixed very recently: the change https://gerrit.wikimedia.org/r/#/c/31279/ corrected this (and other problems). I just tested and it is now possible to use inverse properties in ?printouts and also in sort.

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


Navigation
Links