Skip to content

feat: add preset filter for audit logins #6001

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

Closed
wants to merge 13 commits into from
Prev Previous commit
feat: add preset filter for audit logins
  • Loading branch information
Kira-Pilot committed Feb 2, 2023
commit 7a2114a0bf4809205eb24d1b96480f9f6d99a67e
8 changes: 4 additions & 4 deletions site/src/pages/AuditPage/AuditPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ const presetFilters = [
},
{ query: "resource_type:template action:create", name: "Added templates" },
{ query: "resource_type:user action:delete", name: "Deleted users" },
{
query: "resource_type:workspace_build action:start",
name: "Started builds",
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a preset very similar to this right below.

{
query: "resource_type:workspace_build action:start build_reason:initiator",
name: "Builds started by a user",
},
{
query: "resource_type:api_key action:login",
name: "User logins",
},
]

export interface AuditPageViewProps {
Expand Down