code-corps / code-corps-api

Elixir/Phoenix API for Code Corps.
https://www.codecorps.org
MIT License
234 stars 86 forks source link

Add InvitedUser model, policy, and controller #1350

Open joshsmith opened 6 years ago

joshsmith commented 6 years ago

Problem

We want to add an InvitedUser with the following attributes:

And the following relationships:

We’ll need create, update, index and show endpoints.

If inviting to a project, the policy should check permissions similar to how ProjectUser works.

When the invite flow is complete, ie to claim an invite, we’ll need to:

It may make sense to do this on the user create endpoint by specifying the InvitedUser id as a relationship.

theochino commented 2 years ago

Sorry for adding to this bug. Trying to get the attention of @joshsmith regarding another repo but all the emails are bouncing. @joshsmith could you reach at me?