chore: remove organization requirement from convertGroup() (#12195)

* feat: convertGroups() no longer requires organization info

Removing role information from some users in the api. This info is
excessive and not required. It is costly to always include
This commit is contained in:
Steven Masley
2024-02-21 15:58:11 -06:00
committed by GitHub
parent 3f65bd14cc
commit c3a7b13690
25 changed files with 350 additions and 278 deletions

58
coderd/apidoc/docs.go generated
View File

@ -8308,7 +8308,7 @@ const docTemplate = `{
"users": {
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.User"
"$ref": "#/definitions/codersdk.ReducedUser"
}
}
}
@ -9946,7 +9946,7 @@ const docTemplate = `{
"members": {
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.User"
"$ref": "#/definitions/codersdk.ReducedUser"
}
},
"name": {
@ -10996,6 +10996,60 @@ const docTemplate = `{
}
}
},
"codersdk.ReducedUser": {
"type": "object",
"required": [
"created_at",
"email",
"id",
"username"
],
"properties": {
"avatar_url": {
"type": "string",
"format": "uri"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"email": {
"type": "string",
"format": "email"
},
"id": {
"type": "string",
"format": "uuid"
},
"last_seen_at": {
"type": "string",
"format": "date-time"
},
"login_type": {
"$ref": "#/definitions/codersdk.LoginType"
},
"name": {
"type": "string"
},
"status": {
"enum": [
"active",
"suspended"
],
"allOf": [
{
"$ref": "#/definitions/codersdk.UserStatus"
}
]
},
"theme_preference": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"codersdk.Region": {
"type": "object",
"properties": {