-
Notifications
You must be signed in to change notification settings - Fork 32
fix(nullfilter): filters out attributes with null values #211
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
Conversation
Pull Request Test Coverage Report for Build 610
💛 - Coveralls |
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.
Looks good mostly. I have a small nit
Map<String, String> actualValue = attributeCaptor.getValue(); | ||
assertThat(actualValue, hasEntry(attribute.getKey(), null)); | ||
assertNotSame(actualValue, hasEntry(attribute.getKey(), null)); | ||
logbackVerifier.expectMessage(Level.WARN, "Attribute(s) ["+attribute.getKey()+"] not in the datafile or has NULL value."); |
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.
nit: spaces before and after the +
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.
I commented on the actual ticket, but we are changing this to filter out null attribute values from being sent to the log tier so it should be done here: https://github.com/optimizely/java-sdk/blob/master/core-api/src/main/java/com/optimizely/ab/event/internal/EventFactory.java#L170
@mikeng13 I made PR #214 so I think we can close this PR. |
@mikeng13 . I'm closing this PR since they are now addressing the issue in a new PR. |
No description provided.