-
Notifications
You must be signed in to change notification settings - Fork 16
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
Audit logs #683
Audit logs #683
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.
Whew, this is another big body of work. I made a number of edits, but are happy with the final result, but I made some larger changes so your review @rabstejnek would be nice to confirm I didn't break something.
Changes include:
- Added a daily task to build any missing initial reversions
- Update permissions with API exports to make consistent with log views
- Update tabular exports, merging summary and assessment and adding more assessment details
- Moving the Change log urls to the animal app, since that seems more widely logged
- Restyle the item log list page
- Rewrite the event comparison manager. I noticed some cases where the item log list returned a list of zero items, but at least one item existed on the assessment log page. This seems to have corrected it, but this code was very tricky!
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.
The changes look good!
created: datetime | ||
|
||
|
||
class EventPair: |
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.
This is a much better approach!
Added audit logs for assessment, animal, epidemiology, risk of bias, and summary apps at the assessment level. These logs are retrieved from reversion.
The frontend has been updated to include download links for these audit logs on the assessment logs page, and reversion logs are now included on the object logs page.
Run this command to create initial revisions as needed:
In addition, new initial revisions are created daily if they're needed via a celery task.