fix: filter workspace_build resource on start/stop action (#5809)

* fix: ufilter workspace_build resource on start/stop action

* added preset filter for workspace_build filtering

* cleaning up the preset filters
This commit is contained in:
Kira Pilot
2023-01-20 13:23:13 -05:00
committed by GitHub
parent 918c37c358
commit 0e58772f5b
3 changed files with 45 additions and 8 deletions
+4 -2
View File
@@ -35,9 +35,11 @@ const presetFilters = [
name: "Created workspaces",
},
{ query: "resource_type:template action:create", name: "Added templates" },
{ query: "resource_type:user action:create", name: "Added users" },
{ query: "resource_type:template action:delete", name: "Deleted templates" },
{ query: "resource_type:user action:delete", name: "Deleted users" },
{
query: "resource_type:workspace_build action:start",
name: "Started builds",
},
]
export interface AuditPageViewProps {