mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
USERNAME EMAIL CREATED AT STATUS
|
||||
testuser testuser@coder.com [timestamp] active
|
||||
testuser2 testuser2@coder.com [timestamp] dormant
|
||||
+8
-8
@@ -2,11 +2,14 @@
|
||||
{
|
||||
"id": "[first user ID]",
|
||||
"username": "testuser",
|
||||
"avatar_url": "",
|
||||
"name": "",
|
||||
"email": "testuser@coder.com",
|
||||
"created_at": "[timestamp]",
|
||||
"last_seen_at": "[timestamp]",
|
||||
"status": "active",
|
||||
"login_type": "password",
|
||||
"theme_preference": "",
|
||||
"organization_ids": [
|
||||
"[first org ID]"
|
||||
],
|
||||
@@ -15,25 +18,22 @@
|
||||
"name": "owner",
|
||||
"display_name": "Owner"
|
||||
}
|
||||
],
|
||||
"avatar_url": "",
|
||||
"login_type": "password",
|
||||
"theme_preference": ""
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "[second user ID]",
|
||||
"username": "testuser2",
|
||||
"avatar_url": "",
|
||||
"name": "",
|
||||
"email": "testuser2@coder.com",
|
||||
"created_at": "[timestamp]",
|
||||
"last_seen_at": "[timestamp]",
|
||||
"status": "dormant",
|
||||
"login_type": "password",
|
||||
"theme_preference": "",
|
||||
"organization_ids": [
|
||||
"[first org ID]"
|
||||
],
|
||||
"roles": [],
|
||||
"avatar_url": "",
|
||||
"login_type": "password",
|
||||
"theme_preference": ""
|
||||
"roles": []
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user