18F / data-act-pilot

This small DATA Act pilot contains code that translates agency data to a uniform DATA act format.
Other
21 stars 14 forks source link

App crashes if a designated key field isn't in the uploaded file #231

Closed bsweger closed 8 years ago

bsweger commented 8 years ago

For each row of an uploaded file that contains an error, the error message displays the row's key fields (e.g., TAS) to help users find the data back in its original system. In this prototype, the display is driven by a hard-coded list of key fields for each file.

If the name of a key field changes as the data standard evolves, the app will crash on a dictionary lookup. The hard-coding isn't ideal, but at the very least we should fix this so that a mismatch between the app's key field dictionary and the uploaded data fields doesn't crash.