Last modified: 2013-02-26 13:26:56 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 T46551, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44551 - CSV query results ignores format string parameters.
CSV query results ignores format string parameters.
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
master
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-31 15:19 UTC by Neill Mitchell
Modified: 2013-02-26 13:26 UTC (History)
4 users (show)

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


Attachments

Description Neill Mitchell 2013-01-31 15:19:10 UTC
Example. According to http://semantic-mediawiki.org/wiki/Help:Type_Boolean
you can specify a format string within a query.

e.g. 

{{#ask: [[Category:Project]]
| ?successful#success,failure
}}

where success and failure are displayed in a result column labelled "successful".

This works when a table format is used, but if the CSV query format is specified, the formatting is ignored. The output contains true/false, not success,failure as desired.
Comment 1 Neill Mitchell 2013-02-25 20:29:13 UTC
Hi.

This is actually a regression. It works fine with SMW 1.8rc1, but not with 1.8.0.2+
Comment 2 MWJames 2013-02-25 20:37:36 UTC
This is utterly strange because according to [1], csv result printer has not seen any change since 2012-10-05 and 1.8rc1 was tagged Wed, 21 Nov 2012 [2].

[1] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/SemanticMediaWiki.git;a=history;f=includes/queryprinters/SMW_QP_CSV.php;hb=HEAD

[2] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/SemanticMediaWiki.git;a=log;h=6775648106623a3643bc18acf6f3103c2d753042
Comment 3 Neill Mitchell 2013-02-26 13:26:56 UTC
Hi.

Thanks for looking into this for me.

Unfortunately I've upgraded both instances to get other things working, so I no longer know the exact version number.

However, this is definitely not working with 1.8.0.3 unfortunately.

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


Navigation
Links