Ticket #1660 (closed defect: wontfix)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by rgrp

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone set to current-ckan-sprint-2012-02-06

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).

comment:2 Changed 2 years ago by rgrp

Update: I've done the change I suggested and it now works fine.

comment:3 Changed 2 years ago by rgrp

  • Keywords 0.25d [a:0.25d] added
Note: See TracTickets for help on using tickets.