mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: make owner_name and owner_username consistent (#18081)
We've been using owner_name inconsistently as username. So this PR fixes it by making the attribute naming more consistent.
This commit is contained in:
@ -139,7 +139,7 @@ func TestAuditLogs(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
buildNumberString := strconv.FormatInt(int64(workspace.LatestBuild.BuildNumber), 10)
|
||||
require.Equal(t, auditLogs.AuditLogs[0].ResourceLink, fmt.Sprintf("/@%s/%s/builds/%s",
|
||||
workspace.OwnerName, workspace.Name, buildNumberString))
|
||||
workspace.OwnerUsername, workspace.Name, buildNumberString))
|
||||
})
|
||||
|
||||
t.Run("Organization", func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user