mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
fix(group): preserve identity through lifecycle
Group names are mutable and reusable, so they cannot own durable state. Preserve immutable identities across lifecycle operations and commit invite use with membership under transaction-time guards.
This commit is contained in:
1 parent
c853f2910f
commit
81af2053c0
6 files changed
+985
-179
No files matched your search
+7
-2
@@ -105,11 +105,16 @@ export type GroupRole = "owner" | "admin" | "viewer";
|
||||
|
||||
export interface GroupMember {
|
||||
/**
|
||||
* GitHub login (case-insensitive). Ids are matched when stored, logins
|
||||
* otherwise; identityMatches handles both.
|
||||
* GitHub login (case-insensitive). An unbound all-digit entry (legacy
|
||||
* `adminIds`) is read as a user id; see `memberMatches`.
|
||||
*/
|
||||
login: string;
|
||||
role: GroupRole;
|
||||
/**
|
||||
* Immutable GitHub user id of the member, bound by the server (invite
|
||||
* acceptance, the member's sign-in). Once bound, only that account matches.
|
||||
*/
|
||||
userId?: string;
|
||||
}
|
||||
|
||||
export interface Group {
|
||||
|
||||
Reference in new issue
Block a user