Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add InvitedUser model, policy, and controller #1350

Copy link
Copy link
@joshsmith

Description

@joshsmith
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.