amida-tech / greyscale

Indaba - Turn knowledge into data :earth_africa: :earth_asia: :earth_americas:
http://indaba.amida-tech.com
Other
8 stars 4 forks source link

INBA-761 - Need to return existing user too. #451

Closed jmfadeley closed 6 years ago

jmfadeley commented 6 years ago

Prior PRs slightly broke the user invites. When a user was already in a system, it was supposed to just assign them to the project and return the existing user for insertion into the User Lists, displaying a toast pop up like ("The user is already in the system, but we've added them to the project for you..."

To test, create a project and invite a user who is already in the system but not yet assigned to the project. Ensure that the user appears in the list and you get the toast. Then, invite a brand new user into the project. Ensure that you get the "User invited" toast and the user appears.