Add the change-member-role endpoint, Owner only #57
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/change-member-role-endpoint"
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?
Implements task 84:
PUT /api/groups/{groupId}/members/{userId}, Owner only.400,rolefield) — ADR-0052, mirroring ADR-0050's reasoning for invitations. Transfer of ownership (task 132) is the only way to create a second Owner.409, closed against concurrent mutual demotion by a single locked SQL statement (WITH ... FOR UPDATECTE feeding theUPDATE), not a read-then-write check. Proved with genuinely concurrent callers in both the repository tests and the endpoint tests.ADR-0052 records the two decisions and the concurrency design in full.
Took ADR number 0052 — checked against
mainand the openfeat/list-invitations-endpointPR immediately before pushing; neither claims it.Merged main in —
GroupMembershipRepository.csconflicted with PR #56'sListPendingForUserAsync. Resolved by hand (only the class-level doc comment actually conflicted; every constant and method was auto-merged into complete, non-interleaved blocks — verified by reading the whole file and confirming method/constant counts). Full test suite anddotnet format --verify-no-changesclean under the pinned SDK. This pushes new commits on top of the head the mergeable review covered, so it needs a fresh look.