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 29868 #1785

Closed
wants to merge 2 commits into from
Closed

Mosip 29868 #1785

wants to merge 2 commits into from

Conversation

sowmya695
Copy link
Contributor

No description provided.

Sowmya Ujjappa Banakar added 2 commits November 9, 2023 11:46
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
@sowmya695
Copy link
Contributor Author

Cancelling the PR as we discussed about different approach.

@sowmya695 sowmya695 closed this Nov 17, 2023
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.

As per latest discussion, we have Closed this PR.

.trimExceptionMessage(
StatusUtil.DEMO_DEDUPE_PACKET_MANAGER_EXCEPTION.getMessage() + e.getMessage()));
registrationStatusDto.setSubStatusCode(StatusUtil.DEMO_DEDUPE_PACKET_MANAGER_EXCEPTION.getCode());
registrationStatusDto.setLatestTransactionStatusCode(registrationExceptionMapperUtil
Copy link
Member

Choose a reason for hiding this comment

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

this exception is marked as reprocess, in what scenarios we are getting this exception ?

public Map<String, List<String>> createTypeSubtypeMapping() throws ApisResourceAccessException, DataShareException,
JsonParseException, JsonMappingException, com.fasterxml.jackson.core.JsonProcessingException, IOException {
Map<String, List<String>> typeAndSubTypeMap = new HashMap<>();
ResponseWrapper<?> policyResponse = (ResponseWrapper<?>) registrationProcessorRestClientService.getApi(
Copy link
Member

Choose a reason for hiding this comment

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

should we cache this policy with a fixed expiry to improve performance ?

return isDataSaved;
}

public Map<String, List<String>> createTypeSubtypeMapping() throws ApisResourceAccessException, DataShareException,
Copy link
Member

Choose a reason for hiding this comment

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

We should rename this method, to convey we are fetch the modality and segment map for ABIS partner.

return isDataSaved;
}

public Map<String, List<String>> createTypeSubtypeMapping() throws ApisResourceAccessException, DataShareException,
Copy link
Member

Choose a reason for hiding this comment

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

I believe it is also possible to configured multiple ABIS for each modality, not sure if 1.1.5.x support this. But if that is supported, then this logic needs to change.

if (modalities == null || modalities.isEmpty()) {
throw new BiometricRecordValidationException(
PlatformErrorMessages.RPR_DEMO_DATASHARE_MODALITIES_EMPTY.getCode(),
PlatformErrorMessages.RPR_DEMO_DATASHARE_MODALITIES_EMPTY.getMessage());
Copy link
Member

Choose a reason for hiding this comment

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

Using the datashare name in these validations are confusing, since datashare is mearly a transport mechanism. We should say something releated to ABIS or biometrics required for biodedup is not present etc..

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