Skip to content
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

Merged

Conversation

NyashaMuusha
Copy link
Collaborator

@NyashaMuusha NyashaMuusha commented Feb 22, 2024

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
AuditTrailMatchingRule

@walisc
Copy link
Collaborator

walisc commented Feb 23, 2024

Hi @NyashaMuusha . Could you update your branch with dev. i.e pull dev into your branch, and push again. p.s All you checks should be passing.

NyashaMuusha and others added 5 commits March 6, 2024 01:56
…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
goldenID VARCHAR(64),
event VARCHAR(256),
eventType VARCHAR(256),
eventData TEXT,
Copy link
Collaborator

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 {
Copy link
Collaborator

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

Copy link
Collaborator

@walisc walisc left a 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! 🙌

@walisc
Copy link
Collaborator

walisc commented Mar 14, 2024

p.s you just need to pull dev, resolve the conflicts, and push 👍🏽

@NyashaMuusha NyashaMuusha merged commit bd32f54 into jembi:dev Mar 14, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants