Skip to content
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(is_feature_enabled): Added rollout experiment key map for onboarding datafile #168

Merged
merged 2 commits into from
May 17, 2019

Conversation

rashidsp
Copy link
Contributor

Summary

  • Updated rollout experiment mapping.
  • Added rollout experiment with different ID and key

Test plan

  • Modified existing mapping tests and added new one.

Issues

  • OASIS-4722

@coveralls
Copy link

coveralls commented May 16, 2019

Coverage Status

Coverage remained the same at 99.949% when pulling 8f25a7c on rashid/fix-rollout-mapping into 486357d on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+6.0e-05%) to 99.949% when pulling ec4dcfc on rashid/fix-rollout-mapping into 486357d on master.

@rollout_experiment_id_map = {}
@rollout_experiment_key_map = {}
Copy link
Contributor

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.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

end
@all_experiments = @experiment_key_map.merge(@rollout_experiment_id_map)
Copy link
Contributor

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

Copy link
Contributor

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.

end
@all_experiments = @experiment_key_map.merge(@rollout_experiment_id_map)
Copy link
Contributor

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.

@mikeproeng37 mikeproeng37 merged commit 22eafd6 into master May 17, 2019
@rashidsp rashidsp deleted the rashid/fix-rollout-mapping branch June 17, 2019 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants