)]}'
{"networking_odl/qos/qos_driver_v2.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9ce3afed1c49b9f9275b69ec3e7cdf0fddcaeeae","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        \"\"\"Returns string description of driver\"\"\""},{"line_number":43,"context_line":"        return \"QoS ODL driver\""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def _record_journal(self, context, op_const, qos_policy):"},{"line_number":46,"context_line":"        data \u003d qos_utils.convert_rules_format(qos_policy.to_dict())"},{"line_number":47,"context_line":"        journal.record(context, odl_const.ODL_QOS_POLICY,"},{"line_number":48,"context_line":"                       data[\u0027id\u0027], op_const, data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dfeb2761_f91a7215","line":45,"range":{"start_line":45,"start_character":8,"end_line":45,"end_character":23},"updated":"2017-03-31 00:26:36.000000000","message":"@staticmethod\n_record_in_journal for consistency with other drivers.","commit_id":"e4041c3abf6b63bbe29eca57ee21aee19b99d667"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"c30e0048487f19be85523098c6984831aedb62e0","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        \"\"\"Returns string description of driver\"\"\""},{"line_number":43,"context_line":"        return \"QoS ODL driver\""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def _record_journal(self, context, op_const, qos_policy):"},{"line_number":46,"context_line":"        data \u003d qos_utils.convert_rules_format(qos_policy.to_dict())"},{"line_number":47,"context_line":"        journal.record(context, odl_const.ODL_QOS_POLICY,"},{"line_number":48,"context_line":"                       data[\u0027id\u0027], op_const, data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dfeb2761_3cc54c3d","line":45,"range":{"start_line":45,"start_character":8,"end_line":45,"end_character":23},"in_reply_to":"dfeb2761_f91a7215","updated":"2017-03-31 17:23:23.000000000","message":"Hi Isaku,\n\nI can rename it for consistency but i can not make it staticmethod, because i need to call self.jorunal.set_sync_event(). Other drivers for example sfc, trunk and ml2 have pre commit and port commit hooks. They are calling sync thread in post hook and recording to table in prehook. But pre and post hooks are not supported in qos.","commit_id":"e4041c3abf6b63bbe29eca57ee21aee19b99d667"},{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"dd5b08e7b047af60c16a5e049eb207e5ffbcd132","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def create_policy(self, context, qos_policy):"},{"line_number":60,"context_line":"        self._record_journal(context, odl_const.ODL_CREATE, qos_policy)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @log_helpers.log_method_call"},{"line_number":63,"context_line":"    def update_policy(self, context, qos_policy):"},{"line_number":64,"context_line":"        self._record_journal(context, odl_const.ODL_UPDATE, qos_policy)"},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ffe62b97_58909e4a","line":62,"range":{"start_line":62,"start_character":4,"end_line":62,"end_character":32},"updated":"2017-03-28 14:54:27.000000000","message":"Seems good enough but wont the _Record_journal also have logs to log ?\nIf you are moving create, update and delete into a single function, why cant the function also have the decorator?","commit_id":"e4041c3abf6b63bbe29eca57ee21aee19b99d667"},{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"22f8a59823700405f2eb95396b6397eab29fcd4e","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def create_policy(self, context, qos_policy):"},{"line_number":60,"context_line":"        self._record_journal(context, odl_const.ODL_CREATE, qos_policy)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @log_helpers.log_method_call"},{"line_number":63,"context_line":"    def update_policy(self, context, qos_policy):"},{"line_number":64,"context_line":"        self._record_journal(context, odl_const.ODL_UPDATE, qos_policy)"},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_1857a728","line":62,"range":{"start_line":62,"start_character":4,"end_line":62,"end_character":32},"in_reply_to":"dfeb2761_d99a0e6d","updated":"2017-04-11 08:11:32.000000000","message":"Ok, I will take it up on top of this patch, if its fine with Rajiv san","commit_id":"e4041c3abf6b63bbe29eca57ee21aee19b99d667"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9ce3afed1c49b9f9275b69ec3e7cdf0fddcaeeae","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def create_policy(self, context, qos_policy):"},{"line_number":60,"context_line":"        self._record_journal(context, odl_const.ODL_CREATE, qos_policy)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @log_helpers.log_method_call"},{"line_number":63,"context_line":"    def update_policy(self, context, qos_policy):"},{"line_number":64,"context_line":"        self._record_journal(context, odl_const.ODL_UPDATE, qos_policy)"},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"dfeb2761_d99a0e6d","line":62,"range":{"start_line":62,"start_character":4,"end_line":62,"end_character":32},"in_reply_to":"ffe62b97_0ea1ac46","updated":"2017-03-31 00:26:36.000000000","message":"Reedip, if you think that\u0027s the direction, can you please drive it as another patch on top of this patch?","commit_id":"e4041c3abf6b63bbe29eca57ee21aee19b99d667"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"709f5308ab52b555a3ac398b88d4644cb56a1f1b","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def create_policy(self, context, qos_policy):"},{"line_number":60,"context_line":"        self._record_journal(context, odl_const.ODL_CREATE, qos_policy)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @log_helpers.log_method_call"},{"line_number":63,"context_line":"    def update_policy(self, context, qos_policy):"},{"line_number":64,"context_line":"        self._record_journal(context, odl_const.ODL_UPDATE, qos_policy)"},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ffe62b97_0ea1ac46","line":62,"range":{"start_line":62,"start_character":4,"end_line":62,"end_character":32},"in_reply_to":"ffe62b97_58909e4a","updated":"2017-03-28 15:48:48.000000000","message":"I think, it can have decorator but logging will be for _record_journal, it is too generic, user will have to check it\u0027s arguments to identify what was actually called https://github.com/openstack/oslo.log/blob/master/oslo_log/helpers.py#L46. Current implementation will give more information.\n\nI would rather like to be consistent with other drivers as well.","commit_id":"e4041c3abf6b63bbe29eca57ee21aee19b99d667"}]}
