)]}'
{"neutron/plugins/ofagent/agent/ofa_neutron_agent.py":[{"author":{"_account_id":1935,"name":"Tomoe Sugihara","email":"tomoe.sugihara@gmail.com","username":"tomoe"},"change_message_id":"cc3852f5b6e4c0db4c1e682b943817cb40156cd1","unresolved":false,"context_lines":[{"line_number":977,"context_line":"        port_info[\u0027removed\u0027] \u003d registered_ports - cur_ports"},{"line_number":978,"context_line":"        return port_info"},{"line_number":979,"context_line":""},{"line_number":980,"context_line":"    def check_changed_vlans(self, registered_ports):"},{"line_number":981,"context_line":"        \"\"\"Return ports which have lost their vlan tag."},{"line_number":982,"context_line":""},{"line_number":983,"context_line":"        The returned value is a set of port ids of the ports concerned by a"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXH%2F%2FtOU%3D","line":980,"updated":"2014-04-18 03:05:09.000000000","message":"just a comment about style.  \nConsidering the return value, should this be named as get_changed_vlans? \n\nAlso, this seems to be a non-public method. so you may want to add a leading underscore. See: http://legacy.python.org/dev/peps/pep-0008/#method-names-and-instance-variables","commit_id":"4c840f8329cc42c11190a87a50ef22e8cbfb6f3e"},{"author":{"_account_id":8344,"name":"fumihiko kakuma","email":"kakuma@valinux.co.jp","username":"kakuma"},"change_message_id":"c9514cbe73a2fef912088d7fb19c974c173ceaa1","unresolved":false,"context_lines":[{"line_number":977,"context_line":"        port_info[\u0027removed\u0027] \u003d registered_ports - cur_ports"},{"line_number":978,"context_line":"        return port_info"},{"line_number":979,"context_line":""},{"line_number":980,"context_line":"    def check_changed_vlans(self, registered_ports):"},{"line_number":981,"context_line":"        \"\"\"Return ports which have lost their vlan tag."},{"line_number":982,"context_line":""},{"line_number":983,"context_line":"        The returned value is a set of port ids of the ports concerned by a"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXH%2F%2FL6c%3D","line":980,"in_reply_to":"AAAAXH%2F%2FtOU%3D","updated":"2014-04-23 13:40:39.000000000","message":"Hi sugihara-san, sorry for the late response.\nA process of this method will be mainly checking a losted vlan tag. So I think it will be a no bad name.\n\nI think it will be good to add a leading underscore.\nBut in this community it seems not to be care whether it is public name or not. :-)\n\nThanks.","commit_id":"4c840f8329cc42c11190a87a50ef22e8cbfb6f3e"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"d2f27efdde1d152776299d147854e9a38a5c2815","unresolved":false,"context_lines":[{"line_number":977,"context_line":"        port_info[\u0027removed\u0027] \u003d registered_ports - cur_ports"},{"line_number":978,"context_line":"        return port_info"},{"line_number":979,"context_line":""},{"line_number":980,"context_line":"    def _check_changed_vlans(self, registered_ports):"},{"line_number":981,"context_line":"        \"\"\"Return ports which have lost their vlan tag."},{"line_number":982,"context_line":""},{"line_number":983,"context_line":"        The returned value is a set of port ids of the ports concerned by a"}],"source_content_type":"text/x-python","patch_set":2,"id":"7adec928_1b71cd0b","line":980,"updated":"2014-05-20 05:23:00.000000000","message":"nit: I prefer _find_lost_vlan_port.","commit_id":"61d16c06302413fa379876e4488234eeb407653f"},{"author":{"_account_id":8344,"name":"fumihiko kakuma","email":"kakuma@valinux.co.jp","username":"kakuma"},"change_message_id":"2a0c956acee3a7012c5dfdb431d835c29ef2780e","unresolved":false,"context_lines":[{"line_number":977,"context_line":"        port_info[\u0027removed\u0027] \u003d registered_ports - cur_ports"},{"line_number":978,"context_line":"        return port_info"},{"line_number":979,"context_line":""},{"line_number":980,"context_line":"    def _check_changed_vlans(self, registered_ports):"},{"line_number":981,"context_line":"        \"\"\"Return ports which have lost their vlan tag."},{"line_number":982,"context_line":""},{"line_number":983,"context_line":"        The returned value is a set of port ids of the ports concerned by a"}],"source_content_type":"text/x-python","patch_set":2,"id":"7adec928_d319cc23","line":980,"in_reply_to":"7adec928_1b71cd0b","updated":"2014-05-21 23:42:16.000000000","message":"Done. Yes, certainly changed_vlan may be difficult to understand.","commit_id":"61d16c06302413fa379876e4488234eeb407653f"}],"neutron/tests/unit/ofagent/test_ofa_neutron_agent.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"ce5a6a936a62cbddf51aa4a94b7abcb7c9590ab9","unresolved":false,"context_lines":[{"line_number":312,"context_line":""},{"line_number":313,"context_line":"    def mock_scan_ports(self, vif_port_set\u003dNone, registered_ports\u003dNone,"},{"line_number":314,"context_line":"                        updated_ports\u003dNone, port_tags_dict\u003dNone):"},{"line_number":315,"context_line":"        if port_tags_dict is None:  # Because empty dicts evaluate as False."},{"line_number":316,"context_line":"            port_tags_dict \u003d {}"},{"line_number":317,"context_line":"        with contextlib.nested("},{"line_number":318,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"7adec928_4ab099dd","line":315,"updated":"2014-05-22 05:58:36.000000000","message":"If it\u0027s empty, does it matter if you override it? :-)\n\nIf not:\n\nport_tags_dict \u003d port_tags_dict or {}\n\nIf it does:\n\nport_tags_dict \u003d {} if port_tags_dict is None else port_tags_dict","commit_id":"47d057ae82e2760910444ba374134c3169660455"},{"author":{"_account_id":8344,"name":"fumihiko kakuma","email":"kakuma@valinux.co.jp","username":"kakuma"},"change_message_id":"6a00125562a9790d398db42e02e5429f852c8c72","unresolved":false,"context_lines":[{"line_number":312,"context_line":""},{"line_number":313,"context_line":"    def mock_scan_ports(self, vif_port_set\u003dNone, registered_ports\u003dNone,"},{"line_number":314,"context_line":"                        updated_ports\u003dNone, port_tags_dict\u003dNone):"},{"line_number":315,"context_line":"        if port_tags_dict is None:  # Because empty dicts evaluate as False."},{"line_number":316,"context_line":"            port_tags_dict \u003d {}"},{"line_number":317,"context_line":"        with contextlib.nested("},{"line_number":318,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"7adec928_ed9ec362","line":315,"in_reply_to":"7adec928_103a3434","updated":"2014-05-22 22:29:53.000000000","message":"Done. Thank for your comments. Yes, checking None is unnecessary in a current test case.","commit_id":"47d057ae82e2760910444ba374134c3169660455"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"e01f9cd6cd625249a8f7a7c8f5c3c001d277f9ff","unresolved":false,"context_lines":[{"line_number":312,"context_line":""},{"line_number":313,"context_line":"    def mock_scan_ports(self, vif_port_set\u003dNone, registered_ports\u003dNone,"},{"line_number":314,"context_line":"                        updated_ports\u003dNone, port_tags_dict\u003dNone):"},{"line_number":315,"context_line":"        if port_tags_dict is None:  # Because empty dicts evaluate as False."},{"line_number":316,"context_line":"            port_tags_dict \u003d {}"},{"line_number":317,"context_line":"        with contextlib.nested("},{"line_number":318,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"7adec928_103a3434","line":315,"in_reply_to":"7adec928_4ab099dd","updated":"2014-05-22 15:03:51.000000000","message":"It is not necessary to check for None in this case.  Should use Kevin\u0027s suggestion:\n\nport_tags_dict \u003d port_tags_dict or {}","commit_id":"47d057ae82e2760910444ba374134c3169660455"}]}
