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

Verify CSV Roster format #138

Open
techmamba24 opened this issue Oct 18, 2017 · 3 comments
Open

Verify CSV Roster format #138

techmamba24 opened this issue Oct 18, 2017 · 3 comments
Assignees

Comments

@techmamba24
Copy link
Collaborator

Verify the format of the CVS roster that is uploaded is of the correct format. Must only contain four columns: 1st column should contain student emails, 2nd column should contain student last name, 3rd column should contain student first name and 4th column should be the official course_num of the course. Essentially upon each iteration where data from a row in the csv roster is being parsed, add some basic checks to ensure the data in the specific column looks like what it should be (like if its first column, the data in the field should end with @buffalo.edu sign since its supposed to be an email).

@vanpyrzericj
Copy link

@aamelunia Which controller is this located in? Is a post action/method already stubbed out that I'm just modifying to include the CSV file validation?

@techmamba24
Copy link
Collaborator Author

@vanpyrzericj https://github.com/Theknickerbocker/UB_Grader/blob/master/server/controllers/CourseController.js
It's in coursecontroller, the function labelled 'import roster'... The route and all is already set up you just have to add the csv file validation. If you have any other questions just post in the ryver forum.

@theknickerbocker
Copy link
Collaborator

@aamelunia Was this finished by the collab?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants