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

Add InvitedUser model, policy, and controller #1350

Open
joshsmith opened this issue Dec 28, 2017 · 1 comment
Open

Add InvitedUser model, policy, and controller #1350

joshsmith opened this issue Dec 28, 2017 · 1 comment
Assignees
Milestone

Comments

@joshsmith
Copy link
Contributor

Problem

We want to add an InvitedUser with the following attributes:

  • email - string; required
  • role - string; optional
  • name - string; optional

And the following relationships:

  • invitee - optional; eventually set to the user created from this invite
  • inviter - required; the user who created the invite
  • project - optional; the project the invite is for

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:

  • create a user
  • set the invited_user’s invitee_id
  • create a project_user for the project with the specified role

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

@begedin begedin self-assigned this Dec 28, 2017
@begedin begedin mentioned this issue Dec 28, 2017
3 tasks
@begedin begedin added this to the User invites milestone Jan 3, 2018
@theochino
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants