Skip to content

Conversation

@labkey-susanh
Copy link
Contributor

@labkey-susanh labkey-susanh commented Jul 23, 2025

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

  • Add file system audit events for apps
  • Add TransactionAuditIdRenderer for displaying link to page of audit records associated with a transaction id
  • Update AuditDetails to show original file name values in tooltip when appropriate

@labkey-susanh labkey-susanh requested a review from cnathe July 24, 2025 17:31
# 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();
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@labkey-susanh labkey-susanh merged commit 2e26f75 into develop Jul 30, 2025
3 checks passed
@labkey-susanh labkey-susanh deleted the fb_fileNameAudit branch July 30, 2025 19:34
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.

3 participants