MCPcopy Index your code
hub / github.com/coder/coder / Group

Function Group

coderd/database/db2sdk/db2sdk.go:363–377  ·  view source on GitHub ↗
(row database.GetGroupsRow, members []database.GroupMember, totalMemberCount int)

Source from the content-addressed store, hash-verified

361}
362
363func Group(row database.GetGroupsRow, members []database.GroupMember, totalMemberCount int) codersdk.Group {
364 return codersdk.Group{
365 ID: row.Group.ID,
366 Name: row.Group.Name,
367 DisplayName: row.Group.DisplayName,
368 OrganizationID: row.Group.OrganizationID,
369 AvatarURL: row.Group.AvatarURL,
370 Members: ReducedUsersFromGroupMembers(members),
371 TotalMemberCount: totalMemberCount,
372 QuotaAllowance: int(row.Group.QuotaAllowance),
373 Source: codersdk.GroupSource(row.Group.Source),
374 OrganizationName: row.OrganizationName,
375 OrganizationDisplayName: row.OrganizationDisplayName,
376 }
377}
378
379func TemplateInsightsParameters(parameterRows []database.GetTemplateParameterInsightsRow) ([]codersdk.TemplateParameterUsage, error) {
380 // Use a stable sort, similarly to how we would sort in the query, note that

Callers 8

workspaceACLMethod · 0.92
chatACLGroupsMethod · 0.92
templateACLMethod · 0.92
patchGroupMethod · 0.92
groupMethod · 0.92
groupsMethod · 0.92

Calls 2

GroupSourceTypeAlias · 0.92

Tested by

no test coverage detected