-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Rest: Audit Trail feature #11072
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
Rest: Audit Trail feature #11072
Conversation
… because it was overriding the newer version log4j-slf4j2-impl
…/main/DURACOM-317
|
@steph-ieffam , the recording of change events of an item should ideally begin only once the item enters the workflow, or alternatively when it is moved to the “in archive” state. While the item remains in the workspace, the changes are generally not relevant to admins. |
|
@steph-ieffam , we need to decide what happens with the audit trail of a DSpace object when it is deleted. |
|
@steph-ieffam , It should be evaluated how much overhead (time) is caused by writing the audit trail during a bulk import or bulk update. How significantly is the performance of operations affected when a large number of changes are made to a large number of DSpace objects? |
|
@tdonohue all of your feedback are now addressed. Let me know if anything else is spotted |
tdonohue
left a comment
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.
@steph-ieffam : Thanks for those updates! All my prior feedback is addressed, but I found a small issue in testing the solr-core-management script.
First off, I want to note that this script works well! I was able to successfully export my audit core to CSV. Then destroy all data in the audit core, and then restore it by reimporting from CSV.
However, the issue I ran into is that this solr-core-management script allows you to specify a --directory from the User Interface. See this screenshot:
This should not be allowed as it lets users from the Admin UI to arbitrarily write these files to whatever directory they want on the server. Additionally, it makes the script un-usable from the Admin UI because a user cannot see the exported content.
So, in my opinion, if we want this script to be available from the Admin UI, then it needs to be updated to work like the export and import scripts. The export script when run from the admin UI will not let the user specify a directory/file, but will let them download the results. The import script when run from the Admin UI will require the user to drag & drop or select a file to import.
The other option here is to simply remove the ability to run the solr-core-management tool from the Admin UI and make it a CLI tool only. We could always enhance it at a later date.
Once this minor issue is fixed, I'm +1 this backend PR.
|
Hey @tdonohue Your feedback has been addressed and now the Solr Management Script is no longer available in the scripts list on the UI. Thanks for the feedback |
|
Hi @steph-ieffam, |
tdonohue
left a comment
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.
@steph-ieffam : Thanks for the updates. I've verified my prior feedback has been addressed. However, there are still a few bugs I'm seeing from the User Interface. I've reported them in this review on the User Interface PR
(I suspect a few of those may be backend bugs, but I've not verified where the bug exists)
Beyond that, this PR looks good to me now
paulo-graca
left a comment
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.
Thank you, @steph-ieffam, for this contribution! I’m also following @tdonohue’s comments - when he considers it ready to move forward, you can count on my +1 as well.
tdonohue
left a comment
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.
👍 Thanks @steph-ieffam ! I retested and re-reviewed today. My feedback has been addressed & this is working well overall. I still can reproduce the duplicate dc.identifier.uri bug, but I've figured out it only occurs if you set identifiers.submission.register = true...so I'll move that to a follow-up ticket and assign it to you shortly.
This PR looks good enough as-is. and will be merged as it's already at +3.
Prior feedback was already addressed
References
Description
the audit feature can be enabled disabled using the property in
audit.cfgcalledaudit.enabledIncludes a Solr Import/Export script documented here: https://wiki.lyrasis.org/display/DSDOC10x/Solr+Data+Management
Instructions for Reviewers
Once Backend and Frontend are both installed please make sure
audit.enabled = trueand that the new audit core has been deployed to the SOLR service.Then start with creating/editing an item.
The audit events include the changed performed on item metadata or dspace objects creations: metadata removed, added (replace is considered as removal and the new adding of a different metadata).
Bundle creation events are displayed as well.
Bitstream creation/deletion is shown and the bitstream checksum is displayed.
Metadata events show the information of the metadata involved (textvalue, authority, place and so on)
Informations about the user who performed these changes are displayed for each event
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.