)]}'
{"neutron/agent/rpc.py":[{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"239bf1ce2cf33d5213aa73aa842e0e6c48daeb49","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import netaddr"},{"line_number":20,"context_line":"from neutron_lib.agent import topics"},{"line_number":21,"context_line":"from neutron_lib.api.definitions import portbindings_extended as pbe_ext"},{"line_number":22,"context_line":"from neutron_lib.callbacks import events as callback_events"},{"line_number":23,"context_line":"from neutron_lib.callbacks import registry"},{"line_number":24,"context_line":"from neutron_lib.callbacks import resources as callback_resources"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_64eda1b5","line":21,"range":{"start_line":21,"start_character":65,"end_line":21,"end_character":72},"updated":"2018-05-15 08:12:45.000000000","message":"nit: seems the \u0027e\u0027 of `pbe` is standing for the `extended`, it should be `pb_ext`.","commit_id":"f1a044f6ddf7669e23af8ca889351a1c75a9efa7"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"9187f6d2f7fdbc864204879c47d2968d59930207","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import netaddr"},{"line_number":20,"context_line":"from neutron_lib.agent import topics"},{"line_number":21,"context_line":"from neutron_lib.api.definitions import portbindings_extended as pbe_ext"},{"line_number":22,"context_line":"from neutron_lib.callbacks import events as callback_events"},{"line_number":23,"context_line":"from neutron_lib.callbacks import registry"},{"line_number":24,"context_line":"from neutron_lib.callbacks import resources as callback_resources"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_7e2ae57e","line":21,"range":{"start_line":21,"start_character":65,"end_line":21,"end_character":72},"in_reply_to":"5f7c97a3_64eda1b5","updated":"2018-06-04 00:33:38.000000000","message":"Done","commit_id":"f1a044f6ddf7669e23af8ca889351a1c75a9efa7"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b3200d0c3a7d0cb5f27e71e610aab2f8540d3da8","unresolved":false,"context_lines":[{"line_number":229,"context_line":"        # A port update was received. Find out if it is a binding activation"},{"line_number":230,"context_line":"        # where a previous binding was deactivated"},{"line_number":231,"context_line":"        BINDING \u003d pbe_ext.RESOURCE_NAME"},{"line_number":232,"context_line":"        if BINDING in kwargs.get(\u0027changed_fields\u0027, set()):"},{"line_number":233,"context_line":"            existing_active_binding \u003d ("},{"line_number":234,"context_line":"                utils.get_port_binding_by_status_and_host("},{"line_number":235,"context_line":"                    getattr(kwargs[\u0027existing\u0027], \u0027binding\u0027, []),"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_05139567","line":232,"range":{"start_line":232,"start_character":8,"end_line":232,"end_character":58},"updated":"2018-05-14 21:01:42.000000000","message":"and what if bindings are not the only thing changed? isn\u0027t it a possibility? will you loose a valuable change to another field then?","commit_id":"f1a044f6ddf7669e23af8ca889351a1c75a9efa7"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"9187f6d2f7fdbc864204879c47d2968d59930207","unresolved":false,"context_lines":[{"line_number":229,"context_line":"        # A port update was received. Find out if it is a binding activation"},{"line_number":230,"context_line":"        # where a previous binding was deactivated"},{"line_number":231,"context_line":"        BINDING \u003d pbe_ext.RESOURCE_NAME"},{"line_number":232,"context_line":"        if BINDING in kwargs.get(\u0027changed_fields\u0027, set()):"},{"line_number":233,"context_line":"            existing_active_binding \u003d ("},{"line_number":234,"context_line":"                utils.get_port_binding_by_status_and_host("},{"line_number":235,"context_line":"                    getattr(kwargs[\u0027existing\u0027], \u0027binding\u0027, []),"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_fb1e0773","line":232,"range":{"start_line":232,"start_character":8,"end_line":232,"end_character":58},"in_reply_to":"5f7c97a3_05139567","updated":"2018-06-04 00:33:38.000000000","message":"L233-249 below check the following:\n\n1) That the host of the updated port active binding and the host of the existing port active binding are different (there was a change of host)\n\n2) That the active binding of the existing port is now inactive in the updated port (L244-247)\n\nThe only place where a change takes place in a port where 1 and 2 are both true is the activate method in the ml2 plugin, which doesn\u0027t makes any other changes to the port. If 1 or 2 are not true at the same time, then port_update is returned in method from L250 below and the corresponding changes will be correctly processed.","commit_id":"f1a044f6ddf7669e23af8ca889351a1c75a9efa7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"48468cd2ec45087569bd7050d4d3e19aa24de776","unresolved":false,"context_lines":[{"line_number":216,"context_line":"        If the event received is a port update that contains a binding"},{"line_number":217,"context_line":"        activation where a previous binding is deactivated, the method name"},{"line_number":218,"context_line":"        is \u0027binding_deactivate\u0027 and the host where the binding has to be"},{"line_number":219,"context_line":"        deactivated is returned. Otherwise, the method name is contructed from"},{"line_number":220,"context_line":"        rtype and the event received and the host is None."},{"line_number":221,"context_line":"        \"\"\""},{"line_number":222,"context_line":"        is_delete \u003d event \u003d\u003d callback_events.AFTER_DELETE"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_c7a0e094","line":219,"range":{"start_line":219,"start_character":63,"end_line":219,"end_character":73},"updated":"2018-06-05 18:37:09.000000000","message":"nit: constructed","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"328de943d633ba6146a6107c3a8fa537204f0972","unresolved":false,"context_lines":[{"line_number":216,"context_line":"        If the event received is a port update that contains a binding"},{"line_number":217,"context_line":"        activation where a previous binding is deactivated, the method name"},{"line_number":218,"context_line":"        is \u0027binding_deactivate\u0027 and the host where the binding has to be"},{"line_number":219,"context_line":"        deactivated is returned. Otherwise, the method name is contructed from"},{"line_number":220,"context_line":"        rtype and the event received and the host is None."},{"line_number":221,"context_line":"        \"\"\""},{"line_number":222,"context_line":"        is_delete \u003d event \u003d\u003d callback_events.AFTER_DELETE"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_8503720c","line":219,"range":{"start_line":219,"start_character":63,"end_line":219,"end_character":73},"in_reply_to":"5f7c97a3_c7a0e094","updated":"2018-06-20 21:36:33.000000000","message":"Done","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"48468cd2ec45087569bd7050d4d3e19aa24de776","unresolved":false,"context_lines":[{"line_number":228,"context_line":""},{"line_number":229,"context_line":"        # A port update was received. Find out if it is a binding activation"},{"line_number":230,"context_line":"        # where a previous binding was deactivated"},{"line_number":231,"context_line":"        BINDING \u003d pb_ext.COLLECTION_NAME"},{"line_number":232,"context_line":"        if BINDING in kwargs.get(\u0027changed_fields\u0027, set()):"},{"line_number":233,"context_line":"            existing_active_binding \u003d ("},{"line_number":234,"context_line":"                utils.get_port_binding_by_status_and_host("}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_67ca2c1b","line":231,"range":{"start_line":231,"start_character":8,"end_line":231,"end_character":15},"updated":"2018-06-05 18:37:09.000000000","message":"nit: since COLLECTION_NAME is a plural maybe this should be BINDINGS?  Doesn\u0027t really matter...","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"328de943d633ba6146a6107c3a8fa537204f0972","unresolved":false,"context_lines":[{"line_number":228,"context_line":""},{"line_number":229,"context_line":"        # A port update was received. Find out if it is a binding activation"},{"line_number":230,"context_line":"        # where a previous binding was deactivated"},{"line_number":231,"context_line":"        BINDING \u003d pb_ext.COLLECTION_NAME"},{"line_number":232,"context_line":"        if BINDING in kwargs.get(\u0027changed_fields\u0027, set()):"},{"line_number":233,"context_line":"            existing_active_binding \u003d ("},{"line_number":234,"context_line":"                utils.get_port_binding_by_status_and_host("}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_2514de40","line":231,"range":{"start_line":231,"start_character":8,"end_line":231,"end_character":15},"in_reply_to":"5f7c97a3_67ca2c1b","updated":"2018-06-20 21:36:33.000000000","message":"Good catch. Thanks","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"7d6dc799814ef8bc58e3a7e9de564273eaabdfb4","unresolved":false,"context_lines":[{"line_number":226,"context_line":"        if is_delete or rtype !\u003d callback_resources.PORT:"},{"line_number":227,"context_line":"            return method, host"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"        # A port update was received. Find out if it is a binding activation"},{"line_number":230,"context_line":"        # where a previous binding was deactivated"},{"line_number":231,"context_line":"        BINDINGS \u003d pb_ext.COLLECTION_NAME"},{"line_number":232,"context_line":"        if BINDINGS in kwargs.get(\u0027changed_fields\u0027, set()):"},{"line_number":233,"context_line":"            existing_active_binding \u003d ("}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_08c4575f","line":230,"range":{"start_line":229,"start_character":7,"end_line":230,"end_character":50},"updated":"2018-06-20 22:43:54.000000000","message":"sorry I could\u0027ve asked in earlier review about this.\n\nwould it make sense to have a check here ?\nif rtype \u003d\u003d callback_resources.PORT and \n    event \u003d\u003d callback_event.AFTER_UPDATE:\n\nor \n\nif rtype \u003d\u003d callback_resources.PORT and \n    event in [callaback_event.BEFORE_UPDATE, \n              callback_event.AFTER_UPDATE]:\n\ndepending what port update events need to handle deactivation.\n\nreason why I asked to add specific condition, this legacy_notifier is subscribed for PORT and NETWORK\nresources.","commit_id":"329850b00dd4b544c910e06282cdb180ed890722"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"09211374efbd6b14b4e73f1c704f926c388ed0b6","unresolved":false,"context_lines":[{"line_number":226,"context_line":"        if is_delete or rtype !\u003d callback_resources.PORT:"},{"line_number":227,"context_line":"            return method, host"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"        # A port update was received. Find out if it is a binding activation"},{"line_number":230,"context_line":"        # where a previous binding was deactivated"},{"line_number":231,"context_line":"        BINDINGS \u003d pb_ext.COLLECTION_NAME"},{"line_number":232,"context_line":"        if BINDINGS in kwargs.get(\u0027changed_fields\u0027, set()):"},{"line_number":233,"context_line":"            existing_active_binding \u003d ("}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_19990b79","line":230,"range":{"start_line":229,"start_character":7,"end_line":230,"end_character":50},"in_reply_to":"5f7c97a3_08c4575f","updated":"2018-06-21 03:57:30.000000000","message":"Given L226, when we reach this point, we are certain of the following:\n\n1) It is not a delete (first part of if in L226). So it is an update\n\n2) the rtype is callback_resources.PORT (second part of if in L226)\n\nSo at this point we know that the checks you propose will be true. Why do it again?","commit_id":"329850b00dd4b544c910e06282cdb180ed890722"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"f39f008bc54b891cea7f5cfc18ba540e571137b2","unresolved":false,"context_lines":[{"line_number":226,"context_line":"        if is_delete or rtype !\u003d callback_resources.PORT:"},{"line_number":227,"context_line":"            return method, host"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"        # A port update was received. Find out if it is a binding activation"},{"line_number":230,"context_line":"        # where a previous binding was deactivated"},{"line_number":231,"context_line":"        BINDINGS \u003d pb_ext.COLLECTION_NAME"},{"line_number":232,"context_line":"        if BINDINGS in kwargs.get(\u0027changed_fields\u0027, set()):"},{"line_number":233,"context_line":"            existing_active_binding \u003d ("}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_b9b1f7e2","line":230,"range":{"start_line":229,"start_character":7,"end_line":230,"end_character":50},"in_reply_to":"5f7c97a3_19990b79","updated":"2018-06-21 04:00:27.000000000","message":"make sense now. thanks for detailed explanation.","commit_id":"329850b00dd4b544c910e06282cdb180ed890722"}],"neutron/tests/unit/agent/test_rpc.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b3200d0c3a7d0cb5f27e71e610aab2f8540d3da8","unresolved":false,"context_lines":[{"line_number":169,"context_line":"            create_connection.assert_has_calls(expected)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"class TestCacheBackedPluginApi(base.BaseTestCase):"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    def setUp(self):"},{"line_number":175,"context_line":"        super(TestCacheBackedPluginApi, self).setUp()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_e010c750","line":172,"updated":"2018-05-14 21:01:42.000000000","message":"please add a case where bindings AND some other fields change.","commit_id":"f1a044f6ddf7669e23af8ca889351a1c75a9efa7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"08d05df07e143c11fe69aebdd7170df9666249ec","unresolved":false,"context_lines":[{"line_number":169,"context_line":"            create_connection.assert_has_calls(expected)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"class TestCacheBackedPluginApi(base.BaseTestCase):"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    def setUp(self):"},{"line_number":175,"context_line":"        super(TestCacheBackedPluginApi, self).setUp()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_e4b3f1e7","line":172,"in_reply_to":"5f7c97a3_e010c750","updated":"2018-05-15 08:08:19.000000000","message":"+1","commit_id":"f1a044f6ddf7669e23af8ca889351a1c75a9efa7"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"9187f6d2f7fdbc864204879c47d2968d59930207","unresolved":false,"context_lines":[{"line_number":169,"context_line":"            create_connection.assert_has_calls(expected)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"class TestCacheBackedPluginApi(base.BaseTestCase):"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    def setUp(self):"},{"line_number":175,"context_line":"        super(TestCacheBackedPluginApi, self).setUp()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_9b2b5394","line":172,"in_reply_to":"5f7c97a3_e4b3f1e7","updated":"2018-06-04 00:33:38.000000000","message":"Please see response to https://review.openstack.org/#/c/567461/1/neutron/agent/rpc.py@232","commit_id":"f1a044f6ddf7669e23af8ca889351a1c75a9efa7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"48468cd2ec45087569bd7050d4d3e19aa24de776","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        self._api._legacy_interface \u003d mock.Mock()"},{"line_number":178,"context_line":"        self._api._legacy_interface.port_update \u003d mock.Mock()"},{"line_number":179,"context_line":"        self._api._legacy_interface.port_delete \u003d mock.Mock()"},{"line_number":180,"context_line":"        self._api._legacy_interface.binding_deactivate \u003d mock.Mock()"},{"line_number":181,"context_line":"        self._port_id \u003d uuidutils.generate_uuid()"},{"line_number":182,"context_line":"        self._port \u003d ports.Port("},{"line_number":183,"context_line":"            id\u003dself._port_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_07a9f88e","line":180,"updated":"2018-06-05 18:37:09.000000000","message":"You don\u0027t need these extra mocks, just the one on _legacy_interface.","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"c41b65cbd6d203958c6fa9fde154997d1ac968bd","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        self._api._legacy_interface \u003d mock.Mock()"},{"line_number":178,"context_line":"        self._api._legacy_interface.port_update \u003d mock.Mock()"},{"line_number":179,"context_line":"        self._api._legacy_interface.port_delete \u003d mock.Mock()"},{"line_number":180,"context_line":"        self._api._legacy_interface.binding_deactivate \u003d mock.Mock()"},{"line_number":181,"context_line":"        self._port_id \u003d uuidutils.generate_uuid()"},{"line_number":182,"context_line":"        self._port \u003d ports.Port("},{"line_number":183,"context_line":"            id\u003dself._port_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_f55c99ee","line":180,"in_reply_to":"5f7c97a3_07a9f88e","updated":"2018-06-06 08:32:29.000000000","message":"+1","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"328de943d633ba6146a6107c3a8fa537204f0972","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        self._api._legacy_interface \u003d mock.Mock()"},{"line_number":178,"context_line":"        self._api._legacy_interface.port_update \u003d mock.Mock()"},{"line_number":179,"context_line":"        self._api._legacy_interface.port_delete \u003d mock.Mock()"},{"line_number":180,"context_line":"        self._api._legacy_interface.binding_deactivate \u003d mock.Mock()"},{"line_number":181,"context_line":"        self._port_id \u003d uuidutils.generate_uuid()"},{"line_number":182,"context_line":"        self._port \u003d ports.Port("},{"line_number":183,"context_line":"            id\u003dself._port_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_c535eaa9","line":180,"in_reply_to":"5f7c97a3_07a9f88e","updated":"2018-06-20 21:36:33.000000000","message":"Done","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"328de943d633ba6146a6107c3a8fa537204f0972","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        self._api._legacy_interface \u003d mock.Mock()"},{"line_number":178,"context_line":"        self._api._legacy_interface.port_update \u003d mock.Mock()"},{"line_number":179,"context_line":"        self._api._legacy_interface.port_delete \u003d mock.Mock()"},{"line_number":180,"context_line":"        self._api._legacy_interface.binding_deactivate \u003d mock.Mock()"},{"line_number":181,"context_line":"        self._port_id \u003d uuidutils.generate_uuid()"},{"line_number":182,"context_line":"        self._port \u003d ports.Port("},{"line_number":183,"context_line":"            id\u003dself._port_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_e53a6696","line":180,"in_reply_to":"5f7c97a3_f55c99ee","updated":"2018-06-20 21:36:33.000000000","message":"Done","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"f97f1cd063a1f9f460dbb8da619ec644149f62c8","unresolved":false,"context_lines":[{"line_number":246,"context_line":"        self._api._legacy_interface.binding_deactivate.assert_not_called()"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def test__legacy_notifier_existing_or_updated_is_none(self):"},{"line_number":249,"context_line":"        self._api._legacy_notifier(\u0027Port\u0027, events.AFTER_UPDATE, self, mock.ANY,"},{"line_number":250,"context_line":"                                   changed_fields\u003dset([\u0027name\u0027, \u0027bindings\u0027]),"},{"line_number":251,"context_line":"                                   resource_id\u003dself._port_id,"},{"line_number":252,"context_line":"                                   existing\u003dNone, updated\u003dNone)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_24d617f4","line":249,"range":{"start_line":249,"start_character":35,"end_line":249,"end_character":41},"updated":"2018-06-08 23:57:41.000000000","message":"from callback/resources.py I think this should be \u0027port\u0027 not \"Port\" ? https://github.com/openstack/neutron-lib/blob/master/neutron_lib/callbacks/resources.py#L18 \n\nthats what I guess being used in https://review.openstack.org/#/c/567461/2/neutron/agent/rpc.py@226","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"643a3740778445f0cb4111d277487552aee44f2e","unresolved":false,"context_lines":[{"line_number":246,"context_line":"        self._api._legacy_interface.binding_deactivate.assert_not_called()"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def test__legacy_notifier_existing_or_updated_is_none(self):"},{"line_number":249,"context_line":"        self._api._legacy_notifier(\u0027Port\u0027, events.AFTER_UPDATE, self, mock.ANY,"},{"line_number":250,"context_line":"                                   changed_fields\u003dset([\u0027name\u0027, \u0027bindings\u0027]),"},{"line_number":251,"context_line":"                                   resource_id\u003dself._port_id,"},{"line_number":252,"context_line":"                                   existing\u003dNone, updated\u003dNone)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_90b54035","line":249,"range":{"start_line":249,"start_character":35,"end_line":249,"end_character":41},"in_reply_to":"5f7c97a3_24d617f4","updated":"2018-06-18 08:07:42.000000000","message":"why not just use neutron_lib.callbacks.resources.PORT constant here?","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"328de943d633ba6146a6107c3a8fa537204f0972","unresolved":false,"context_lines":[{"line_number":246,"context_line":"        self._api._legacy_interface.binding_deactivate.assert_not_called()"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def test__legacy_notifier_existing_or_updated_is_none(self):"},{"line_number":249,"context_line":"        self._api._legacy_notifier(\u0027Port\u0027, events.AFTER_UPDATE, self, mock.ANY,"},{"line_number":250,"context_line":"                                   changed_fields\u003dset([\u0027name\u0027, \u0027bindings\u0027]),"},{"line_number":251,"context_line":"                                   resource_id\u003dself._port_id,"},{"line_number":252,"context_line":"                                   existing\u003dNone, updated\u003dNone)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_45c47a92","line":249,"range":{"start_line":249,"start_character":35,"end_line":249,"end_character":41},"in_reply_to":"5f7c97a3_24d617f4","updated":"2018-06-20 21:36:33.000000000","message":"you are right, it should be the same. Actually, I changed also in L189, L200, etc.","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"328de943d633ba6146a6107c3a8fa537204f0972","unresolved":false,"context_lines":[{"line_number":246,"context_line":"        self._api._legacy_interface.binding_deactivate.assert_not_called()"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def test__legacy_notifier_existing_or_updated_is_none(self):"},{"line_number":249,"context_line":"        self._api._legacy_notifier(\u0027Port\u0027, events.AFTER_UPDATE, self, mock.ANY,"},{"line_number":250,"context_line":"                                   changed_fields\u003dset([\u0027name\u0027, \u0027bindings\u0027]),"},{"line_number":251,"context_line":"                                   resource_id\u003dself._port_id,"},{"line_number":252,"context_line":"                                   existing\u003dNone, updated\u003dNone)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_65c17680","line":249,"range":{"start_line":249,"start_character":35,"end_line":249,"end_character":41},"in_reply_to":"5f7c97a3_90b54035","updated":"2018-06-20 21:36:33.000000000","message":"Yeah, better use the constant","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"643a3740778445f0cb4111d277487552aee44f2e","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                                   changed_fields\u003dset([\u0027name\u0027, \u0027bindings\u0027]),"},{"line_number":251,"context_line":"                                   resource_id\u003dself._port_id,"},{"line_number":252,"context_line":"                                   existing\u003dNone, updated\u003dNone)"},{"line_number":253,"context_line":"        self._api._legacy_notifier(\u0027Port\u0027, events.AFTER_UPDATE, self, mock.ANY,"},{"line_number":254,"context_line":"                                   changed_fields\u003dset([\u0027name\u0027, \u0027bindings\u0027]),"},{"line_number":255,"context_line":"                                   resource_id\u003dself._port_id,"},{"line_number":256,"context_line":"                                   existing\u003dself._port, updated\u003dNone)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_5081e84c","line":253,"range":{"start_line":253,"start_character":35,"end_line":253,"end_character":41},"updated":"2018-06-18 08:07:42.000000000","message":"and here","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"328de943d633ba6146a6107c3a8fa537204f0972","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                                   changed_fields\u003dset([\u0027name\u0027, \u0027bindings\u0027]),"},{"line_number":251,"context_line":"                                   resource_id\u003dself._port_id,"},{"line_number":252,"context_line":"                                   existing\u003dNone, updated\u003dNone)"},{"line_number":253,"context_line":"        self._api._legacy_notifier(\u0027Port\u0027, events.AFTER_UPDATE, self, mock.ANY,"},{"line_number":254,"context_line":"                                   changed_fields\u003dset([\u0027name\u0027, \u0027bindings\u0027]),"},{"line_number":255,"context_line":"                                   resource_id\u003dself._port_id,"},{"line_number":256,"context_line":"                                   existing\u003dself._port, updated\u003dNone)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_25b7fe23","line":253,"range":{"start_line":253,"start_character":35,"end_line":253,"end_character":41},"in_reply_to":"5f7c97a3_5081e84c","updated":"2018-06-20 21:36:33.000000000","message":"I changed it in all the test cases","commit_id":"ba82a8804cf869c88dd6aaa1e77817fc992baa6e"}]}
