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

Move users email to contacts #3457

rjmackay opened this Issue Dec 13, 2018 · 0 comments


None yet
1 participant
Copy link

rjmackay commented Dec 13, 2018

To make the data model more like TenFour and more useful to importing from v2, we want to move all contact info into the contacts table. We also need to enable adding names to contacts - who may not be users that ever log in.

Schema changes:

  • Remove
  • Add user.person_type to differentiate between full users (with roles, and passwords) and contacts

Repo changes:

  • Update functions that do lookups by email to look in contacts instead
  • Update create/update to insert contacts at the same time we create/update the user
  • Update validators to validate user.contacts

Frontend changes:

  • Update frontend to send email as part of user.contacts
  • Update frontend to use user API instead of contacts where possible


  • Add tests for every function that's modified.
  • Existing behat tests should pass
  • Behat sample data will need to be updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment