Closed reginafcompton closed 5 years ago
@gregmundy - question for you!
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.
Closed in favor of https://github.com/brighthive/master-client-index/issues/17
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:
https://github.com/brighthive/master-client-index/blob/78d98f4e50f1a04968a8c524a2090b1d7c6b08cd/mci/api/v1_0_0/user_handler.py#L156