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

MOSIP-34112 code changes #1895

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Conversation

sowmya695
Copy link
Contributor

No description provided.

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;
Copy link
Member

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.

Copy link
Member

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

Copy link
Contributor Author

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
Copy link
Member

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 ?

Copy link
Contributor Author

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());
Copy link
Member

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 ?

Copy link
Member

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 ?

Copy link
Contributor Author

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());
Copy link
Member

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 ?

Copy link
Contributor Author

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());
Copy link
Member

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved

@sowmya695 sowmya695 changed the base branch from release-1.2.0.x to MOSIP-34112_release July 19, 2024 07:58
Sowmya Ujjappa Banakar added 2 commits July 19, 2024 19:07
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Copy link
Member

@vishwa-vyom vishwa-vyom left a 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.

@vishwa-vyom vishwa-vyom merged commit 69e9bf9 into mosip:MOSIP-34112_release Jul 22, 2024
21 checks passed
Khuddusshariff0022 pushed a commit to Khuddusshariff0022/registration that referenced this pull request Aug 1, 2024
* 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]>
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