Skip to content

feat(auth): implement audit log filtering by client_id#118

Merged
allisson merged 19 commits intomainfrom
audit-log-filter
Mar 9, 2026
Merged

feat(auth): implement audit log filtering by client_id#118
allisson merged 19 commits intomainfrom
audit-log-filter

Conversation

@allisson
Copy link
Owner

@allisson allisson commented Mar 9, 2026

Added the ability to filter audit logs by a specific client ID via the API, including database optimizations and full-stack support.

Key changes:

  • API: Added optional client_id query parameter to the audit logs list endpoint.
  • Logic: Updated Repository and Use Case layers to support clientID filtering.
  • Database: Created migrations to add an index on client_id in the audit_logs table for PostgreSQL and MySQL.
  • Observability: Updated the metrics decorator to include the new filter parameter.
  • Testing: Added unit tests for all layers and a new integration test case in auth_flow_test.go.
  • Documentation: Updated OpenAPI specifications and audit log reference guides.

allisson added 19 commits March 7, 2026 21:02
Added the ability to filter audit logs by a specific client ID via the API, including database optimizations and full-stack support.

Key changes:
- API: Added optional client_id query parameter to the audit logs list endpoint.
- Logic: Updated Repository and Use Case layers to support clientID filtering.
- Database: Created migrations to add an index on client_id in the audit_logs table for PostgreSQL and MySQL.
- Observability: Updated the metrics decorator to include the new filter parameter.
- Testing: Added unit tests for all layers and a new integration test case in auth_flow_test.go.
- Documentation: Updated OpenAPI specifications and audit log reference guides.
@allisson allisson merged commit 6f6eb2b into main Mar 9, 2026
3 checks passed
@allisson allisson deleted the audit-log-filter branch March 9, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant