Repository navigation
app/: invitations and members (sc-8900) - #65
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-tokens
branch
from
December 2, 2026 13:57
2f9b211 to
19120e0
Compare
ndbroadbent
force-pushed
the
laravel-invitations
branch
from
December 2, 2026 13:57
c97ab6e to
36f6cdb
Compare
ndbroadbent
force-pushed
the
laravel-tokens
branch
from
December 2, 2026 14:00
19120e0 to
9561ebd
Compare
ndbroadbent
force-pushed
the
laravel-invitations
branch
from
December 2, 2026 14:00
36f6cdb to
b790de6
Compare
VisualCIdocspring/visualci · build #328 · 331 unchanged · no changes This PR vs base: nothing since #224, across 6 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
laravel-invitations
branch
from
December 2, 2026 14:17
b790de6 to
b1fdf5f
Compare
ndbroadbent
force-pushed
the
laravel-tokens
branch
from
December 2, 2026 14:36
6fc1d73 to
750ec4a
Compare
ndbroadbent
force-pushed
the
laravel-invitations
branch
from
December 2, 2026 14:36
b1fdf5f to
6195eef
Compare
ndbroadbent
force-pushed
the
laravel-tokens
branch
from
December 2, 2026 15:28
750ec4a to
a26b4d3
Compare
ndbroadbent
force-pushed
the
laravel-invitations
branch
2 times, most recently
from
December 2, 2026 16:01
1651f49 to
9533f34
Compare
ndbroadbent
force-pushed
the
laravel-tokens
branch
2 times, most recently
from
December 2, 2026 16:06
503c4b8 to
db21706
Compare
ndbroadbent
force-pushed
the
laravel-invitations
branch
from
December 2, 2026 16:06
9533f34 to
33a4379
Compare
ndbroadbent
force-pushed
the
laravel-tokens
branch
from
December 2, 2026 16:40
db21706 to
4e01a6a
Compare
…gin (admins; 50 a day per organization, 3 a day per address, staff exempt), waiting for the invitee to accept or decline whether or not they have an account (recorded for their account when one exists); accepting never lowers a role; admins withdraw invitations, change roles and remove members, except where the forge decides the membership, and the organization keeps an admin; a removed member is told unless they left themselves
…aren't in (their tools are the admin MCP's, with its audit log); changing or removing a member locks the admin memberships first, so two admins demoting each other can't leave none; accepting re-reads the invitation FOR UPDATE (a withdrawn one or a second click is a 404) and tells the person they joined
… and dependencies merged
ndbroadbent
force-pushed
the
laravel-invitations
branch
from
December 2, 2026 17:06
33a4379 to
8f5df99
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of sc-8900 (the auth side of the Laravel Rust port), stacked on #64 (tokens).
Ports today's invitations and member management to
app/:invitations, as today's (withfor_user_idand the pending unique indexes).POST /api/ui/orgs/{org}/invitations, admins): by email or GitHub login. If the account exists already, the invitation is recorded for it. Re-inviting changes the pending invitation's role. Daily limits: 50 per organization, 3 per address; staff are exempt. An invitation by login to someone without an account sends no email.GET /api/ui/invitations,POST …/{id}/accept|decline): an invitation shows when it was recorded for them, sent to their verified email, or sent to one of their github.com or gitlab.com logins. Accepting never lowers a role they already have. Declining withdraws the invitation.GET /api/ui/orgs/{org}/memberslists members (with emails, for admins) and pending invitations.DELETE …/invitations/{id}withdraws an invitation.PATCH|DELETE …/members/{pid}changes a member's role or removes them. Memberships the forge decides can't be changed (422), and the organization keeps an admin (422). A removed member is emailed, unless they removed themselves.To::Address, for invitees who have no account yet.Status codes: bad input 422, over the daily limit 429, a member who isn't an admin 403, anyone else 404.
Tests:
app/tests/invitations.rs, 4 tests, passing on docspring-dev; clippy is clean.