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-30099,MOSIP-30009,MOSIP-30026,MOSIP-19740:Bugfixes for admin-service #952

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

yashmsonkusare
Copy link
Contributor

No description provided.

@yashmsonkusare yashmsonkusare changed the title MOSIP-19740:Added the zoneCode and regCenterId in the Machine POST responce Added the zoneCode and regCenterId in the Machine POST responce Apr 4, 2024
@yashmsonkusare yashmsonkusare changed the title Added the zoneCode and regCenterId in the Machine POST responce Bugfixes for admin-service Apr 4, 2024
@yashmsonkusare yashmsonkusare changed the title Bugfixes for admin-service MOSIP-30099,MOSIP-30009,MOSIP-30026,MOSIP-19740:Bugfixes for admin-service Apr 5, 2024
String attribute = keyValues.getAttribute();
Object value = keyValues.getValue();

if ("residenceStatus".equals(attribute)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be handled here instead it should be checked in the mvel script. As of today if the provided values do not match any condition it returns "000"

@@ -134,7 +136,13 @@ public BlocklistedWordsResponseDto getAllBlocklistedWordsBylangCode(String langC
throw new DataNotFoundException(BlocklistedWordsErrorCode.NO_BLOCKLISTED_WORDS_FOUND.getErrorCode(),
BlocklistedWordsErrorCode.NO_BLOCKLISTED_WORDS_FOUND.getErrorMessage());
}

private void validateLangCode(String langCode) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we duplicating the code here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, we are not duplicating the code

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.

3 participants