Skip to content

Commit 526d186

Browse files
authored
Merge branch 'jembi:Jmpi-bug-notification-screen-pointing-to-deleted-GR-2' into Jmpi-bug-notification-screen-pointing-to-deleted-GR-2
2 parents 6f912d7 + 2880b9e commit 526d186

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

JeMPI_Apps/JeMPI_Configuration/reference/config-reference-link-d-validate-dp-match-dp.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@
201201
"indexGoldenRecord": "@index(exact)"
202202
}
203203
],
204+
"indexes": {
205+
"linking": {
206+
"national_id": {
207+
"props": "@index(exact)"
208+
}
209+
}
210+
},
204211
"rules": {
205212
"link": {
206213
"deterministic": {

JeMPI_Apps/JeMPI_LibMPI/src/main/java/org/jembi/jempi/libmpi/lib/hooks/indexes/LibMPIIndexesHooks.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public LibMPIIndexesHooks(final LibMPIClientInterface clientIn) {
1616

1717
@Override
1818
public Option<MpiGeneralError> beforeLinkingHook() {
19-
if (client.shouldUpdateLinkingIndexes()) {
19+
if (Boolean.TRUE.equals(client.shouldUpdateLinkingIndexes())) {
2020
LOGGER.info("Updating indexes for linking.");
2121
return client.loadLinkingIndexes();
2222
}
@@ -25,7 +25,7 @@ public Option<MpiGeneralError> beforeLinkingHook() {
2525

2626
@Override
2727
public Option<MpiGeneralError> afterLinkingHook() {
28-
if (client.shouldUpdateLinkingIndexes()) {
28+
if (Boolean.TRUE.equals(client.shouldUpdateLinkingIndexes())) {
2929
LOGGER.info("Adding default indexes after linking.");
3030
return client.loadDefaultIndexes();
3131
}

JeMPI_Apps/JeMPI_LibShared/src/main/java/org/jembi/jempi/shared/utils/AuditTrailBridge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public <T> void sendAuditEvent(
3232
eventType,
3333
getSerializedEventData(eventData)
3434
);
35-
LOGGER.info("Creating Audit Event {} ", auditEvent.toString());
35+
// LOGGER.info("Creating Audit Event {} ", auditEvent.toString());
3636

3737
topicAuditEvents.produceAsync(UUID.randomUUID().toString(),
3838
auditEvent,

JeMPI_Apps/JeMPI_Linker/src/main/java/org/jembi/jempi/linker/SPInteractions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@
1111
import org.apache.logging.log4j.LogManager;
1212
import org.apache.logging.log4j.Logger;
1313
import org.jembi.jempi.AppConfig;
14-
import org.jembi.jempi.libmpi.MpiGeneralError;
1514
import org.jembi.jempi.linker.backend.BackEnd;
1615
import org.jembi.jempi.shared.models.CustomMU;
1716
import org.jembi.jempi.shared.models.InteractionEnvelop;
1817
import org.jembi.jempi.shared.serdes.JsonPojoDeserializer;
1918
import org.jembi.jempi.shared.serdes.JsonPojoSerializer;
2019

21-
import java.util.List;
2220
import java.util.Properties;
2321
import java.util.concurrent.ExecutionException;
2422
import java.util.concurrent.TimeUnit;
@@ -48,6 +46,7 @@ private void linkPatient(
4846
final String key,
4947
final InteractionEnvelop interactionEnvelop) {
5048

49+
/*
5150
if (interactionEnvelop.contentType() == InteractionEnvelop.ContentType.BATCH_START_SENTINEL
5251
|| interactionEnvelop.contentType() == BATCH_END_SENTINEL) {
5352
final var completableFuture = Ask.runStartEndHooks(system, backEnd, key, interactionEnvelop).toCompletableFuture();
@@ -61,6 +60,7 @@ private void linkPatient(
6160
this.close();
6261
}
6362
}
63+
*/
6464

6565
if (interactionEnvelop.contentType() != BATCH_INTERACTION) {
6666

0 commit comments

Comments
 (0)