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
Implement function that allocate variant based on an experiment config. #3762
Conversation
… for..in loop is browser dependent.
* experiment config. | ||
* @param {!Window} win | ||
* @param {!Object} config | ||
* @return {Promise<?string>} |
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.
Please add either ?
or !
- we require it for all types except for primitives.
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.
meaning to Promise
, e.g. !Promise
@lannka Is there spec you are working off that I can now see? |
*/ | ||
function getBucketTicket(win, opt_cidScope) { | ||
if (opt_cidScope) { | ||
// TODO(lannka): implement CID |
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.
For implementation TODO's (especially major ones) we require this format:
TODO(@name, #bug): description
This way we can create/close github issues for better tracking and visibility.
The spec: https://docs.google.com/document/d/1YjT3WxB_ck43d16ONE-AwsKVx1eqikCFdq4lArtbHSA/edit# All comments addressed. PTAL. |
@jridgewell @dvoytenko PTAL |
LGTM. |
It only handles non-sticky case (CID not used).
This is the 2nd PR for #1411