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

4.8.16 dev #4

Open
wants to merge 11 commits into
base: cbrelease-4.8.16
Choose a base branch
from
Open

4.8.16 dev #4

wants to merge 11 commits into from

Conversation

karthik-tarento
Copy link

No description provided.

shankaragoudab and others added 11 commits July 12, 2024 14:06
* 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) {

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){

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");

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) {

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()

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()

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

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