)]}'
{"neutronclient/neutron/v2_0/__init__.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2d6ee2adee01b72639b38ae59758006b8f81497a","unresolved":false,"context_lines":[{"line_number":639,"context_line":"        return parser"},{"line_number":640,"context_line":""},{"line_number":641,"context_line":"    def extend_list(self, data, parsed_args):"},{"line_number":642,"context_line":"        \"\"\"Update a retrieved list."},{"line_number":643,"context_line":""},{"line_number":644,"context_line":"        This method provides a way to modify a original list returned from"},{"line_number":645,"context_line":"        the neutron server. For example, you can add subnet cidr information"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_7c4cc376","line":642,"updated":"2014-07-25 16:13:47.000000000","message":"ShowCommand retrieves not a list but data, so extend_\"list\" looks inappropriate name. \"extend_data\" looks better to me.","commit_id":"51b612bbec6d9835feb8e83d70b22386ecb27e53"},{"author":{"_account_id":11614,"name":"Koteswara Rao Kelam","email":"koteswara.kelam@hp.com","username":"koteswar"},"change_message_id":"6542a081c35bd64b463ef5ffc088ebba126e7962","unresolved":false,"context_lines":[{"line_number":639,"context_line":"        return parser"},{"line_number":640,"context_line":""},{"line_number":641,"context_line":"    def extend_list(self, data, parsed_args):"},{"line_number":642,"context_line":"        \"\"\"Update a retrieved list."},{"line_number":643,"context_line":""},{"line_number":644,"context_line":"        This method provides a way to modify a original list returned from"},{"line_number":645,"context_line":"        the neutron server. For example, you can add subnet cidr information"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_ec02be07","line":642,"in_reply_to":"baada198_7c4cc376","updated":"2014-07-28 08:12:25.000000000","message":"updated in my next patch. CreateCommand also should have this method as we display the rule when we create it.","commit_id":"51b612bbec6d9835feb8e83d70b22386ecb27e53"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2d6ee2adee01b72639b38ae59758006b8f81497a","unresolved":false,"context_lines":[{"line_number":641,"context_line":"    def extend_list(self, data, parsed_args):"},{"line_number":642,"context_line":"        \"\"\"Update a retrieved list."},{"line_number":643,"context_line":""},{"line_number":644,"context_line":"        This method provides a way to modify a original list returned from"},{"line_number":645,"context_line":"        the neutron server. For example, you can add subnet cidr information"},{"line_number":646,"context_line":"        to a list network."},{"line_number":647,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_dc578fff","line":644,"updated":"2014-07-25 16:13:47.000000000","message":"This class does not deal with \"list\".","commit_id":"51b612bbec6d9835feb8e83d70b22386ecb27e53"},{"author":{"_account_id":11614,"name":"Koteswara Rao Kelam","email":"koteswara.kelam@hp.com","username":"koteswar"},"change_message_id":"6542a081c35bd64b463ef5ffc088ebba126e7962","unresolved":false,"context_lines":[{"line_number":641,"context_line":"    def extend_list(self, data, parsed_args):"},{"line_number":642,"context_line":"        \"\"\"Update a retrieved list."},{"line_number":643,"context_line":""},{"line_number":644,"context_line":"        This method provides a way to modify a original list returned from"},{"line_number":645,"context_line":"        the neutron server. For example, you can add subnet cidr information"},{"line_number":646,"context_line":"        to a list network."},{"line_number":647,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_6c0eae33","line":644,"in_reply_to":"baada198_dc578fff","updated":"2014-07-28 08:12:25.000000000","message":"updated","commit_id":"51b612bbec6d9835feb8e83d70b22386ecb27e53"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2d6ee2adee01b72639b38ae59758006b8f81497a","unresolved":false,"context_lines":[{"line_number":643,"context_line":""},{"line_number":644,"context_line":"        This method provides a way to modify a original list returned from"},{"line_number":645,"context_line":"        the neutron server. For example, you can add subnet cidr information"},{"line_number":646,"context_line":"        to a list network."},{"line_number":647,"context_line":"        \"\"\""},{"line_number":648,"context_line":""},{"line_number":649,"context_line":"    def get_data(self, parsed_args):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_5c5a9f1e","line":646,"updated":"2014-07-25 16:13:47.000000000","message":"This example is also not appropriate here.","commit_id":"51b612bbec6d9835feb8e83d70b22386ecb27e53"},{"author":{"_account_id":11614,"name":"Koteswara Rao Kelam","email":"koteswara.kelam@hp.com","username":"koteswar"},"change_message_id":"6542a081c35bd64b463ef5ffc088ebba126e7962","unresolved":false,"context_lines":[{"line_number":643,"context_line":""},{"line_number":644,"context_line":"        This method provides a way to modify a original list returned from"},{"line_number":645,"context_line":"        the neutron server. For example, you can add subnet cidr information"},{"line_number":646,"context_line":"        to a list network."},{"line_number":647,"context_line":"        \"\"\""},{"line_number":648,"context_line":""},{"line_number":649,"context_line":"    def get_data(self, parsed_args):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_cc26dab9","line":646,"in_reply_to":"baada198_5c5a9f1e","updated":"2014-07-28 08:12:25.000000000","message":"updated","commit_id":"51b612bbec6d9835feb8e83d70b22386ecb27e53"},{"author":{"_account_id":11825,"name":"Sudhakar Babu Gariganti","email":"sudhakar.gariganti@gmail.com","username":"sudhakar-gariganti"},"change_message_id":"de00795ccb488670b326a472d87720696e01bcb4","unresolved":false,"context_lines":[{"line_number":397,"context_line":"    resource \u003d None"},{"line_number":398,"context_line":"    log \u003d None"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"    def extend_data(self, data, parsed_args):"},{"line_number":401,"context_line":"        \"\"\"Update a retrieved data."},{"line_number":402,"context_line":""},{"line_number":403,"context_line":"        This method provides a way to modify a original data returned from"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_3f3a16cd","line":400,"updated":"2014-07-28 08:44:59.000000000","message":"Is it better to move this stub to NeutronCommand class? Both classes are subclassing from NeutronCommand, so we can avoid little duplication.","commit_id":"625a58951a92aaf895935aee7fa3cfe06467a1e5"},{"author":{"_account_id":11614,"name":"Koteswara Rao Kelam","email":"koteswara.kelam@hp.com","username":"koteswar"},"change_message_id":"1b2a6f8354e5f7a063295db3e3160a1fe5a68d99","unresolved":false,"context_lines":[{"line_number":397,"context_line":"    resource \u003d None"},{"line_number":398,"context_line":"    log \u003d None"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"    def extend_data(self, data, parsed_args):"},{"line_number":401,"context_line":"        \"\"\"Update a retrieved data."},{"line_number":402,"context_line":""},{"line_number":403,"context_line":"        This method provides a way to modify a original data returned from"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_ef954988","line":400,"in_reply_to":"baada198_3f3a16cd","updated":"2014-07-28 12:01:48.000000000","message":"thanks for catching this. I moved it to base class NeutronCommand.","commit_id":"625a58951a92aaf895935aee7fa3cfe06467a1e5"},{"author":{"_account_id":11825,"name":"Sudhakar Babu Gariganti","email":"sudhakar.gariganti@gmail.com","username":"sudhakar-gariganti"},"change_message_id":"3ebbf1394e3ddd81962009e9b605605572b2fb24","unresolved":false,"context_lines":[{"line_number":349,"context_line":"        #if hasattr(self, \u0027formatters\u0027):"},{"line_number":350,"context_line":"            #self.formatters[\u0027table\u0027] \u003d TableFormater()"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def extend_data(self, data, parsed_args):"},{"line_number":353,"context_line":"        \"\"\"Update a retrieved data."},{"line_number":354,"context_line":""},{"line_number":355,"context_line":"        This method provides a way to modify a original data returned from"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_7dbf2460","line":352,"updated":"2014-07-28 17:28:58.000000000","message":"What is the use of parsed_args? we are not using it in the implementation. Is it possible to get rid of it altogether?","commit_id":"273b37eb0c8b7790865edde9df42be72ea4477b9"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f217c05cc6615473cf57598fa80a8e81c998a9da","unresolved":false,"context_lines":[{"line_number":349,"context_line":"        #if hasattr(self, \u0027formatters\u0027):"},{"line_number":350,"context_line":"            #self.formatters[\u0027table\u0027] \u003d TableFormater()"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def extend_data(self, data, parsed_args):"},{"line_number":353,"context_line":"        \"\"\"Update a retrieved data."},{"line_number":354,"context_line":""},{"line_number":355,"context_line":"        This method provides a way to modify a original data returned from"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_dfb92fed","line":352,"in_reply_to":"baada198_7dbf2460","updated":"2014-08-03 19:39:19.000000000","message":"Perhaps it comes from extend_list of ListCommand class, but it seems unnecessary for ShowCommand. I am not sure we should keep it.","commit_id":"273b37eb0c8b7790865edde9df42be72ea4477b9"}],"neutronclient/neutron/v2_0/fw/firewallrule.py":[{"author":{"_account_id":11825,"name":"Sudhakar Babu Gariganti","email":"sudhakar.gariganti@gmail.com","username":"sudhakar-gariganti"},"change_message_id":"3ebbf1394e3ddd81962009e9b605605572b2fb24","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    resource \u003d \u0027firewall_rule\u0027"},{"line_number":67,"context_line":"    log \u003d logging.getLogger(__name__ + \u0027.ShowFirewallRule\u0027)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def extend_data(self, data, parsed_args):"},{"line_number":70,"context_line":"        if \u0027protocol\u0027 in data[\u0027firewall_rule\u0027]:"},{"line_number":71,"context_line":"            if data[\u0027firewall_rule\u0027][\u0027protocol\u0027]:"},{"line_number":72,"context_line":"                protocol \u003d data[\u0027firewall_rule\u0027][\u0027protocol\u0027].upper()"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_fdfc1441","line":69,"updated":"2014-07-28 17:28:58.000000000","message":"As of now only these two classes are implementing extend_data method and the implementation is same in both cases. Why not move this implementation to the base class itself?\n\nIn future if someone wants to have a different behavior they can override the method in the respective class.","commit_id":"273b37eb0c8b7790865edde9df42be72ea4477b9"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f217c05cc6615473cf57598fa80a8e81c998a9da","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    resource \u003d \u0027firewall_rule\u0027"},{"line_number":67,"context_line":"    log \u003d logging.getLogger(__name__ + \u0027.ShowFirewallRule\u0027)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def extend_data(self, data, parsed_args):"},{"line_number":70,"context_line":"        if \u0027protocol\u0027 in data[\u0027firewall_rule\u0027]:"},{"line_number":71,"context_line":"            if data[\u0027firewall_rule\u0027][\u0027protocol\u0027]:"},{"line_number":72,"context_line":"                protocol \u003d data[\u0027firewall_rule\u0027][\u0027protocol\u0027].upper()"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_1fd9e755","line":69,"in_reply_to":"baada198_fdfc1441","updated":"2014-08-03 19:39:19.000000000","message":"+1. It is better to create a method in this moudle and share it in both classes.","commit_id":"273b37eb0c8b7790865edde9df42be72ea4477b9"}]}
