8000 Fix golden file and dbmem · coder/coder@c35f497 · GitHub
[go: up one dir, main page]

Skip to content

Commit c35f497

Browse files
committed
Fix golden file and dbmem
1 parent 4ad041d commit c35f497

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cli/testdata/coder_list_--output_json.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"workspace_id": "===========[workspace ID]===========",
2424
"workspace_name": "test-workspace",
2525
"workspace_owner_id": "==========[first user ID]===========",
26-
"workspace_owner_name": "testuser",
2726
"workspace_owner_username": "testuser",
2827
"template_version_id": "============[version ID]============",
2928
"template_version_name": "===========[version name]===========",

coderd/database/dbmem/dbmem.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ func (q *FakeQuerier) convertToWorkspaceRowsNoLock(ctx context.Context, workspac
531531

532532
OwnerAvatarUrl: extended.OwnerAvatarUrl,
533533
OwnerUsername: extended.OwnerUsername,
534+
OwnerName: extended.OwnerName,
534535

535536
OrganizationName: extended.OrganizationName,
536537
OrganizationDisplayName: extended.OrganizationDisplayName,
@@ -628,6 +629,7 @@ func (q *FakeQuerier) extendWorkspace(w database.WorkspaceTable) database.Worksp
628629
return u.ID == w.OwnerID
629630
})
630631
extended.OwnerUsername = owner.Username
632+
extended.OwnerName = owner.Name
631633
extended.OwnerAvatarUrl = owner.AvatarURL
632634

633635
return extended

0 commit comments

Comments
 (0)
0