-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Duplicate experiment key issue with multi feature flag #226
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
1 similar comment
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! Just added a comment to fix a redundant variable assignment.
} else { | ||
$variationKey = null; | ||
$ruleKey = null; | ||
$experimentId = 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.
this looks redundant?
LGTM! |
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.
All changes look good. A couple of suggestions -
- can we add new test cases for duplicate keys (duplicate experiment keys, and/or duplicate delivery-rule keys)
- I found this line is still vulnerable to duplicate keys. Can you confirm it's ok?
$variation = $projectConfig->getVariationFromId($experimentKey, $variationId);
Thanks Jae. Will take care of it. |
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
Summary
TestPlan