-
Notifications
You must be signed in to change notification settings - Fork 2
Add audit logging for file fields and renaming of files #1836
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
Conversation
# Conflicts: # packages/components/package-lock.json # packages/components/package.json # packages/components/releaseNotes/components.md
| return null; | ||
| } | ||
| let url = AppURL.create('audit', id); | ||
| const activeTab = caseInsensitive(_row, 'EventType')?.value.toLowerCase(); |
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.
curious why the use of toLowerCase here? could / should that be done on the other side when we use this param?
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.
It's done because that's what the audit event constants have for their values. which are what we use for the ids in the QueryConfigMap, which is what we match against for determining the active tab. Could be done where we pass in the value to the TabbedGridPanel to be slightly more robust. I'll make it so.
Rationale
When files are uploaded to store on the file system, we need to avoid name collisions and thus must sometimes rename files. We do this by appending counter suffixes to the file name base. For better accountability, we want to now add audit records for these file uploads and renames. See the related PRs for more info.
Related Pull Requests
Changes
TransactionAuditIdRendererfor displaying link to page of audit records associated with a transaction idAuditDetailsto show original file name values in tooltip when appropriate