-
Notifications
You must be signed in to change notification settings - Fork 7
Add auditing of what method was used for data imports, updates, deletes #7145
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
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 enhances the transaction audit logging system by adding detailed transaction metadata tracking. The changes introduce a new TransactionDetails field to capture contextual information about database transactions, including the source of requests, client libraries used, import options, and data iterator usage.
- Added
TransactionDetailenum to capture structured metadata about transactions - Refactored audit event constructors to use
TransactionAuditEventobjects instead of just IDs - Updated update services across the codebase to flag when DataIterator is used
- Enhanced HTTP utility methods to extract client and product information from requests
Reviewed Changes
Copilot reviewed 37 out of 37 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| TransactionAuditProvider.java | Added TransactionDetail enum and transactionDetails field/methods to TransactionAuditEvent |
| BaseViewAction.java | Added utility methods to extract transaction audit details from view context |
| HttpUtil.java | Added public methods to extract client library and referer information from requests |
| AbstractQueryUpdateService.java | Added overload of createTransactionAuditEvent accepting transaction details |
| Multiple UpdateService files | Added logic to flag DataIteratorUsed in configParameters |
| Multiple AuditEvent files | Replaced setTransactionId() with setTransactionEvent() calls |
| QueryController.java | Added auditDetails extraction and propagation through JSON commands |
| AssayRunCreator.java | Updated interface signature to accept transactionDetails parameter |
| Various implementation files | Updated method signatures and calls to propagate transactionDetails |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
api/src/org/labkey/api/assay/pipeline/AssayUploadPipelineJob.java
Outdated
Show resolved
Hide resolved
| _forceSaveBatchProps = true; | ||
| } | ||
|
|
||
| // Do all the real work of the import |
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.
minor: seems like this comment above should stay with (come right before) the call to saveExperimentRun
Rationale
This PR enhances the transaction audit logging by adding detailed transaction metadata tracking. The changes introduce a new TransactionDetails field to capture contextual information about requests, including the source of requests, client libraries used, import options, and data iterator usage.
Related Pull Requests
Changes