mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Audit date filter/kira pilot (#4845)
* sql query * added time_to * added validation error * documentation * attempt to add test * removed whiitespace * fix: ensure date_from and date_to are applied correct audit logs * added more tests * ran make gen * PR feedback Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
co-authored by
Dean Sheather
parent
6bfdccda2f
commit
a73dd4f45d
@@ -109,13 +109,14 @@ var AuditableResources = auditMap(map[any]map[string]Action{
|
||||
"organization_id": ActionIgnore, // Never changes.
|
||||
"avatar_url": ActionTrack,
|
||||
},
|
||||
// We don't show any diff for the WorkspaceBuild resource
|
||||
// We don't show any diff for the WorkspaceBuild resource,
|
||||
// save for the template_version_id
|
||||
&database.WorkspaceBuild{}: {
|
||||
"id": ActionIgnore,
|
||||
"created_at": ActionIgnore,
|
||||
"updated_at": ActionIgnore,
|
||||
"workspace_id": ActionIgnore,
|
||||
"template_version_id": ActionIgnore,
|
||||
"template_version_id": ActionTrack,
|
||||
"build_number": ActionIgnore,
|
||||
"transition": ActionIgnore,
|
||||
"initiator_id": ActionIgnore,
|
||||
|
||||
Reference in New Issue
Block a user