You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: consolidate audit logging into internal/audit provider (#541)
* refactor: consolidate audit logging into internal/audit provider
Replace two duplicate audit log helpers (graphql/audit_log_helper.go
and http_handlers/audit_log_helper.go) with a single audit.Provider
in internal/audit/ following the project's standard provider pattern.
- Create internal/audit/provider.go with Provider interface + LogEvent
- Inject AuditProvider into graphql.Dependencies and http_handlers.Dependencies
- Initialize audit provider in cmd/root.go
- Update all 32 call sites across 29 files to use audit.Event
- Delete the two old helper files
- Callers now extract IP/UserAgent and pass in Event struct directly
* chore: fix test
0 commit comments