As an admin, when I try to upload CSV to Courses, Tutors, Tutor Assignments, and Office Hours, I might mistakenly upload a CSV that contains malformed data. I want to web able to tell me what is wrong and prevent stop uploading the wrong data.
Discussion
On the Courses, Tutors, Tutor Assignments, and Office Hours page, we already have the ability to upload a CSV to speed up the process of creating courses. However, it does not check if the CSV contains bad/malformed data or not.
Acceptance Criteria
[ ] CSVs with good data could be added to the tables
[ ] CSV data is correctly uploaded.
[ ] There would be a toast pop-up that tells the user what is wrong if the CSV contains malformed data.
...
Implementation Todos
Front end:
[ ] add front end pop up that tell the users what is going on about the CSV they are trying to upload
[ ] Add appropriate frontend tests
...
Back end:
[ ] Edit and add appropriate backend code/endpoint to check the CSV file's data
[ ] Add appropriate backend tests
...
Testing:
[ ] Front end tests pass and there is adequate coverage
[ ] Back end tests pass and there is adequate coverage
...
User Story
As an admin, when I try to upload CSV to Courses, Tutors, Tutor Assignments, and Office Hours, I might mistakenly upload a CSV that contains malformed data. I want to web able to tell me what is wrong and prevent stop uploading the wrong data.
Discussion
On the Courses, Tutors, Tutor Assignments, and Office Hours page, we already have the ability to upload a CSV to speed up the process of creating courses. However, it does not check if the CSV contains bad/malformed data or not.
Acceptance Criteria
Implementation Todos
Front end:
Back end:
Testing: