Skip to content

Audit module (Change Tracking)

Georgy Litvinov requested to merge github/fork/litvinovg/audit_tool into main

VIVO GitHub issue 1 VIVO GitHub issue 2

VIVO PR

What does this pull request do?

The pull request adds a module that enables tracking of changes being made in the triple store by users and non-person entitites. Changes are recorded in a triple store, with the users ID (URI), the time, and the changes that have been made. A user interface (/audit) is also provided that, when logged in, displays the changes.

What's new?

Adds a new AuditModule application module TDBAuditModule can be configured / enabled via the applicationSetup.n3 RDFService change listener capture any changes made to the content and configuration stores, and record those changes in a dedicated audit store. Tests included

How should this be tested?

  • Enable AuditModule in applicationSetup.n3 (uncomment :hasAuditModule and :tdbAuditModule section)
  • Login as admin or root user, open /audit page,
  • View changes presented on the page.
  • Try different filters
  • Run tests
  • Try using n3 generators to add/delete data in profiles

Supersedes

https://github.com/vivo-project/Vitro/pull/369 https://github.com/vivo-project/Vitro/pull/81

Interested parties

@chenejac @brianjlowe

Merge request reports