Add InvitedUser model, policy, and controller

Aperta
#1,350 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@begedin ci sta già lavorando.

Dal 28/12/2017.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

in progress

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.

Lingua principale
Elixir
Stelle
234
Fork
82
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di code-corps/code-corps-api

Tutte le issue di code-corps/code-corps-api

Issue simili

Altre issue su Elixir

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.