feat(backend): better filtering for audit logs API (#4023)

* feat: better filtering for audit logs

* chore: update ee ref

* fix: use csv instead of query array

* chore: update ee ref
This commit is contained in:
HugoCasa
2024-07-04 21:04:35 +02:00
committed by GitHub
parent a2b707f2cb
commit 1b78145302
4 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ windmill-parser-graphql = { path = "./parsers/windmill-parser-graphql" }
windmill-parser-php = { path = "./parsers/windmill-parser-php" }
windmill-api-client = { path = "./windmill-api-client" }
axum = { version = "^0.7", features = ["multipart"] }
axum = { version = "^0.7", features = ["multipart"] }
headers = "^0"
hyper = { version = "^1", features = ["full"] }
tokio = { version = "^1", features = ["full", "tracing"] }
+1 -1
View File
@@ -1 +1 @@
ffc6e57d99f19adda60fa4baa8623413c44bb4dd
d414242f92cfaf9f364e9aeb321a511c3ad46fa7
+10
View File
@@ -114,6 +114,16 @@ paths:
- $ref: "#/components/parameters/After"
- $ref: "#/components/parameters/Username"
- $ref: "#/components/parameters/Operation"
- name: operations
in: query
description: comma separated list of exact operations to include
schema:
type: string
- name: exclude_operations
in: query
description: comma separated list of operations to exclude
schema:
type: string
- $ref: "#/components/parameters/ResourceName"
- $ref: "#/components/parameters/ActionKind"
+2
View File
@@ -28,6 +28,8 @@ pub struct AuditLog {
pub struct ListAuditLogQuery {
pub username: Option<String>,
pub operation: Option<String>,
pub operations: Option<String>,
pub exclude_operations: Option<String>,
pub action_kind: Option<String>,
pub resource: Option<String>,
pub before: Option<chrono::DateTime<chrono::Utc>>,