chore: rollback PR #18025 (#18118)

Rollback https://github.com/coder/coder/pull/18025
This commit is contained in:
Bruno Quaresma
2025-05-30 11:00:26 -03:00
committed by GitHub
parent a19539ce83
commit f974add373
15 changed files with 64 additions and 87 deletions

4
coderd/apidoc/docs.go generated
View File

@ -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"
}
}

View File

@ -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"
}
}

View File

@ -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,

View File

@ -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)
}