)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"5b1ce5571d0f787869fb34e527cddcc41cae8194","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This patch remove the \"sorted\" function when construct the firewall policy"},{"line_number":15,"context_line":"request body, and follow the input order."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Iaa45446eee199582f5f11a4705e82fb0ab644bcc"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a30ddce_22d4db45","line":16,"updated":"2017-03-08 08:59:39.000000000","message":"Could you file a bug?","commit_id":"6ed0e4d40760771e3ecbc662ebdb4cfc9fdf7b07"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"6708dd674546d21476b9d2c95f6bc95f4a4bf750","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This patch remove the \"sorted\" function when construct the firewall policy"},{"line_number":15,"context_line":"request body, and follow the input order."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Iaa45446eee199582f5f11a4705e82fb0ab644bcc"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a30ddce_5989a225","line":16,"in_reply_to":"9a30ddce_22d4db45","updated":"2017-03-09 01:31:24.000000000","message":"Thanks for review. I will file a bug about this fix.:)","commit_id":"6ed0e4d40760771e3ecbc662ebdb4cfc9fdf7b07"}],"neutronclient/osc/v2/fwaas/firewallpolicy.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"de6f4462f09c0bf041c023aa47d57c7274cc1b86","unresolved":false,"context_lines":[{"line_number":395,"context_line":"        client \u003d client_manager.neutronclient"},{"line_number":396,"context_line":""},{"line_number":397,"context_line":"        if parsed_args.firewall_rule:"},{"line_number":398,"context_line":"            old \u003d client.find_resource("},{"line_number":399,"context_line":"                const.FWP, parsed_args.firewall_policy,"},{"line_number":400,"context_line":"                cmd_resource\u003dconst.CMD_FWP)[const.FWRS]"},{"line_number":401,"context_line":"            new \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a30ddce_02835757","line":398,"range":{"start_line":398,"start_character":11,"end_line":398,"end_character":15},"updated":"2017-03-08 08:59:22.000000000","message":"I think \u0027current\u0027 is more meaningful name.","commit_id":"6ed0e4d40760771e3ecbc662ebdb4cfc9fdf7b07"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"6708dd674546d21476b9d2c95f6bc95f4a4bf750","unresolved":false,"context_lines":[{"line_number":395,"context_line":"        client \u003d client_manager.neutronclient"},{"line_number":396,"context_line":""},{"line_number":397,"context_line":"        if parsed_args.firewall_rule:"},{"line_number":398,"context_line":"            old \u003d client.find_resource("},{"line_number":399,"context_line":"                const.FWP, parsed_args.firewall_policy,"},{"line_number":400,"context_line":"                cmd_resource\u003dconst.CMD_FWP)[const.FWRS]"},{"line_number":401,"context_line":"            new \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a30ddce_f99fb64d","line":398,"range":{"start_line":398,"start_character":11,"end_line":398,"end_character":15},"in_reply_to":"9a30ddce_02835757","updated":"2017-03-09 01:31:24.000000000","message":"Agree. I will change it in the next one.","commit_id":"6ed0e4d40760771e3ecbc662ebdb4cfc9fdf7b07"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"de6f4462f09c0bf041c023aa47d57c7274cc1b86","unresolved":false,"context_lines":[{"line_number":398,"context_line":"            old \u003d client.find_resource("},{"line_number":399,"context_line":"                const.FWP, parsed_args.firewall_policy,"},{"line_number":400,"context_line":"                cmd_resource\u003dconst.CMD_FWP)[const.FWRS]"},{"line_number":401,"context_line":"            new \u003d []"},{"line_number":402,"context_line":"            for f in set(parsed_args.firewall_rule):"},{"line_number":403,"context_line":"                new.append(client.find_resource("},{"line_number":404,"context_line":"                    const.FWR, f, cmd_resource\u003dconst.CMD_FWR)[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a30ddce_c2913f9b","line":401,"range":{"start_line":401,"start_character":11,"end_line":401,"end_character":15},"updated":"2017-03-08 08:59:22.000000000","message":"\u0027new\u0027 is a confusing name. I would suggest \u0027removed\u0027.\nThis array stores a list of rule ID to be dropped.\n\nCombining with L.398, the logic of L.405 would be:\n\n  [r for r in current if r not in removed]\n\nI think it is easier to understand.","commit_id":"6ed0e4d40760771e3ecbc662ebdb4cfc9fdf7b07"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"6708dd674546d21476b9d2c95f6bc95f4a4bf750","unresolved":false,"context_lines":[{"line_number":398,"context_line":"            old \u003d client.find_resource("},{"line_number":399,"context_line":"                const.FWP, parsed_args.firewall_policy,"},{"line_number":400,"context_line":"                cmd_resource\u003dconst.CMD_FWP)[const.FWRS]"},{"line_number":401,"context_line":"            new \u003d []"},{"line_number":402,"context_line":"            for f in set(parsed_args.firewall_rule):"},{"line_number":403,"context_line":"                new.append(client.find_resource("},{"line_number":404,"context_line":"                    const.FWR, f, cmd_resource\u003dconst.CMD_FWR)[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a30ddce_b9b45ed1","line":401,"range":{"start_line":401,"start_character":11,"end_line":401,"end_character":15},"in_reply_to":"9a30ddce_c2913f9b","updated":"2017-03-09 01:31:24.000000000","message":"Thanks for your kind suggestion.","commit_id":"6ed0e4d40760771e3ecbc662ebdb4cfc9fdf7b07"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"de6f4462f09c0bf041c023aa47d57c7274cc1b86","unresolved":false,"context_lines":[{"line_number":402,"context_line":"            for f in set(parsed_args.firewall_rule):"},{"line_number":403,"context_line":"                new.append(client.find_resource("},{"line_number":404,"context_line":"                    const.FWR, f, cmd_resource\u003dconst.CMD_FWR)[\u0027id\u0027])"},{"line_number":405,"context_line":"            attrs[const.FWRS] \u003d list(set(old) - set(new))"},{"line_number":406,"context_line":"        if parsed_args.all_firewall_rule:"},{"line_number":407,"context_line":"            attrs[const.FWRS] \u003d []"},{"line_number":408,"context_line":"        if parsed_args.audited:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a30ddce_c2ba1f23","line":405,"range":{"start_line":405,"start_character":32,"end_line":405,"end_character":57},"updated":"2017-03-08 08:59:22.000000000","message":"set() is an unordered structure, so there is no guarantee the original order is kept.\n\nIn this case, I think we need to drop specified rules with keeping the order of remaining rules.\n\nI would suggest:\n\n  [r for r in old_rules if r not in new]","commit_id":"6ed0e4d40760771e3ecbc662ebdb4cfc9fdf7b07"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"6708dd674546d21476b9d2c95f6bc95f4a4bf750","unresolved":false,"context_lines":[{"line_number":402,"context_line":"            for f in set(parsed_args.firewall_rule):"},{"line_number":403,"context_line":"                new.append(client.find_resource("},{"line_number":404,"context_line":"                    const.FWR, f, cmd_resource\u003dconst.CMD_FWR)[\u0027id\u0027])"},{"line_number":405,"context_line":"            attrs[const.FWRS] \u003d list(set(old) - set(new))"},{"line_number":406,"context_line":"        if parsed_args.all_firewall_rule:"},{"line_number":407,"context_line":"            attrs[const.FWRS] \u003d []"},{"line_number":408,"context_line":"        if parsed_args.audited:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a30ddce_9945da71","line":405,"range":{"start_line":405,"start_character":32,"end_line":405,"end_character":57},"in_reply_to":"9a30ddce_c2ba1f23","updated":"2017-03-09 01:31:24.000000000","message":"Yeah, thanks. :P.","commit_id":"6ed0e4d40760771e3ecbc662ebdb4cfc9fdf7b07"}]}
