mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: update WorkspaceOwnerName to use user.name instead of user.username (#18025)
We have been using the user.username instead of user.name in wrong places, making it very confusing for the UI.
This commit is contained in:
@@ -102,6 +102,7 @@ var auditableResourcesTypes = map[any]map[string]Action{
|
||||
"autostop_requirement_weeks": ActionTrack,
|
||||
"created_by": ActionTrack,
|
||||
"created_by_username": ActionIgnore,
|
||||
"created_by_name": ActionIgnore,
|
||||
"created_by_avatar_url": ActionIgnore,
|
||||
"group_acl": ActionTrack,
|
||||
"user_acl": ActionTrack,
|
||||
@@ -131,6 +132,7 @@ var auditableResourcesTypes = map[any]map[string]Action{
|
||||
"external_auth_providers": ActionIgnore, // Not helpful because this can only change when new versions are added.
|
||||
"created_by_avatar_url": ActionIgnore,
|
||||
"created_by_username": ActionIgnore,
|
||||
"created_by_name": ActionIgnore,
|
||||
"archived": ActionTrack,
|
||||
"source_example_id": ActionIgnore, // Never changes.
|
||||
},
|
||||
@@ -189,6 +191,7 @@ var auditableResourcesTypes = map[any]map[string]Action{
|
||||
"max_deadline": ActionIgnore,
|
||||
"initiator_by_avatar_url": ActionIgnore,
|
||||
"initiator_by_username": ActionIgnore,
|
||||
"initiator_by_name": ActionIgnore,
|
||||
"template_version_preset_id": ActionIgnore, // Never changes.
|
||||
},
|
||||
&database.AuditableGroup{}: {
|
||||
|
||||
Reference in New Issue
Block a user