Skip to content

Conversation

@mnoman09
Copy link
Contributor

@mnoman09 mnoman09 commented Jun 6, 2022

Summary

Added ODP Segments support in Audience evaluation

Test plan

  • Added New unit tests
  • Existing Tests should pass

Copy link
Contributor

@zashraf1985 zashraf1985 left a comment

Choose a reason for hiding this comment

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

Looks Good! Suggested a few minor changes here and there

this.userId = userId;
if (attributes != null) {
this.attributes = Collections.synchronizedMap(new HashMap<>(attributes));
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consolidate both the constructor methods to remove redunduncy

Object userAttributeValue = attributes.get(name);

if (!"custom_attribute".equals(type)) {
if (!"custom_attribute".equals(type) && !"third_party_dimension".equals(type)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add it to constant list or enum and add a generic check for valid types

@mnoman09
Copy link
Contributor Author

Closing this PR as all the changes were already done in PR 474

@mnoman09 mnoman09 closed this Jun 16, 2022
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