theodi / shared

Repo that we use for non-repo-specific stories and other shared stuff.
22 stars 1 forks source link

Fix CSV Lint bugs, identified by UK Data Service #740

Closed dicknorris closed 9 years ago

dicknorris commented 9 years ago

UK Data Service have identified two bugs when using CSV Lint: (1) The descriptive text when adding a file needs updating.
(2) They have encountered an error when downloading the standardised file

Acceptance criteria:

quadrophobiac commented 9 years ago

(1) is a cosmetic change: https://github.com/theodi/csvlint/pull/226 (2) it looks like the error encountered was a Mongoid::Errors::DocumentNotFound in ValidationController#show caused by the link presented on 'Download Standard CSV' providing an ID that didn't match with persisted data, investigating what might have caused that

quadrophobiac commented 9 years ago

@dicknorris - if you happen to have the CSV which triggered the error for downloading the file it would help a lot, haven't been able to reproduce the error using other CSVs on live, Mongoid::Error only reports when I do the following on localhost

However on live this error doesn't reoccur. Navigating back and forth between the Standardised CSV URL doesn't trigger any catastrophic errors, however if the user navigates back using the browser back button the CSV file download process begins anew.* There is a delay between clicking download and the file becoming available for saving to local system. If the user initialises the download procedure once they can click the download button multiple times and they will only have to experience the delay once. If they navigate away then they will experience the delay on each fresh issue of a download request

quadrophobiac commented 9 years ago

blocking pending clarification on either CSV that was used or a way to access the logs around the time the error occurred

quadrophobiac commented 9 years ago

file uploaded wasn't a CSV - creating more instructive user upload as enhancement and correcting the gem not reporting excel warning Gem Fix = https://github.com/theodi/csvlint.rb/pull/149 UX https://github.com/theodi/csvlint/issues/227

quadrophobiac commented 9 years ago

PR for UX https://github.com/theodi/csvlint/pull/228

quadrophobiac commented 9 years ago

PR for excel https://github.com/theodi/csvlint.rb/pull/149