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

Validate new Learners and Instructors #652

Merged
merged 5 commits into from
Aug 7, 2014

Conversation

jrjohnson
Copy link
Member

Validating single entries on the Instructor and Learner tabs - with tests
Validating CSV uploads and displaying errors by line for these tabs - no tests, couldn't get the file upload to work correctly.

Need to confirm that these messages are correct:

  • Last Name is Required
  • First Name is Required
  • Email is Required
  • Campus ID is Required
  • Email address is not valid
  • Campus ID is not long enough
  • Campus ID is too long
  • Incorrect Number of Fields
  • A user with this email is already in the system
  • Email address in the file more than once

Fixes #561

Adding a new user from the learner groups or instructors tab now
validates input for required fields, email address validity, and campus
id min/max length.
This was left around, but now that we are validating it needs to go.
@jrjohnson
Copy link
Member Author

@saschaben @dartajax I put a list of the error messages in this pull request. Can you make sure to give them a look and see if you would rather say something else. Once they are all checked off the a developer can take a look and merge.

@dartajax
Copy link
Member

dartajax commented Aug 1, 2014

Should there also be a test to see if the same Campus ID is used more than once in the file raising an error like "Campus ID in the file more than once"? Those errors look good to me otherwise.

@saschaben
Copy link
Member

AOK. No errMsg for duplicate campus IDs, as temporary IDs may be issued and may be non-unique in some cases.

move it along!

@dartajax
Copy link
Member

dartajax commented Aug 1, 2014

That makes sense.

thecoolestguy added a commit that referenced this pull request Aug 7, 2014
Validate new Learners and Instructors
@thecoolestguy thecoolestguy merged commit 6a7f801 into ilios:master Aug 7, 2014
@jrjohnson jrjohnson deleted the 561-csvrefactor branch August 8, 2014 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor CSV upload / user insert tool for instructor and learner groups
4 participants