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

Should we populate Gender, Ethnicity, Education Level, and Employment Status? #14

Closed
reginafcompton opened this issue Jul 3, 2019 · 3 comments
Labels
question Further information is requested

Comments

@reginafcompton
Copy link
Contributor

Should we populate Gender, Ethnicity, Education Level, and Employment Status when POSTing a new user, if those values do not exist in the database?

Currently, we raise an error, if someone POSTs, say, a gender but that gender does not exist in the database:

result['error'] = 'Invalid gender type specified.'

@reginafcompton reginafcompton added the question Further information is requested label Jul 3, 2019
@reginafcompton
Copy link
Contributor Author

@gregmundy - question for you!

@reginafcompton
Copy link
Contributor Author

The classifications show consistency across data sets (e.g., ethnicity, gender) – we can likely pre-populate. That should happen upon initialization of an MCI.

E.g., we run a migrations script that adds the data! (New issue forthcoming.)

But why not create it when POSTing a user? You end up with the possibility of adding bad data, e.g., misspellings.

@reginafcompton
Copy link
Contributor Author

Closed in favor of #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant