-
Notifications
You must be signed in to change notification settings - Fork 8
Feature/audit logs #708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/audit logs #708
Conversation
- Introduced new AuditLogs component for displaying audit data. - Implemented getAuditData service to fetch audit logs based on various parameters. - Added AuditFilterModal for filtering options in the audit logs. - Updated migration routes to include endpoint for fetching audit data. - Enhanced settings component to integrate audit logs functionality. - Added necessary styles and interfaces for the new components.
…nd audit log components - Updated migration routes and service to use optional chaining for safer access to properties. - Enhanced AuditLogs component with optional chaining to prevent potential runtime errors. - Ensured consistent handling of undefined values across various data access points.
….dockerignore files
…ty for variable updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for audit logs in both the UI and API layers, along with new Docker configuration updates for the migration services. Key changes include the introduction of the AuditLogs component and related styling in the UI, new API endpoints and service logic to fetch audit data, and updates to Docker and environment configuration files.
Reviewed Changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ui/src/components/Common/Settings/index.tsx | Added AuditLogs component import and tab logic; minor code cleanups. |
| ui/src/components/Common/Settings/Settings.scss | Updated styles for borders and layout adjustments. |
| ui/src/components/AuditLogs/* | New AuditLogs related components, styles, and interfaces. |
| ui/src/components/AuditFilterModal/* | Added AuditFilterModal component and styles for filtering audit data. |
| ui/src/cmsData/setting.json | Added audit_logs configuration for CMS settings. |
| Dockerfile, setup-docker.sh, docker-compose.yml, .dockerignore | New and updated Docker and compose configurations for the apps. |
| api/src/services/migration.service.ts | Introduced getAuditData service and updated data transformation logic. |
| api/src/routes/migration.routes.ts, api/src/controllers/migration.controller.ts | Added new API routes and controller for audit data. |
| api/src/constants/index.ts | Added constants for GET_AUDIT_DATA used by new audit log API. |
| api/Dockerfile, api/.dockerignore | Docker configurations and ignore files updated for the API. |
| .talismanrc, .dockerignore | Updated ignore and checksum configurations. |
Comments suppressed due to low confidence (1)
api/src/services/migration.service.ts:685
- The string 'Entries_Select_feild' appears to have a typo; please verify if it should be 'Entries_Select_field'.
moduleName === 'Entries_Select_feild' ? transformedData = transformedData?.filter((log) => {
…deletion response handling
No description provided.