)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"ec86a1d9a4afaf5df1b5d34e3cc1eeed17307101","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Big Switch: Only update hash header on success"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch moves the hash update call into the success block"},{"line_number":10,"context_line":"of the of the server manager so the database isn\u0027t updated with"},{"line_number":11,"context_line":"a hash header from an error response. Additionally, it prevents"},{"line_number":12,"context_line":"the hash from being updated to an empty value if the hash header"},{"line_number":13,"context_line":"is not present in the response."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_896e3b96","line":10,"updated":"2014-07-30 01:59:21.000000000","message":"pls correct if you submit a new patch; otherwise not necessary.","commit_id":"d6ba33fbe771a7e21418fad0da5d69fe148d5e7e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b41e1e97b6f380178ceff1a2cf6c0f48dc398acb","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Big Switch: Only update hash header on success"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch moves the hash update call into the success block"},{"line_number":10,"context_line":"of the of the server manager so the database isn\u0027t updated with"},{"line_number":11,"context_line":"a hash header from an error response. Additionally, it prevents"},{"line_number":12,"context_line":"the hash from being updated to an empty value if the hash header"},{"line_number":13,"context_line":"is not present in the response."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_9aa837db","line":10,"in_reply_to":"baada198_896e3b96","updated":"2014-07-30 05:08:20.000000000","message":"It took me an embarrassingly long time to see my mistake. I apparently have built-in duplication code. :-)","commit_id":"d6ba33fbe771a7e21418fad0da5d69fe148d5e7e"}],"neutron/plugins/bigswitch/servermanager.py":[{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"ec7b90e952a6c18e16b655342c26249dd291930e","unresolved":false,"context_lines":[{"line_number":189,"context_line":"            if response.status in self.success_codes:"},{"line_number":190,"context_line":"                hash_value \u003d response.getheader(HASH_MATCH_HEADER)"},{"line_number":191,"context_line":"                # don\u0027t clear hash from DB if a hash header wasn\u0027t present"},{"line_number":192,"context_line":"                if hash_value is not None:"},{"line_number":193,"context_line":"                    hash_handler.put_hash(hash_value)"},{"line_number":194,"context_line":"                try:"},{"line_number":195,"context_line":"                    respdata \u003d json.loads(respstr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_951e4873","line":192,"updated":"2014-07-30 06:22:07.000000000","message":"if hash_value:   ??","commit_id":"8a3139fb5ccc1792543df682d89295e9f65d809e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"afdb46e2cf010b7245652e91ca47754d0d134545","unresolved":false,"context_lines":[{"line_number":189,"context_line":"            if response.status in self.success_codes:"},{"line_number":190,"context_line":"                hash_value \u003d response.getheader(HASH_MATCH_HEADER)"},{"line_number":191,"context_line":"                # don\u0027t clear hash from DB if a hash header wasn\u0027t present"},{"line_number":192,"context_line":"                if hash_value is not None:"},{"line_number":193,"context_line":"                    hash_handler.put_hash(hash_value)"},{"line_number":194,"context_line":"                try:"},{"line_number":195,"context_line":"                    respdata \u003d json.loads(respstr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_60e866a7","line":192,"in_reply_to":"baada198_7a8b18c0","updated":"2014-08-04 16:31:51.000000000","message":"Yes, I\u0027m explicitly checking for None here to only check for the case where the hash header isn\u0027t present. I do want to update if the hash header is present but empty.","commit_id":"8a3139fb5ccc1792543df682d89295e9f65d809e"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"9b99fa626e0245ea7860e28b3f6c3d146c9345e2","unresolved":false,"context_lines":[{"line_number":189,"context_line":"            if response.status in self.success_codes:"},{"line_number":190,"context_line":"                hash_value \u003d response.getheader(HASH_MATCH_HEADER)"},{"line_number":191,"context_line":"                # don\u0027t clear hash from DB if a hash header wasn\u0027t present"},{"line_number":192,"context_line":"                if hash_value is not None:"},{"line_number":193,"context_line":"                    hash_handler.put_hash(hash_value)"},{"line_number":194,"context_line":"                try:"},{"line_number":195,"context_line":"                    respdata \u003d json.loads(respstr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_7a8b18c0","line":192,"in_reply_to":"baada198_951e4873","updated":"2014-07-31 19:49:14.000000000","message":"If hash_value:\n\nwould return False for empty string, whereas I think the goal here is to explicitly check for None. Kevin can you confirm?","commit_id":"8a3139fb5ccc1792543df682d89295e9f65d809e"}],"neutron/tests/unit/bigswitch/test_servermanager.py":[{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"ec86a1d9a4afaf5df1b5d34e3cc1eeed17307101","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                # change the header that will be received on delete call"},{"line_number":147,"context_line":"                rv.getresponse.return_value.getheader.return_value \u003d \u0027EVIL\u0027"},{"line_number":148,"context_line":"                rv.getresponse.return_value.status \u003d \u0027GARBAGE\u0027"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"            # create again should use not use header from delete call"},{"line_number":151,"context_line":"            with self.network():"},{"line_number":152,"context_line":"                callheaders \u003d rv.request.mock_calls[2][1][3]"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_89c0fb7e","line":149,"updated":"2014-07-30 01:59:21.000000000","message":"Is the only purpose of this create network to have a delete called before the next call?","commit_id":"d6ba33fbe771a7e21418fad0da5d69fe148d5e7e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b41e1e97b6f380178ceff1a2cf6c0f48dc398acb","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                # change the header that will be received on delete call"},{"line_number":147,"context_line":"                rv.getresponse.return_value.getheader.return_value \u003d \u0027EVIL\u0027"},{"line_number":148,"context_line":"                rv.getresponse.return_value.status \u003d \u0027GARBAGE\u0027"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"            # create again should use not use header from delete call"},{"line_number":151,"context_line":"            with self.network():"},{"line_number":152,"context_line":"                callheaders \u003d rv.request.mock_calls[2][1][3]"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_1a4fc76b","line":149,"in_reply_to":"baada198_89c0fb7e","updated":"2014-07-30 05:08:20.000000000","message":"It\u0027s to have a create call that populates the DB with the first \u0027HASHHEADER\u0027 and then a delete call with a bad header.","commit_id":"d6ba33fbe771a7e21418fad0da5d69fe148d5e7e"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"ec86a1d9a4afaf5df1b5d34e3cc1eeed17307101","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                rv.getresponse.return_value.getheader.return_value \u003d \u0027EVIL\u0027"},{"line_number":148,"context_line":"                rv.getresponse.return_value.status \u003d \u0027GARBAGE\u0027"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"            # create again should use not use header from delete call"},{"line_number":151,"context_line":"            with self.network():"},{"line_number":152,"context_line":"                callheaders \u003d rv.request.mock_calls[2][1][3]"},{"line_number":153,"context_line":"                self.assertIn(\u0027X-BSN-BVS-HASH-MATCH\u0027, callheaders)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_e94ed737","line":150,"updated":"2014-07-30 01:59:21.000000000","message":"\"should not use header\"","commit_id":"d6ba33fbe771a7e21418fad0da5d69fe148d5e7e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b41e1e97b6f380178ceff1a2cf6c0f48dc398acb","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                rv.getresponse.return_value.getheader.return_value \u003d \u0027EVIL\u0027"},{"line_number":148,"context_line":"                rv.getresponse.return_value.status \u003d \u0027GARBAGE\u0027"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"            # create again should use not use header from delete call"},{"line_number":151,"context_line":"            with self.network():"},{"line_number":152,"context_line":"                callheaders \u003d rv.request.mock_calls[2][1][3]"},{"line_number":153,"context_line":"                self.assertIn(\u0027X-BSN-BVS-HASH-MATCH\u0027, callheaders)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_ba5edb11","line":150,"in_reply_to":"baada198_e94ed737","updated":"2014-07-30 05:08:20.000000000","message":"Done","commit_id":"d6ba33fbe771a7e21418fad0da5d69fe148d5e7e"}]}
