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

Function FormatGroupName

backend/utils/member.go:26–31  ·  view source on GitHub ↗
(group *store.GroupMessage)

Source from the content-addressed store, hash-verified

24}
25
26func FormatGroupName(group *store.GroupMessage) string {
27 if group.Email != "" {
28 return common.FormatGroupEmail(group.Email)
29 }
30 return common.FormatGroupEmail(group.ID)
31}
32
33// GetUsersByRoleInIAMPolicy gets users in the iam policy.
34// The role can be either with or without the "roles/" prefix.

Callers 1

convertToV1GroupMethod · 0.92

Calls 1

FormatGroupEmailFunction · 0.92

Tested by

no test coverage detected