-
Notifications
You must be signed in to change notification settings - Fork 176
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
MOSIP-34112 code changes #1895
MOSIP-34112 code changes #1895
Conversation
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
@@ -132,6 +133,9 @@ public class BioDedupeProcessor { | |||
@Value("${registration.processor.missing.biometric.verification.enabled:true}") | |||
private boolean missingBiometricVerificationEnabled; | |||
|
|||
@Value("${registration.processor.biometric.autoreject.enabled:false}") | |||
private boolean biometricAutorejectEnable; |
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.
I think auto reject is two words and camel case to be corrected.
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.
Lets rename as below.
registration.processor.biometrics-update.single-match.auto-reject.enabled
biometricsUpdateSingleMatchAutoReject
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.
resolved
@@ -435,6 +439,36 @@ private void postAbisIdentification(InternalRegistrationStatusDto registrationSt | |||
registrationStatusDto.getRegistrationId(), BioDedupeConstants.ABIS_RESPONSE_NULL); | |||
|
|||
} else { | |||
if (registrationType.equalsIgnoreCase(RegistrationType.UPDATE.name()) && matchedRegIds.size() == 1 |
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.
what if the matchedRegIds size is 4 and all belongs to the same UIN ?
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.
resolved
&& biometricAutorejectEnable) { | ||
Optional<String> optionalMatchedRegId = matchedRegIds.stream().findFirst(); | ||
String matchedRegId = optionalMatchedRegId.get(); | ||
String uin = idRepoService.getUinByRid(matchedRegId, utilities.getGetRegProcessorDemographicIdentity()); |
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.
If the RID is not latest (lets assume last RID for that user was demographic update), will idrepo still give the correct UIN ?
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.
On this line one more question, what if this RID was partially processed and UIN is not yet associated. In that case. what will the method return ?
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.
resolved
.setLatestTransactionStatusCode(RegistrationTransactionStatusCode.FAILED.toString()); | ||
object.setIsValid(Boolean.FALSE); | ||
registrationStatusDto.setStatusCode(RegistrationStatusCode.REJECTED.name()); | ||
registrationStatusDto.setStatusComment(StatusUtil.UPDATE_PACKET_BIOMETRICS_NOT_FOUND.getMessage()); |
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 case is not about matching with someone else biometrics ? But message says biometrics not found ?
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.
resolved
BioDedupeConstants.NO_MATCH_FOUND_FOR_UPDATE + registrationStatusDto.getRegistrationId()); | ||
} | ||
|
||
}else { | ||
registrationStatusDto.setStatusCode(RegistrationStatusCode.FAILED.name()); | ||
registrationStatusDto.setStatusComment(StatusUtil.BIO_DEDUPE_POTENTIAL_MATCH.getMessage()); |
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.
How are we planning to handle this case, where there is more than one match and the country does not have a manual adjudication system ?
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.
resolved
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
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.
Approving this PR without resolving the open comments since the PR is to the feature branch.
Once the code moves from feature branch to the develop, we have ensure all these comment responses to be reviewed and closed.
* MOSIP-34112 code changes Signed-off-by: Sowmya Ujjappa Banakar <[email protected]> * MOSIP-34112 code changes Signed-off-by: Sowmya Ujjappa Banakar <[email protected]> * MOSIP-34112 code changes Signed-off-by: Sowmya Ujjappa Banakar <[email protected]> --------- Signed-off-by: Sowmya Ujjappa Banakar <[email protected]> Co-authored-by: Sowmya Ujjappa Banakar <[email protected]> Signed-off-by: khuddus shariff <[email protected]>
No description provided.