Skip to content

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.

@rashidsp rashidsp requested a review from mikeproeng37 May 16, 2019 15:03
# 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 = {}
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.

@rashidsp rashidsp requested a review from msohailhussain May 17, 2019 08:23
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

@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)
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.

@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)
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.

6 participants