-
Notifications
You must be signed in to change notification settings - Fork 28
Fix(is_feature_enabled): Added rollout experiment key map for onboarding datafile #168
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
| # split out the experiment id map for rollouts | ||
| # split out the experiment id and key map for rollouts | ||
| @rollout_experiment_id_map = {} | ||
| @rollout_experiment_key_map = {} |
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.
Now where rollout_experiment_id_map is being used in the code.
mikeproeng37
left a 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.
lgtm
| @rollout_experiment_id_map = @rollout_experiment_id_map.merge(generate_key_map(exps, 'id')) | ||
| @rollout_experiment_key_map = @rollout_experiment_key_map.merge(generate_key_map(exps, 'key')) | ||
| end | ||
| @all_experiments = @experiment_key_map.merge(@rollout_experiment_id_map) |
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.
Wow this is a big mistake we didn't catch in the code review last time around
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.
Luckily IDs and keys have been same, but if it had changed things would be really very bad.
| @rollout_experiment_id_map = @rollout_experiment_id_map.merge(generate_key_map(exps, 'id')) | ||
| @rollout_experiment_key_map = @rollout_experiment_key_map.merge(generate_key_map(exps, 'key')) | ||
| end | ||
| @all_experiments = @experiment_key_map.merge(@rollout_experiment_id_map) |
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.
Luckily IDs and keys have been same, but if it had changed things would be really very bad.
Summary
Test plan
Issues