We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As a user, I want to have no typos and easy to read code, when possible.
MINITRY_OF_FORESTS_ID
Suggestion:
public static List<String> getClientIdsFromJwt(Jwt jwtPrincipal) { List<String> clientIds = new ArrayList<>(); boolean foundRole = false; List<String> rolesAndClientIds = getRolesWithClientIds(jwtPrincipal); for (String role: rolesAndClientIds) { if (role.length() >= 9) { String clientNumber = role.substring(role.length() - 8); if (clientNumber.replaceAll("[0-9]", "").isEmpty()) { clientIds.add(clientNumber); } } if (concreteRoles.contains(role)) { foundRole = true; } } // If has role SPAR_MINISTRY_ORCHARD or SPAR_TSC_ADMIN and has no client id // then add MOF client id if (foundRole && !clientIds.contains(Constants.MINITRY_OF_FORESTS_ID)) { clientIds.add(Constants.MINITRY_OF_FORESTS_ID); } return clientIds; }
The text was updated successfully, but these errors were encountered:
chore: improve readability
06f8f1d
issue #1588
RMCampos
Successfully merging a pull request may close this issue.
User Story
As a user, I want to have no typos and easy to read code, when possible.
Acceptance Criteria
MINITRY_OF_FORESTS_ID
typo in the config.Constants class;Additional Notes
Suggestion:
The text was updated successfully, but these errors were encountered: