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

Implement function that allocate variant based on an experiment config. #3762

Merged
merged 9 commits into from Jun 28, 2016

Conversation

lannka
Copy link
Contributor

@lannka lannka commented Jun 24, 2016

It only handles non-sticky case (CID not used).

This is the 2nd PR for #1411

* experiment config.
* @param {!Window} win
* @param {!Object} config
* @return {Promise<?string>}
Copy link
Contributor

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.

Copy link
Contributor

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

@dvoytenko
Copy link
Contributor

@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
Copy link
Contributor

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.

@lannka
Copy link
Contributor Author

lannka commented Jun 24, 2016

@lannka
Copy link
Contributor Author

lannka commented Jun 28, 2016

@jridgewell @dvoytenko PTAL

@jridgewell
Copy link
Contributor

LGTM.

@lannka lannka merged commit cc1988d into ampproject:master Jun 28, 2016
@lannka lannka deleted the allocate_variant branch June 28, 2016 19:44
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.

None yet

3 participants