Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSV validators and frontend error reporting for user uploads #23

Open
anastasia opened this issue Sep 17, 2021 · 0 comments
Open

Add CSV validators and frontend error reporting for user uploads #23

anastasia opened this issue Sep 17, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@anastasia
Copy link
Member

anastasia commented Sep 17, 2021

Right now if a user uploads a CSV with incorrect headers or bad column values, our logic fails silently. We should validate CSVs on upload, and add error reporting so that the user can see what file is expected of them.

Here's our CSV parsing method:

def parse_csv_upload(csv_upload):

Here's where we can communicate errors to user: https://github.com/dhmit/sonification/blob/0b3991516f64a235ff7b620d4e8636aa821b32ab/frontend/components/UploadFileInput.js

@anastasia anastasia added enhancement New feature or request good first issue Good for newcomers labels Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant