feat(tenancy): the administrators of a tenant invite people to it #51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/49-tenant-members"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #49 (step 2; step 1 was #50).
Two roles, two ways in:
Changes
/t/<tenant>/members, Configuration section, tenant administrators only): members with their roles, role change, removal; pending invitations with withdrawal; invitation form (address + roles).migrations/0004_tenant_invitations.sql,tenant-invitations.ts):(tenant, email, roles, invited_by, created_at). An invitation shows the address only and answers alike whether the instance knows it or not.GET /api/tenant/members(members and invitations),PUT|DELETE /api/tenant/members/<account>,POST /api/tenant/invitations,DELETE /api/tenant/invitations/<email>.PUTonly changes the roles of an existing member, so an account cannot be pulled into a tenant by its identifier.409).SELECT, INSERT, UPDATE, DELETEontenant_invitations(yarn admin migrateapplies it).Verification
yarn test: 191 tests pass (invitation alike for known and unknown addresses, refusal of an address already in the tenant, admission at the coming of the account, disabled accounts, last administrator, routing, form warning).PostgresInvitationStorewere run against the local PostgreSQL container inside a rolled-back transaction.yarn buildpasses;tscshows no new error.Deployment
Run
yarn admin migrate(ornode bin/studio-admin.ts migratein the image) before serving: the members page readstenant_invitations.🤖 Generated with Claude Code
feat(tenancy): the administrators of a tenant manage its membersto feat(tenancy): the administrators of a tenant invite people to it