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

Fixes #827. Refactor how we request data from GitHub. #828

Merged
merged 6 commits into from
Nov 13, 2015

Conversation

miketaylr
Copy link
Member

This should pass all tests (at least it does locally!)

I'm going to do more manual testing and inspection of requests/responses, but it should be ready for review.

r? @karlcow

@miketaylr
Copy link
Member Author

Oops @ Issue XXX: Rename get_headers to get_response_headers commit message. Will fix and push.

Mike Taylor added 4 commits November 10, 2015 18:04
Part of this means we're always sending request headers to GitHub
and always returning response headers from GitHub. Before it
was only in some places. This might break things, or it might
make them better!
issues.status_code, get_headers(issues))
# issues is a tuple of format: (content, status_code, response_headers)
if issues[1] == 200:
return (filter_new(json.loads(issues[0])), issues[1], issues[2])

This comment was marked as abuse.

This comment was marked as abuse.

Mike Taylor added 2 commits November 12, 2015 18:24
Also, update some of the comments in api_request helper method.
This already happens in api_request.
@miketaylr
Copy link
Member Author

OK, I think I addressed your comments here @karlcow -- care to take a peek?

'content': filter_new(json.loads(issues[0])),
'status_code': issues[1],
'response_headers': issues[2]
}

This comment was marked as abuse.

This comment was marked as abuse.

@karlcow
Copy link
Member

karlcow commented Nov 13, 2015

ok. :) Let's move forward. It will help us to have a clearer code. Thanks a lot mike.

karlcow added a commit that referenced this pull request Nov 13, 2015
Fixes #827. Refactor how we request data from GitHub.
@karlcow karlcow merged commit b5593df into master Nov 13, 2015
@miketaylr
Copy link
Member Author

Thanks @karlcow!

@miketaylr miketaylr deleted the endpoints-refactor branch November 13, 2015 23:12
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.

2 participants