)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"00c40079c420cbf9d616d530cf769e16cf945244","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"fix(proxy): forward marconi headers"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Update proxy response headers with marconi responses."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: I151580f174f1a0fc1edca23b43bb7256bcf568fe"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAAS3%2F%2FPS0%3D","line":9,"updated":"2013-10-01 18:18:53.000000000","message":"Can you elaborate? Talk about why the patch is necessary?","commit_id":"a309e9e1d1d7766b72e8b6c4fe56ad8c891b2863"}],"marconi/proxy/resources/health.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"4a77fcaeea8e0e2ceeabe163f6674288d17e7db5","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class Resource(object):"},{"line_number":20,"context_line":"    def on_get(self, request, response):"},{"line_number":21,"context_line":"        response.status \u003d falcon.HTTP_200"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2Fnpk%3D","line":21,"updated":"2013-09-23 21:21:04.000000000","message":"In the marconi queues service, 204 is returned. Shouldn\u0027t we do the same here?","commit_id":"41736bd74eb0976514e94a0544155b7e158abc75"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"6ccb074ffb250292a93dd247bd51189771edcf03","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class Resource(object):"},{"line_number":20,"context_line":"    def on_get(self, request, response):"},{"line_number":21,"context_line":"        response.status \u003d falcon.HTTP_200"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FT6M%3D","line":21,"in_reply_to":"AAAAS3%2F%2Fnpk%3D","updated":"2013-09-30 13:55:03.000000000","message":"Emm, it is 204.  I need to double check what happened.","commit_id":"41736bd74eb0976514e94a0544155b7e158abc75"}],"marconi/proxy/resources/queues.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"4a77fcaeea8e0e2ceeabe163f6674288d17e7db5","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            self._catalogue.insert(project, queue, target[\u0027name\u0027],"},{"line_number":123,"context_line":"                                   host)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        response.set_headers(helpers.capitalized(resp.headers))"},{"line_number":126,"context_line":"        response.status \u003d http.status(resp.status_code)"},{"line_number":127,"context_line":"        response.body \u003d resp.content"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2Fnl8%3D","line":125,"updated":"2013-09-23 21:21:04.000000000","message":"Why is this necessary? Are there certain headers which are not being overwritten correctly?\n\nLooks like the two to watch out for are:\n* Content-Type\n* Content-Length\n\nresp.headers should have those two spelled correctly, so the overwrite will happen just fine, right?","commit_id":"41736bd74eb0976514e94a0544155b7e158abc75"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"a10c95a37b4339b8be8c3391d2ca415b16ea1b3f","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            self._catalogue.insert(project, queue, target[\u0027name\u0027],"},{"line_number":123,"context_line":"                                   host)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        response.set_headers(helpers.capitalized(resp.headers))"},{"line_number":126,"context_line":"        response.status \u003d http.status(resp.status_code)"},{"line_number":127,"context_line":"        response.body \u003d resp.content"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FSQY%3D","line":125,"in_reply_to":"AAAAS3%2F%2FT58%3D","updated":"2013-09-30 21:22:24.000000000","message":"Ahhhhh. That makes a lot more sense now. Silly requests.","commit_id":"41736bd74eb0976514e94a0544155b7e158abc75"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"6ccb074ffb250292a93dd247bd51189771edcf03","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            self._catalogue.insert(project, queue, target[\u0027name\u0027],"},{"line_number":123,"context_line":"                                   host)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        response.set_headers(helpers.capitalized(resp.headers))"},{"line_number":126,"context_line":"        response.status \u003d http.status(resp.status_code)"},{"line_number":127,"context_line":"        response.body \u003d resp.content"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FT58%3D","line":125,"in_reply_to":"AAAAS3%2F%2Fnl8%3D","updated":"2013-09-30 13:55:03.000000000","message":"In requests.headers it\u0027s content-type but in falcon headers it\u0027s Content-Type.","commit_id":"41736bd74eb0976514e94a0544155b7e158abc75"}],"marconi/proxy/utils/forward.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"00c40079c420cbf9d616d530cf769e16cf945244","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        # send the request, update the response"},{"line_number":71,"context_line":"        resp \u003d helpers.forward(host, request)"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        response.set_headers(helpers.capitalized(resp.headers))"},{"line_number":74,"context_line":"        response.status \u003d http.status(resp.status_code)"},{"line_number":75,"context_line":"        response.body \u003d resp.content"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAS3%2F%2FPSs%3D","line":73,"updated":"2013-10-01 18:18:53.000000000","message":"Maybe add a # NOTE(zyuan) to this explaining why this is necessary?","commit_id":"a309e9e1d1d7766b72e8b6c4fe56ad8c891b2863"}],"marconi/proxy/utils/helpers.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"60efaf32882543603a3f04a3ea940bea7bbc5ca4","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    return resp"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"def capitalized(d):"},{"line_number":42,"context_line":"    \"\"\"Capitalize all keys in a dict."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    :returns: a new dict of headers in This-Form"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAS3%2F%2FSJ0%3D","line":41,"updated":"2013-09-30 22:16:35.000000000","message":"I kinda like using verbs for functions that are transforming things. How about dropping the \u0027d\u0027 from the name?\n\nAlso, the name and docstring are rather generic. I would like them to say something about http headers, since that is what this function operates on.\n\nFinally, pls. don\u0027t use a single-char variable name for the parameter.","commit_id":"7bb20caf7eae147b066f20f6a8aee0c7f7cdb10b"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"9c399a43fbfe9f880561b71db40013d8ba00c498","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    return resp"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"def capitalized(d):"},{"line_number":42,"context_line":"    \"\"\"Capitalize all keys in a dict."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    :returns: a new dict of headers in This-Form"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAS3%2F%2FR%2Bo%3D","line":41,"in_reply_to":"AAAAS3%2F%2FSJ0%3D","updated":"2013-09-30 23:12:44.000000000","message":"It does not transform in-place, so it should be named like `sorted`.\n\nOh, that\u0027s learned from Haskell... I\u0027ll make the change.","commit_id":"7bb20caf7eae147b066f20f6a8aee0c7f7cdb10b"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"60efaf32882543603a3f04a3ea940bea7bbc5ca4","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    :returns: a new dict of headers in This-Form"},{"line_number":45,"context_line":"    \"\"\""},{"line_number":46,"context_line":"    headers \u003d dict(d)"},{"line_number":47,"context_line":"    for k, v in headers.items():"},{"line_number":48,"context_line":"        nk \u003d \u0027-\u0027.join([w.capitalize() for w in k.split(\u0027-\u0027)])"},{"line_number":49,"context_line":"        headers[nk] \u003d headers.pop(k)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAS3%2F%2FSIM%3D","line":46,"updated":"2013-09-30 22:16:35.000000000","message":"Hmm, copying the dict doesn\u0027t seem to serve any purpose. I tried a slightly altered version of your algorithm and it ran about 20% faster:\n\ndef capitalized2(d):\n    \"\"\"Capitalize all keys in a dict.\n\n    :returns: a new dict of headers in This-Form\n    \"\"\"\n    headers \u003d {}\n    for k, v in d.items():\n        nk \u003d \u0027-\u0027.join([w.capitalize() for w in k.split(\u0027-\u0027)])\n        headers[nk] \u003d v\n\n    return headers","commit_id":"7bb20caf7eae147b066f20f6a8aee0c7f7cdb10b"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"9c399a43fbfe9f880561b71db40013d8ba00c498","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    :returns: a new dict of headers in This-Form"},{"line_number":45,"context_line":"    \"\"\""},{"line_number":46,"context_line":"    headers \u003d dict(d)"},{"line_number":47,"context_line":"    for k, v in headers.items():"},{"line_number":48,"context_line":"        nk \u003d \u0027-\u0027.join([w.capitalize() for w in k.split(\u0027-\u0027)])"},{"line_number":49,"context_line":"        headers[nk] \u003d headers.pop(k)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAS3%2F%2FR%2Bk%3D","line":46,"in_reply_to":"AAAAS3%2F%2FSIM%3D","updated":"2013-09-30 23:12:44.000000000","message":"Done","commit_id":"7bb20caf7eae147b066f20f6a8aee0c7f7cdb10b"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"bd4197da4bcbcb4d2560577abd7d83ddd9c1204d","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    return resp"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"def capitalized(d):"},{"line_number":42,"context_line":"    \"\"\"Capitalize all keys in a dict."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    :returns: a new dict of headers in This-Form"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAS3%2F%2FP4U%3D","line":41,"updated":"2013-10-01 15:35:41.000000000","message":"Can you rename the param so it is something other than a single char per HACKING?\n\nAlso, were you going to change the name into a verb?","commit_id":"a8f4924eaf6e37ddde6e703f93f7940acf1013d0"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"bd4197da4bcbcb4d2560577abd7d83ddd9c1204d","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"def capitalized(d):"},{"line_number":42,"context_line":"    \"\"\"Capitalize all keys in a dict."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    :returns: a new dict of headers in This-Form"},{"line_number":45,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAS3%2F%2FP4I%3D","line":42,"updated":"2013-10-01 15:35:41.000000000","message":"Can you make the docstring summary more specific?","commit_id":"a8f4924eaf6e37ddde6e703f93f7940acf1013d0"}]}
