Ticket #1660 (closed defect: wontfix)
CSV preview broken - OpenSpending
Reported by: | lucychambers | Owned by: | rgrp |
---|---|---|---|
Priority: | major | Milestone: | ckan-sprint-2012-02-06 |
Component: | ckan | Keywords: | 0.25d [a:0.25d] |
Cc: | dread | Repository: | ckan |
Theme: | none |
Description
This CSV resource used to preview but now the format appears to be unsupported: "We are unable to preview this type of resource: x-osdata-csv"
http://thedatahub.org/dataset/lbhf-spending-2010/resource/9661abbd-2816-4d58-8b20-3cb0eb770c69
This is used as an example by the OpenSpending? team all the time.
Change History
Note: See
TracTickets for help on using
tickets.
The broken-ness arose from a (very sensible) refactor (done by Tom Rees) to be stricter about what we tried to preview.
Rather than hack around the conditions of the format string for previewing, my strong suggestion is to get rid of weird format types like x-osdata-csv (just change it to csv).
An alternative, that would preserve ability to set 'funky' formats would be to set the mimetype correctly (to text/csv) (this may still need an update to the previewer but one that would be sensible to make).