-
Notifications
You must be signed in to change notification settings - Fork 83
feat(flag_decisions): update decisionSnapshot in event-processor to include metadata object #601
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
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.
LGTM - one question about layer/experiment/variation id being null inside ImpressionEvent
.
id: string | null | ||
} | null | ||
|
||
experiment: { | ||
id: string | ||
id: string | null | ||
key: string | ||
} | null | ||
|
||
variation: { | ||
id: string | ||
id: string | null |
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 are these now allowed to be null
?
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.
When decision.experiment is not defined, we assign a ruleKey/experimentKey to an empty string, in which case I assign an experimentId and layerId to null. Similarly, the variationId is now null when variation is not defined. Please see the implementation here for details. Another way would be to assign these params to an empty string instead of null. LMKWYT @mjc1283
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.
Sounds good, I think using null
is ok.
Summary
Test plan
Unit tests
Issues