Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
when variation is null then ruleType will be rollout
  • Loading branch information
mnoman09 committed Oct 13, 2020
commit e8db3cb002718ac13c928d1796e8ff2a465e4bf6
4 changes: 1 addition & 3 deletions OptimizelySDK/Event/UserEventFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,12 @@ public static ImpressionEvent CreateImpressionEvent(ProjectConfig projectConfig,

var variationKey = "";
var ruleKey = "";
var finalRuleType = "";
if (variation != null)
{
variationKey = variation.Key;
ruleKey = activatedExperiment.Key;
finalRuleType = ruleType;
}
var metadata = new DecisionMetadata(flagKey, ruleKey, finalRuleType, variationKey);
var metadata = new DecisionMetadata(flagKey, ruleKey, ruleType, variationKey);

return new ImpressionEvent.Builder()
.WithEventContext(eventContext)
Expand Down