Skip to content

feat: Add audit log filters #4078

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 11 commits into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix query
  • Loading branch information
BrunoQuaresma committed Sep 16, 2022
commit a678105c47f562c7ea97732dcc6e94f34243bcdf
4 changes: 2 additions & 2 deletions coderd/database/queries.sql.go

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

4 changes: 2 additions & 2 deletions coderd/database/queries/auditlogs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ WHERE
-- Filter resource_type
CASE
WHEN @resource_type :: text != '' THEN
resource_type = LOWER(@resource_type)
resource_type = @resource_type
ELSE true
END
-- Filter action
AND CASE
WHEN @action :: text != '' THEN
action = LOWER(@action)
action = @action
ELSE true
END
ORDER BY
Expand Down