-
Notifications
You must be signed in to change notification settings - Fork 28
Fix Rollout Bucketer.bucket call & Decision Service logic #71
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
Fix Rollout Bucketer.bucket call & Decision Service logic #71
Conversation
Can one of the admins verify this patch? |
📝 [OASIS-1962] also addressed in this PR |
@wangjoshuah Can you please review |
build |
|
||
feature_flag_key = feature_flag['key'] | ||
variation = get_variation_for_feature_rollout(feature_flag, user_id, attributes) | ||
if variation | ||
@config.logger.log( | ||
Logger::INFO, | ||
"User '#{user_id}' is in the rollout for feature flag '#{feature_flag_key}'." | ||
"User '#{user_id}' is bucketed into a rollout for feature flag '#{feature_flag_key}'." |
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.
describe the actual rule the user was bucketed into by logging the audience name as the rule name.
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.
You probably meant to have audience name logged inside the get variation for feature rollout and not at this place. I have put it where you have done in the java sdk
…llout 🖊️ Refactored get_audience_conditions_from_id in project config 🖊️ edited affected test cases
@wangjoshuah Is there anyone else want to review this code? |
@alda-optimizely you've also worked on this SDK before. Do you want to take a look at the PR? |
build |
4 similar comments
build |
build |
build |
build |
✏️ Bucketer.bucket call arguments fixed and unit tests cases updated to ensure right number of params are passed
✏️ Revision of logic in Decision Service getVariationForFeatureExperiment
✏️ Refactoring of new Decision Service logic