)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"ea47c67f2a3d5f496936bdc8c896030ac2793fd9","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add prepare_request function to requests.py"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This function is suppose to be called to prepare a request that will be"},{"line_number":10,"context_line":"later used by other parts of this clients."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Future patches will show the need of this function a bit better."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"AAAAS3%2F%2FMFw%3D","line":10,"updated":"2013-10-02 17:01:45.000000000","message":"\"This function is *supposed* to be called to prepare a request that will *be used later* by other parts of this *client*.\"","commit_id":"b09322c8ba1bf36a656745bf9ff91969107ca726"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"e77d5f218b21af5120c51d4f2783ccc9a39e1b16","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add prepare_request function to requests.py"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This function is suppose to be called to prepare a request that will be"},{"line_number":10,"context_line":"later used by other parts of this clients."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Future patches will show the need of this function a bit better."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"AAAAS3%2F%2FLqw%3D","line":10,"in_reply_to":"AAAAS3%2F%2FMFw%3D","updated":"2013-10-02 19:37:13.000000000","message":"thanks :)","commit_id":"b09322c8ba1bf36a656745bf9ff91969107ca726"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"ea47c67f2a3d5f496936bdc8c896030ac2793fd9","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This function is suppose to be called to prepare a request that will be"},{"line_number":10,"context_line":"later used by other parts of this clients."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Future patches will show the need of this function a bit better."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Implements blueprint python-marconiclient-v1"},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"AAAAS3%2F%2FMFo%3D","line":12,"updated":"2013-10-02 17:01:45.000000000","message":"\"Future patches will more clearly show how this function is meant to be used.\"","commit_id":"b09322c8ba1bf36a656745bf9ff91969107ca726"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"e77d5f218b21af5120c51d4f2783ccc9a39e1b16","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This function is suppose to be called to prepare a request that will be"},{"line_number":10,"context_line":"later used by other parts of this clients."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Future patches will show the need of this function a bit better."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Implements blueprint python-marconiclient-v1"},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"AAAAS3%2F%2FLqc%3D","line":12,"in_reply_to":"AAAAS3%2F%2FMFo%3D","updated":"2013-10-02 19:37:13.000000000","message":"thanks A LOT :D","commit_id":"b09322c8ba1bf36a656745bf9ff91969107ca726"}],"marconiclient/transport/request.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"db384d5d136b54a2b2eb9188a16c80fd9d12c7a3","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    :param conf: `cfg.ConfigOpts` instance to use."},{"line_number":33,"context_line":"    :type conf: `cfg.ConfigOpts`"},{"line_number":34,"context_line":"    :param data: Optional data to send along with the"},{"line_number":35,"context_line":"    request. If data is not None, it\u0027ll be serialized."},{"line_number":36,"context_line":"    :type data: Any primitive type that is json-serializable."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    :returns: A `Request` instance ready to be sent."}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAS3%2F%2FOcA%3D","line":35,"updated":"2013-10-01 23:08:19.000000000","message":"We usually indent wrapped lines, no?","commit_id":"ac1c6c6d7ab835cda48942789a405a199ac19c40"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"db384d5d136b54a2b2eb9188a16c80fd9d12c7a3","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    the respective transport to turn this into a layer-specific request."},{"line_number":57,"context_line":"    \"\"\""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def __init__(self, endpoint\u003d\u0027\u0027, operation\u003d\u0027\u0027,"},{"line_number":60,"context_line":"                 content\u003dNone, params\u003dNone, headers\u003dNone):"},{"line_number":61,"context_line":"        self.endpoint \u003d endpoint"},{"line_number":62,"context_line":"        self.operation \u003d operation"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAS3%2F%2FOcE%3D","line":59,"updated":"2013-10-01 23:08:19.000000000","message":"Would you mind documenting these params?","commit_id":"ac1c6c6d7ab835cda48942789a405a199ac19c40"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"ea47c67f2a3d5f496936bdc8c896030ac2793fd9","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    auth_backend \u003d auth.get_backend(conf)"},{"line_number":44,"context_line":"    # TODO(flaper87): Do something smarter"},{"line_number":45,"context_line":"    # to get the api_version."},{"line_number":46,"context_line":"    req \u003d auth_backend.authenticate(1, req)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    if data is not None:"},{"line_number":49,"context_line":"        req.content \u003d json.dumps(data)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAS3%2F%2FMGU%3D","line":46,"updated":"2013-10-02 17:01:45.000000000","message":"Eventually, I\u0027d like to see this packaged up as some form of session. It seems like with the current design, a user would have to authenticate on each request. Am I understanding incorrectly?","commit_id":"b09322c8ba1bf36a656745bf9ff91969107ca726"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"798c0c2326ba8ac542ac5fb353dd15e0d37e283b","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    auth_backend \u003d auth.get_backend(conf)"},{"line_number":44,"context_line":"    # TODO(flaper87): Do something smarter"},{"line_number":45,"context_line":"    # to get the api_version."},{"line_number":46,"context_line":"    req \u003d auth_backend.authenticate(1, req)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    if data is not None:"},{"line_number":49,"context_line":"        req.content \u003d json.dumps(data)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAS3%2F%2FLo0%3D","line":46,"in_reply_to":"AAAAS3%2F%2FLrM%3D","updated":"2013-10-02 19:39:59.000000000","message":"I like the second idea best, since it also takes advantage of the auth caching if it is available. It has the opportunity to shave some milliseconds off of each request, since we\u0027re avoiding pinging the authentication source each time we want to make a request.","commit_id":"b09322c8ba1bf36a656745bf9ff91969107ca726"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"e77d5f218b21af5120c51d4f2783ccc9a39e1b16","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    auth_backend \u003d auth.get_backend(conf)"},{"line_number":44,"context_line":"    # TODO(flaper87): Do something smarter"},{"line_number":45,"context_line":"    # to get the api_version."},{"line_number":46,"context_line":"    req \u003d auth_backend.authenticate(1, req)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    if data is not None:"},{"line_number":49,"context_line":"        req.content \u003d json.dumps(data)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAS3%2F%2FLrM%3D","line":46,"in_reply_to":"AAAAS3%2F%2FMGU%3D","updated":"2013-10-02 19:37:13.000000000","message":"Ish!\n\nThe idea here is to let the *auth backend* take care of the auth caching since different backends require different cache methods.\n\nAnother idea is to bypass this call until we get 401 back from marconi, at that point we\u0027ll try to authenticate and re do the request.\n\nThoughts?","commit_id":"b09322c8ba1bf36a656745bf9ff91969107ca726"}],"tests/unit/transport/test_request.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"8f0ce5eac6138b4531db0aac4970baadae5b3e33","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        self.assertIsNone(req.content)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_prepare_request_with_data(self):"},{"line_number":58,"context_line":"        data \u003d {\"data\": \"tons of GBs\"}"},{"line_number":59,"context_line":"        req \u003d request.prepare_request(self.conf, data)"},{"line_number":60,"context_line":"        self.assertTrue(isinstance(req, request.Request))"},{"line_number":61,"context_line":"        self.assertEquals(req.content, json.dumps(data))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FZPk%3D","line":58,"updated":"2013-09-27 15:39:19.000000000","message":"You\u0027re going to crash Jenkins sending all those GBs! D:","commit_id":"e02ff54dcbf862897e8d55f5d87f2ad3077244bd"}]}
