)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"69f00d8deedcce7bfa9cf72ad080b78955d07297","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This happens when the rule and the group are deleted independently but"},{"line_number":15,"context_line":"in rapid succession. It does not happen when the rules are deleted as a"},{"line_number":16,"context_line":"consequence of deleting the group since the parentid is correctly set"},{"line_number":17,"context_line":"in that case, neither when the group is deleted some time after the"},{"line_number":18,"context_line":"rules when their records might have already been processed and removed."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This problem was encountered in OPNFV functest environment but may also"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f96bb07_2edef7d9","line":17,"range":{"start_line":16,"start_character":40,"end_line":17,"end_character":13},"updated":"2018-01-24 08:59:50.000000000","message":"when sgrule is deleted explicitly, security_gruop_id is always set.\nPlease see https://git.openstack.org/cgit/openstack/neutron/tree/neutron/db/securitygroups_db.py#n703\n\nand dependency is calculated by _generate_sg_rule_deps","commit_id":"e626bb6d831f6c415d4a7aa1423e9c9048b8f739"},{"author":{"_account_id":27532,"name":"Jaime Caamaño Ruiz","email":"jcaamano@suse.com","username":"jaicaa"},"change_message_id":"63d74457115637dbc708db6a08b2fa5ebfc6ffad","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This happens when the rule and the group are deleted independently but"},{"line_number":15,"context_line":"in rapid succession. It does not happen when the rules are deleted as a"},{"line_number":16,"context_line":"consequence of deleting the group since the parentid is correctly set"},{"line_number":17,"context_line":"in that case, neither when the group is deleted some time after the"},{"line_number":18,"context_line":"rules when their records might have already been processed and removed."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"This problem was encountered in OPNFV functest environment but may also"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f96bb07_d7bcc6dd","line":17,"range":{"start_line":16,"start_character":40,"end_line":17,"end_character":13},"in_reply_to":"7f96bb07_2edef7d9","updated":"2018-01-24 10:22:36.000000000","message":"It is always set into the context of the callback, but it is then not written in the journal. And because of this, _generate_sg_rule_deps does not find the dependencies for the security group later on.\n\nIn more detail, you can check _sg_callback, where resource_dict is set to the affected entity, if available (security_group_rule in our case). Then on sync_from_callback_precommit, resource_dict is used to set the data of the journal entry, which ends up being None since on deletes the affected entity is not provided. security_group_id is still available in the context and in this patch we pick it from there and set it in the journal (as it is done with any other deleted entity which has a child relationship).","commit_id":"e626bb6d831f6c415d4a7aa1423e9c9048b8f739"}],"networking_odl/ml2/mech_driver_v2.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"f26c155b1976e54aeb080ff7d5e7bed298bfd84e","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        object_uuid \u003d (resource_dict.get(\u0027id\u0027)"},{"line_number":172,"context_line":"                       if operation \u003d\u003d \u0027create\u0027 else res_id)"},{"line_number":173,"context_line":"        data \u003d resource_dict"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"        if (operation \u003d\u003d odl_const.ODL_DELETE):"},{"line_number":176,"context_line":"            # NOTE(yamahata): DB auto deletion"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_c655781f","line":173,"range":{"start_line":173,"start_character":8,"end_line":173,"end_character":28},"updated":"2018-01-24 17:34:48.000000000","message":"let\u0027s not introduce new variable.","commit_id":"6c6649a8c550516266e2466866823c3b0ced2342"},{"author":{"_account_id":27532,"name":"Jaime Caamaño Ruiz","email":"jcaamano@suse.com","username":"jaicaa"},"change_message_id":"d4f40f0ff9ea3ca978751c4b57f6e32d79c1c067","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        object_uuid \u003d (resource_dict.get(\u0027id\u0027)"},{"line_number":172,"context_line":"                       if operation \u003d\u003d \u0027create\u0027 else res_id)"},{"line_number":173,"context_line":"        data \u003d resource_dict"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"        if (operation \u003d\u003d odl_const.ODL_DELETE):"},{"line_number":176,"context_line":"            # NOTE(yamahata): DB auto deletion"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_edd71a23","line":173,"range":{"start_line":173,"start_character":8,"end_line":173,"end_character":28},"in_reply_to":"5f93b717_c655781f","updated":"2018-01-25 09:26:09.000000000","message":"I introduced a new variable as an alias because it would be missleading to use resource_dict when calling journal.record, because at that time it may not hold a resource neither a dictionary. data seem fitting as is that is the argument name for the record method.","commit_id":"6c6649a8c550516266e2466866823c3b0ced2342"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"f26c155b1976e54aeb080ff7d5e7bed298bfd84e","unresolved":false,"context_lines":[{"line_number":183,"context_line":"                                   rule_id, odl_const.ODL_DELETE,"},{"line_number":184,"context_line":"                                   [object_uuid])"},{"line_number":185,"context_line":"            elif (object_type \u003d\u003d odl_const.ODL_SG_RULE):"},{"line_number":186,"context_line":"                data \u003d [kwargs[\u0027security_group_id\u0027]]"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        assert object_uuid is not None"},{"line_number":189,"context_line":"        journal.record(context, object_type, object_uuid,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_863530fa","line":186,"range":{"start_line":186,"start_character":16,"end_line":186,"end_character":52},"updated":"2018-01-24 17:34:48.000000000","message":"Please add comments on why this is needed.\n\nalso \nassert resource_dict is None\nresource_dict \u003d kwargs...","commit_id":"6c6649a8c550516266e2466866823c3b0ced2342"},{"author":{"_account_id":27532,"name":"Jaime Caamaño Ruiz","email":"jcaamano@suse.com","username":"jaicaa"},"change_message_id":"d4f40f0ff9ea3ca978751c4b57f6e32d79c1c067","unresolved":false,"context_lines":[{"line_number":183,"context_line":"                                   rule_id, odl_const.ODL_DELETE,"},{"line_number":184,"context_line":"                                   [object_uuid])"},{"line_number":185,"context_line":"            elif (object_type \u003d\u003d odl_const.ODL_SG_RULE):"},{"line_number":186,"context_line":"                data \u003d [kwargs[\u0027security_group_id\u0027]]"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        assert object_uuid is not None"},{"line_number":189,"context_line":"        journal.record(context, object_type, object_uuid,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_ade11201","line":186,"range":{"start_line":186,"start_character":16,"end_line":186,"end_character":52},"in_reply_to":"5f93b717_863530fa","updated":"2018-01-25 09:26:09.000000000","message":"Will do.","commit_id":"6c6649a8c550516266e2466866823c3b0ced2342"},{"author":{"_account_id":27532,"name":"Jaime Caamaño Ruiz","email":"jcaamano@suse.com","username":"jaicaa"},"change_message_id":"289609de4d217104ae5a3881e8bb1f4fef801a09","unresolved":false,"context_lines":[{"line_number":183,"context_line":"                                   rule_id, odl_const.ODL_DELETE,"},{"line_number":184,"context_line":"                                   [object_uuid])"},{"line_number":185,"context_line":"            elif (object_type \u003d\u003d odl_const.ODL_SG_RULE):"},{"line_number":186,"context_line":"                data \u003d [kwargs[\u0027security_group_id\u0027]]"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        assert object_uuid is not None"},{"line_number":189,"context_line":"        journal.record(context, object_type, object_uuid,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_d56c200a","line":186,"range":{"start_line":186,"start_character":16,"end_line":186,"end_character":52},"in_reply_to":"5f93b717_ade11201","updated":"2018-01-25 14:39:47.000000000","message":"Done.\nI was not convinced on the assert. Does it really matter we are provided with the full rule resource if we know that what we want is the group id as context in the journal?\nNot a strong opinion on this, I guess I don\u0027t understand the need?","commit_id":"6c6649a8c550516266e2466866823c3b0ced2342"}]}
