mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
Rollback https://github.com/coder/coder/pull/18025
This commit is contained in:
4
coderd/apidoc/docs.go
generated
4
coderd/apidoc/docs.go
generated
@ -17865,9 +17865,7 @@ const docTemplate = `{
|
||||
"format": "uuid"
|
||||
},
|
||||
"workspace_owner_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"workspace_owner_username": {
|
||||
"description": "WorkspaceOwnerName is the username of the owner of the workspace.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
|
4
coderd/apidoc/swagger.json
generated
4
coderd/apidoc/swagger.json
generated
@ -16315,9 +16315,7 @@
|
||||
"format": "uuid"
|
||||
},
|
||||
"workspace_owner_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"workspace_owner_username": {
|
||||
"description": "WorkspaceOwnerName is the username of the owner of the workspace.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
|
@ -1098,8 +1098,7 @@ func (api *API) convertWorkspaceBuild(
|
||||
CreatedAt: build.CreatedAt,
|
||||
UpdatedAt: build.UpdatedAt,
|
||||
WorkspaceOwnerID: workspace.OwnerID,
|
||||
WorkspaceOwnerName: workspace.OwnerName,
|
||||
WorkspaceOwnerUsername: workspace.OwnerUsername,
|
||||
WorkspaceOwnerName: workspace.OwnerUsername,
|
||||
WorkspaceOwnerAvatarURL: workspace.OwnerAvatarUrl,
|
||||
WorkspaceID: build.WorkspaceID,
|
||||
WorkspaceName: workspace.Name,
|
||||
|
@ -79,8 +79,7 @@ func TestWorkspaceBuild(t *testing.T) {
|
||||
}, testutil.WaitShort, testutil.IntervalFast)
|
||||
wb, err := client.WorkspaceBuild(testutil.Context(t, testutil.WaitShort), workspace.LatestBuild.ID)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, up.Username, wb.WorkspaceOwnerUsername)
|
||||
require.Equal(t, up.Name, wb.WorkspaceOwnerName)
|
||||
require.Equal(t, up.Username, wb.WorkspaceOwnerName)
|
||||
require.Equal(t, up.AvatarURL, wb.WorkspaceOwnerAvatarURL)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user