Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Add InvitedUser model, policy, and controller

Offen
#1,350 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@begedin arbeitet bereits daran.

Seit 28.12.2017.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

Vorherrschende Sprache
Elixir
Sterne
234
Forks
82
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus code-corps/code-corps-api

Alle Issues in code-corps/code-corps-api

Ähnliche Issues

Weitere Issues zu Elixir

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.