)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"7b4094ffe4caf9e16405909a75d718151169fd11","unresolved":false,"context_lines":[{"line_number":11,"context_line":"object is used with the publish() method to pass along the related data."},{"line_number":12,"context_line":"In addition a few UTs are updated to work with the changes. Finally"},{"line_number":13,"context_line":"a few shims are put into place to allow PRECOMMIT_UPDATE based events to"},{"line_number":14,"context_line":"use payloads while still supporting the exist kwarg style events."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"NeutronLibImpact"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9f91af0f_96875510","line":14,"range":{"start_line":14,"start_character":40,"end_line":14,"end_character":45},"updated":"2018-01-03 22:50:24.000000000","message":"existing","commit_id":"f69b8d7fdbf95dd0ae6acfe4dff98abeb2e6dd46"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"2da0df2f9af65247929816c25960b8582bb3f567","unresolved":false,"context_lines":[{"line_number":11,"context_line":"object is used with the publish() method to pass along the related data."},{"line_number":12,"context_line":"In addition a few UTs are updated to work with the changes. Finally"},{"line_number":13,"context_line":"a few shims are put into place to allow PRECOMMIT_UPDATE based events to"},{"line_number":14,"context_line":"use payloads while still supporting the exist kwarg style events."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"NeutronLibImpact"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9f91af0f_d2b87b2b","line":14,"range":{"start_line":14,"start_character":40,"end_line":14,"end_character":45},"in_reply_to":"9f91af0f_96875510","updated":"2018-01-04 13:34:15.000000000","message":"will fix","commit_id":"f69b8d7fdbf95dd0ae6acfe4dff98abeb2e6dd46"}],"neutron/db/securitygroups_db.py":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"7b4094ffe4caf9e16405909a75d718151169fd11","unresolved":false,"context_lines":[{"line_number":270,"context_line":"                        context, request_body\u003ds,"},{"line_number":271,"context_line":"                        states\u003d(kwargs[\u0027original_security_group\u0027],),"},{"line_number":272,"context_line":"                        resource_id\u003did, desired_state\u003dsg_dict))"},{"line_number":273,"context_line":"            registry.notify(resources.SECURITY_GROUP, events.AFTER_UPDATE,"},{"line_number":274,"context_line":"                            self, **kwargs)"},{"line_number":275,"context_line":"        return sg_dict"},{"line_number":276,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_6320d5b1","line":273,"updated":"2018-01-03 22:50:24.000000000","message":"I may be missing something, but why was this AFTER_UPDATE notification moved inside the transaction? AFTER_UPDATE take place after the commit","commit_id":"f69b8d7fdbf95dd0ae6acfe4dff98abeb2e6dd46"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"2da0df2f9af65247929816c25960b8582bb3f567","unresolved":false,"context_lines":[{"line_number":270,"context_line":"                        context, request_body\u003ds,"},{"line_number":271,"context_line":"                        states\u003d(kwargs[\u0027original_security_group\u0027],),"},{"line_number":272,"context_line":"                        resource_id\u003did, desired_state\u003dsg_dict))"},{"line_number":273,"context_line":"            registry.notify(resources.SECURITY_GROUP, events.AFTER_UPDATE,"},{"line_number":274,"context_line":"                            self, **kwargs)"},{"line_number":275,"context_line":"        return sg_dict"},{"line_number":276,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_725acf2a","line":273,"in_reply_to":"9f91af0f_6320d5b1","updated":"2018-01-04 13:34:15.000000000","message":"Oh geez, good catch!","commit_id":"f69b8d7fdbf95dd0ae6acfe4dff98abeb2e6dd46"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"027b0d189b7762a90b79c7b1d575d9b3f8f1b11c","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                        states\u003d(kwargs[\u0027original_security_group\u0027],),"},{"line_number":272,"context_line":"                        resource_id\u003did, desired_state\u003dsg_dict))"},{"line_number":273,"context_line":"        registry.notify(resources.SECURITY_GROUP, events.AFTER_UPDATE,"},{"line_number":274,"context_line":"                        self, **kwargs)"},{"line_number":275,"context_line":"        return sg_dict"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"    def _make_security_group_dict(self, security_group, fields\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f91af0f_61b51bcd","line":274,"range":{"start_line":274,"start_character":24,"end_line":274,"end_character":29},"updated":"2018-01-04 17:34:17.000000000","message":"gratuitous change","commit_id":"424915a9e559c1e96db35d9a814327b65d98741d"}],"neutron/services/auto_allocate/db.py":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"7b4094ffe4caf9e16405909a75d718151169fd11","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        _network \u003d kwargs[\u0027network\u0027]"},{"line_number":59,"context_line":"        _orig \u003d kwargs.get(\u0027original_network\u0027)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @db_api.retry_if_session_inactive()"},{"line_number":62,"context_line":"    def _do_ensure_external_network_default_value_callback("},{"line_number":63,"context_line":"            context, request, orig, network):"},{"line_number":64,"context_line":"        is_default \u003d request.get(IS_DEFAULT)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_16b4a534","line":61,"updated":"2018-01-03 22:50:24.000000000","message":"Should we move this above L45?","commit_id":"f69b8d7fdbf95dd0ae6acfe4dff98abeb2e6dd46"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"9837d8b2a348863d69d42974f6df97570ea198d3","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        _network \u003d kwargs[\u0027network\u0027]"},{"line_number":59,"context_line":"        _orig \u003d kwargs.get(\u0027original_network\u0027)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @db_api.retry_if_session_inactive()"},{"line_number":62,"context_line":"    def _do_ensure_external_network_default_value_callback("},{"line_number":63,"context_line":"            context, request, orig, network):"},{"line_number":64,"context_line":"        is_default \u003d request.get(IS_DEFAULT)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_c15427cd","line":61,"in_reply_to":"9f91af0f_12afc3e3","updated":"2018-01-04 17:26:15.000000000","message":"You are right","commit_id":"f69b8d7fdbf95dd0ae6acfe4dff98abeb2e6dd46"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"2da0df2f9af65247929816c25960b8582bb3f567","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        _network \u003d kwargs[\u0027network\u0027]"},{"line_number":59,"context_line":"        _orig \u003d kwargs.get(\u0027original_network\u0027)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @db_api.retry_if_session_inactive()"},{"line_number":62,"context_line":"    def _do_ensure_external_network_default_value_callback("},{"line_number":63,"context_line":"            context, request, orig, network):"},{"line_number":64,"context_line":"        is_default \u003d request.get(IS_DEFAULT)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_12afc3e3","line":61,"in_reply_to":"9f91af0f_16b4a534","updated":"2018-01-04 13:34:15.000000000","message":"I don\u0027t think we easily can.\nThe retry_if_session_inactive decorator [1] must decorate a callable that has the context as an arg. Since _ensure_external_network_default_value_callback() must accommodate both payload and kwarg style callbacks (for now), I don\u0027t see how we can easily extract the context as an arg there. Hence why I moved it as a nested function.\n\n\nIf I\u0027m missing something please correct me.\n\n\n[1] https://github.com/openstack/neutron/blob/master/neutron/db/api.py#L131","commit_id":"f69b8d7fdbf95dd0ae6acfe4dff98abeb2e6dd46"}],"neutron/services/qos/qos_plugin.py":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"13347d65597751a9f847f5eba3be06fe3bdfe0ec","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            return"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        updated_port \u003d ports_object.Port.get_object("},{"line_number":111,"context_line":"            context, id\u003dpayload.desired_state[\u0027id\u0027])"},{"line_number":112,"context_line":"        policy \u003d policy_object.QosPolicy.get_object("},{"line_number":113,"context_line":"            context.elevated(), id\u003dpolicy_id)"},{"line_number":114,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"df7087c5_21b2324a","line":111,"range":{"start_line":111,"start_character":24,"end_line":111,"end_character":51},"updated":"2018-03-15 21:38:17.000000000","message":"Nit: wouldn\u0027t payload.resource_id be better?","commit_id":"537bfb9a1ca8490610bb96863b9fa7e417d65132"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"62915a819e3255d5f6b795956082786cec65b21a","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            return"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        updated_port \u003d ports_object.Port.get_object("},{"line_number":111,"context_line":"            context, id\u003dpayload.desired_state[\u0027id\u0027])"},{"line_number":112,"context_line":"        policy \u003d policy_object.QosPolicy.get_object("},{"line_number":113,"context_line":"            context.elevated(), id\u003dpolicy_id)"},{"line_number":114,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"df7087c5_a15de279","line":111,"range":{"start_line":111,"start_character":24,"end_line":111,"end_character":51},"in_reply_to":"df7087c5_21b2324a","updated":"2018-03-15 22:04:23.000000000","message":"I agree with Miguel","commit_id":"537bfb9a1ca8490610bb96863b9fa7e417d65132"}]}
