(row database.GetGroupsRow, members []database.GroupMember, totalMemberCount int)
| 361 | } |
| 362 | |
| 363 | func 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 | |
| 379 | func TemplateInsightsParameters(parameterRows []database.GetTemplateParameterInsightsRow) ([]codersdk.TemplateParameterUsage, error) { |
| 380 | // Use a stable sort, similarly to how we would sort in the query, note that |
no test coverage detected