As an admin, I can upload a CSV containing all office hours data for ULA's so that I can speed up the process of adding office hours data to the app.
As a programmer, it would be better if we use the provided service if there already exists one. So that we could increase readability and minimize the file size.
Discussion
On the office hours page, we already have the ability to upload a CSV to speed up the process of creating courses. While it would be better if this is refactored into the preferred format.
Acceptance Criteria
[ ] There is an upload CSV option on the courses page allowing admins to upload office hours CSV data
[ ] CSV data is correctly uploaded.
[ ] The implementation is switched from direct implementation from OfficeHoursController to creating a new model/entity and using CSV service.
...
Implementation Todos
Front end:
[ ] change front end to fit the refactoring
[ ] Add appropriate frontend tests
...
Back end:
[ ] Edit and add appropriate backend code/endpoint to support parsing the CSV file and uploading the data. There are examples of this already in the codebase. #281
[ ] Add appropriate backend tests
[ ] Add checkers for Course, Tutor, Tutor Assignment, and Office Hours when they are cretated
...
Testing:
[ ] Front end tests pass and there is adequate coverage
[ ] Back end tests pass and there is adequate coverage
...
User Story
As an admin, I can upload a CSV containing all office hours data for ULA's so that I can speed up the process of adding office hours data to the app. As a programmer, it would be better if we use the provided service if there already exists one. So that we could increase readability and minimize the file size.
Discussion
On the office hours page, we already have the ability to upload a CSV to speed up the process of creating courses. While it would be better if this is refactored into the preferred format.
Acceptance Criteria
Implementation Todos
Front end:
Back end:
Testing: