-
Notifications
You must be signed in to change notification settings - Fork 18
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
Jmpi add matching rule to audit trail #187
Jmpi add matching rule to audit trail #187
Conversation
Hi @NyashaMuusha . Could you update your branch with |
…le-to-audit-trail
JeMPI_Apps/JeMPI_LibMPI/src/main/java/org/jembi/jempi/libmpi/LibMPI.java
Outdated
Show resolved
Hide resolved
JeMPI_Apps/JeMPI_Bootstrapper/src/main/resources/data/postgres/audit-schema.sql
Outdated
Show resolved
Hide resolved
JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/models/ApiModels.java
Outdated
Show resolved
Hide resolved
…ule-to-audit-trail' into JMPI-add-matching-rule-to-audit-trail
JeMPI_Apps/JeMPI_Bootstrapper/src/main/resources/data/postgres/audit-schema.sql
Outdated
Show resolved
Hide resolved
JeMPI_Apps/JeMPI_LibMPI/src/main/java/org/jembi/jempi/libmpi/LibMPI.java
Show resolved
Hide resolved
…d audit event method
…trail' into JMPI-add-matching-rule-to-audit-trail # Conflicts: # JeMPI_Apps/JeMPI_Controller/src/main/java/org/jembi/jempi/controller/PsqlAuditTrail.java
…trail' into JMPI-add-matching-rule-to-audit-trail # Conflicts: # JeMPI_Apps/JeMPI_LibAPI/src/main/java/org/jembi/jempi/libapi/Routes.java
…trail' into JMPI-add-matching-rule-to-audit-trail
…trail' into JMPI-add-matching-rule-to-audit-trail # Conflicts: # JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/models/ApiModels.java
goldenID VARCHAR(64), | ||
event VARCHAR(256), | ||
eventType VARCHAR(256), | ||
eventData TEXT, |
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.
Could we JSONB here, and filter as appropriate below. In JeMPI_Apps/JeMPI_LibAPI/src/main/java/org/jembi/jempi/libapi/PsqlAuditTrail.java
import static org.jembi.jempi.shared.utils.AppUtils.OBJECT_MAPPER; | ||
|
||
|
||
public final class AuditTrailUtil { |
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.
Could you rename this to something like AuditTrailBridge
as Util classes don't usually get instantiated
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.
Nice @NyashaMuusha ! Looking good! 🙌
p.s you just need to pull |
1. Description of changes
Modified database audit event to store event type and event data to make it more generic and reusable
De-serialized data based on event type
Calculated linking rule from golden record and interaction record and added value to audit event
Modified API response for audit trail to reflect new changes
Added matching type column on audit trail table in UI
2. How to test/configure
Navigate to http://localhost:3000/browse-records

Double click on a record