mirror of
https://github.com/hansjone/netx.git
synced 2026-10-11 11:43:19 +08:00
Drop HTTP polling noise from operation audit by default.
Persist only business events and mutating/failed HTTP calls, and default the audit UI to a business view with an explicit HTTP filter. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
8915455b52
commit
c181158209
8 changed files with 196 additions and 24 deletions
|
|
@ -394,6 +394,7 @@ def api_audit_logs(
|
|||
page_size: int = Query(default=50, ge=1, le=200),
|
||||
username: str = Query(default=""),
|
||||
action: str = Query(default=""),
|
||||
exclude_noise: bool = Query(default=True),
|
||||
) -> dict[str, Any]:
|
||||
return list_audit_logs(
|
||||
db,
|
||||
|
|
@ -402,6 +403,7 @@ def api_audit_logs(
|
|||
page_size=page_size,
|
||||
username=username,
|
||||
action=action,
|
||||
exclude_noise=exclude_noise,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue