-
Notifications
You must be signed in to change notification settings - Fork 9
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
4.8.16 dev #4
base: cbrelease-4.8.16
Are you sure you want to change the base?
4.8.16 dev #4
Conversation
* user search facets patch (sunbird-cb#70) * 4.8.15 dev v1 (sunbird-cb#71) * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#72) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#73) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * kafka topic after user profile update * logger added --------- Co-authored-by: anilkumarkammalapalli <[email protected]>
* user search facets patch (sunbird-cb#70) * 4.8.15 dev v1 (sunbird-cb#71) * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#72) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#73) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * kafka topic after user profile update * logger added * mentoring topic data updated --------- Co-authored-by: anilkumarkammalapalli <[email protected]>
* user search facets patch (sunbird-cb#70) * 4.8.15 dev v1 (sunbird-cb#71) * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#72) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#73) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * kafka topic after user profile update * logger added * mentoring topic data updated * mentor roels added in user private read * added constants --------- Co-authored-by: anilkumarkammalapalli <[email protected]>
* user search facets patch (sunbird-cb#70) * 4.8.15 dev v1 (sunbird-cb#71) * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#72) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#73) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * kafka topic after user profile update * logger added * mentoring topic data updated * mentor roels added in user private read * added constants * added role insied mentoring map --------- Co-authored-by: anilkumarkammalapalli <[email protected]>
* user search facets patch (sunbird-cb#70) * 4.8.15 dev v1 (sunbird-cb#71) * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#72) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * 4.8.15 dev v1 (sunbird-cb#73) * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * user search facets patch * kafka topic after user profile update * logger added * mentoring topic data updated * mentor roels added in user private read * added constants * added role insied mentoring map * bug fix for v5 user read --------- Co-authored-by: anilkumarkammalapalli <[email protected]>
if (result.get(JsonKey.ROLES) instanceof List) { | ||
List<?> list = (List<?>) result.get(JsonKey.ROLES); | ||
|
||
if (!list.isEmpty() && list.get(0) instanceof HashMap) { |
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.
Please handle null pointer and try to use collectionUtils as it handle the proper null pointer
userDetails.put(JsonKey.USER_ID,user.getUserId()); | ||
InstructionEventGenerator.mentorshipUserUpdateEvent("", topic, userDetails); | ||
logger.info("kafka_mentorship_user_update_topic event pushed"); | ||
}catch (Exception e){ |
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.
please do formatting
InstructionEventGenerator.mentorshipUserUpdateEvent("", topic, userDetails); | ||
logger.info("kafka_mentorship_user_update_topic event pushed"); | ||
}catch (Exception e){ | ||
logger.info("error while generating mentorship event"); |
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.
The error should give proper msg and it should be error
roles.add((String) hashmap.get(JsonKey.ROLE)); | ||
} | ||
} | ||
} else if (!list.isEmpty() && list.get(0) instanceof String) { |
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.
Please handle null pointer and try to use collectionUtils as it handle the proper null pointer
Collections.singletonMap(JsonKey.USERID, ids), | ||
Arrays.asList(JsonKey.ROLE, JsonKey.USERID), context); | ||
|
||
((List<Map<String, Object>>) cassandraResponse.getResult().get(JsonKey.RESPONSE)).stream() |
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.
Plead do formatting
.add((String) userRole.get(JsonKey.ROLE)) | ||
); | ||
|
||
((List<Map<String, Object>>) response.getResult().get(JsonKey.RESPONSE)).stream() |
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.
Why you do typecast of not assign to any variable
No description provided.