GSA / data.gov

Main repository for the data.gov service
https://data.gov
Other
645 stars 101 forks source link

Error downloading data.json file with data_quality value is "Yes" #2654

Closed FuhuXia closed 3 years ago

FuhuXia commented 3 years ago

When creating a new dataset, selecting Yes in the data quality field gives a value of string "Yes" to the field. It generates an error when user downloads the data.json file, therefore the dataset can't be published.

Error log when downloading the data.json.

[('Invalid Field Value (Optional Fields)', ['The field \'dataQuality\' must be true or false, as a JSON boolean literal (not the string "true" or "false"). (1 locations)'])]
FuhuXia commented 3 years ago

Per user request, manual edit of the DB field, updating the value from 'Yes' to true for key of data_quality , eliminates the error and gets data.json downloaded. It is a workaround not a fix.

osahon-okungbowa commented 3 years ago

@cmugisha this has been completed and deployed to sandbox today. I don't have access to this repo, so please move to QA.

FuhuXia commented 3 years ago

The change is live on production.

adborden commented 3 years ago

Confirmed this is fixed on production.