Dear developers, I came across the "hidden feature" of random sorting again today when I cleaned up the related code and fixed various issues that it still had. It was impossible to disable this performance-critical feature in SMW, although a global variable had been introduced for that purpose (it was never used)!
I traced back the code and found that it had been committed based on a patch that was submitted to Bugzilla (not blaming anyone here, the committer may even have notified one of us core devs to check the code ...). Obviously, the code was not properly reviewed or tested, and the feature was not documented until recently. We should really try to avoid such cases in the future. Especially, any Bugzilla patch should be reviewed by a developer who is familiar with the affected code before being committed. I know that it can be tempting: someone offers a patch for adding a long-wanted feature, and it is so easy to just commit it without further ado -- unfortunately we need to resist this kind of temptation ;-). Since we are heading toward SMW 1.5, I would also like to ask all SMW- committers to double-check that all new features that you committed in the past months are mentioned in the file RELEASE-NOTES, and documented on semantic-mediawiki.org. It is really a pity if useful features go unnoticed simply because we forget to go that final mile of documenting them properly. Thanks for your support, Markus On Freitag, 11. Dezember 2009, Philipp Zaltenbach wrote: > Hi, > > I have updated the documentation at semantic-mediawiki.org. See > * http://semantic-mediawiki.org/wiki/Help:Inline_queries#Sorting_results > * http://semantic-mediawiki.org/wiki/Help:Configuration#Query_settings > > It would be nice if anyone could double check. > > Regards, > Philipp > > Patrick Nagel schrieb: > > Hi Alex, > > > > On 2009-12-11 01:38 UTC Alex Kozak wrote: > >> I'm wondering if there is a way to do a random sort in #ask queries > >> (maybe with something like order=random), and if not, if anyone has any > >> ideas on how to accomplish this (sanely) with templates and parsers? > > > > Did you try 'order=random'? It should work in current versions, but for > > an unknown reason it's currently not documented on > > semantic-mediawiki.org. > > > > See http://old.nabble.com/Random-Sort-in-SMW-1.4-td20670044.html > > > > Patrick. > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > >----- Return on Information: > > Google Enterprise Search pays you back > > Get the facts. > > http://p.sf.net/sfu/google-dev2dev > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Semediawiki-user mailing list > > semediawiki-u...@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > -- Markus Krötzsch <mar...@semantic-mediawiki.org> * Personal page: http://korrekt.org * Semantic MediaWiki: http://semantic-mediawiki.org * Semantic Web textbook: http://semantic-web-book.org --
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel