Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

[bug 1107083] Rewrite Response inference code #403

Merged
merged 1 commit into from Dec 8, 2014
Merged

[bug 1107083] Rewrite Response inference code #403

merged 1 commit into from Dec 8, 2014

Conversation

willkg
Copy link
Member

@willkg willkg commented Dec 8, 2014

Pretty sure there were some edge cases where we wouldn't infer data that
was appropriate to infer. This reworks the code to read better so it's
easier to reason about all the possible cases including the ones we
weren't handling well before.

I also nixed the code that sets the channel. It's not really appropriate
to assume everything is "stable" if no value is provided. Not sure why I
thought that was a hawt idea before.

r?

Pretty sure there were some edge cases where we wouldn't infer data that
was appropriate to infer. This reworks the code to read better so it's
easier to reason about all the possible cases including the ones we
weren't handling well before.

I also nixed the code that sets the channel. It's not really appropriate
to assume everything is "stable" if no value is provided. Not sure why I
thought that was a hawt idea before.
def infer_product(cls, platform):
def infer_product(cls, browser):
platform = browser.platform

Copy link
Member Author

Choose a reason for hiding this comment

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

I tweaked this classmethod to be more like infer_platform. This is a cosmetic change right now. I figured I'd do this since it'll probably make it easier to do other things later.

@rlr
Copy link
Contributor

rlr commented Dec 8, 2014

The new tests look good. They pass. r+

willkg added a commit that referenced this pull request Dec 8, 2014
[bug 1107803] Rewrite Response inference code
@willkg willkg merged commit 7779d7b into mozilla:master Dec 8, 2014
@willkg
Copy link
Member Author

willkg commented Dec 8, 2014

808fa83 [bug 1107803] Rewrite Response inference code

Thank you!

@willkg willkg changed the title [bug 1107803] Rewrite Response inference code [bug 1107083] Rewrite Response inference code Dec 8, 2014
@willkg
Copy link
Member Author

willkg commented Dec 8, 2014

The commit message has the wrong bug number. I tried to fix it, but because we did a merge, it's too tricky. Boo merges.

@willkg willkg deleted the 1107803-versions branch December 8, 2014 20:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants