-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
29dc71f
Add file system audit events to apps
labkey-susanh d65d5eb
Show help tip for original values in timeline details
labkey-susanh e0f8343
@labkey/componenets v6.56.1-fileNameAudit.1
labkey-susanh f93c653
Merge from develop
labkey-susanh 3cd3930
use a record instead of a Map for case-insensitivity
labkey-susanh 64bab66
@labkey/components v6.56.3-fileNameAudit.2
labkey-susanh d17542c
List audit logs now have transaction ids
labkey-susanh fc4dfe2
Link to proper tab from transaction id based on event type
labkey-susanh 0b60d24
Active tab for transaction audit logs grid
labkey-susanh 6ff959f
Add test with original value; udpate test for expected audit event types
labkey-susanh 39e7b79
Merge remote-tracking branch 'origin/develop' into fb_fileNameAudit
labkey-susanh 38f60bc
Move toLowerCase to usage
labkey-susanh cda1505
Merge remote-tracking branch 'origin/develop' into fb_fileNameAudit
labkey-susanh d3d9d57
release date and version
labkey-susanh adceb88
v6.57.0
labkey-susanh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
packages/components/src/internal/renderers/TransactionAuditIdRenderer.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import { Map } from 'immutable'; | ||
| import React, { PureComponent, ReactNode } from 'react'; | ||
| import { AppLink } from '../url/AppLink'; | ||
| import { AppURL } from '../url/AppURL'; | ||
| import { caseInsensitive } from '../util/utils'; | ||
|
|
||
| interface Props { | ||
| row: Map<any, any>; | ||
| } | ||
|
|
||
| export class TransactionAuditIdRenderer extends PureComponent<Props> { | ||
| render(): ReactNode { | ||
| const { row } = this.props; | ||
| const _row = row.toJS(); | ||
| const id = caseInsensitive(_row, 'transactionId')?.value; | ||
| if (!id) { | ||
| return null; | ||
| } | ||
| let url = AppURL.create('audit', id); | ||
| const activeTab = caseInsensitive(_row, 'EventType')?.value; | ||
| if (activeTab) { | ||
| url = url.addParam('tab', activeTab); | ||
| } | ||
| return <AppLink to={url}>{id}</AppLink>; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -125,6 +125,7 @@ | |
|
|
||
| } | ||
|
|
||
| .original-value-icon, | ||
| .timeline-comments-icon { | ||
| color: $brand-primary; | ||
| } | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.