MCPcopy Create free account
hub / github.com/bytebase/bytebase / appendToRole

Function appendToRole

frontend/src/react/pages/settings/MembersPage.tsx:633–637  ·  view source on GitHub ↗
(role: string, entry: RoleMember)

Source from the content-addressed store, hash-verified

631 const roleToBindings = useMemo(() => {
632 const map = new Map<string, RoleMember[]>();
633 const appendToRole = (role: string, entry: RoleMember) => {
634 const arr = map.get(role) ?? [];
635 arr.push(entry);
636 map.set(role, arr);
637 };
638 for (const mb of bindings) {
639 if (scope === "project") {
640 // Group this member's bindings by role so we can mark a row expired

Callers 1

MemberTableByRoleFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected