Skip to content

adding workspace_build resource #4636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Oct 25, 2022
Merged
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into audit-on-build/kira-p…
…ilot
  • Loading branch information
Kira-Pilot committed Oct 21, 2022
commit cb4b5ee58e1b79b63beae99cc3f68deb48870ebf
3 changes: 2 additions & 1 deletion coderd/audit/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ type Auditable interface {
database.User |
database.Workspace |
database.WorkspaceBuild |
database.GitSSHKey
database.GitSSHKey |
database.Group
}

// Map is a map of changed fields in an audited resource. It maps field names to
Expand Down
1 change: 1 addition & 0 deletions coderd/database/dump.sql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions coderd/database/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions enterprise/audit/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ var AuditableResources = auditMap(map[any]map[string]Action{
"deadline": ActionIgnore,
"reason": ActionIgnore,
},
&database.Group{}: {
"id": ActionTrack,
"name": ActionTrack,
"organization_id": ActionIgnore, // Never changes.
"avatar_url": ActionTrack,
},
})

// auditMap converts a map of struct pointers to a map of struct names as
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.