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:
oliver 2026-09-01 21:41:05 +08:00
parent 8915455b52
commit c181158209
8 changed files with 196 additions and 24 deletions

View file

@ -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,
)