)]}'
{"networking_odl/common/exceptions.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"33247f17177ba3c99a66fc6c7ff5d230eccaceb3","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class UnsupportedResourceType(NetworkingODLException):"},{"line_number":32,"context_line":"    \"\"\"An exception for unsupported resource for full sync and recovery\"\"\""},{"line_number":33,"context_line":"    message \u003d _(\"unsupported resource type: %(resource)s\")"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"class PluginMethodNotFound(NetworkingODLException, AttributeError):"}],"source_content_type":"text/x-python","patch_set":7,"id":"7f96bb07_0a14914d","line":33,"range":{"start_line":33,"start_character":5,"end_line":33,"end_character":58},"updated":"2018-01-12 08:49:25.000000000","message":"oh, here this is fixed.","commit_id":"c67a7d06bb946cdb3026a7604015b69283579ccf"}],"networking_odl/journal/base_driver.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"4ad7eb9c6719f7870858b598d8ddb50e88c5a6d1","unresolved":false,"context_lines":[{"line_number":55,"context_line":"            ALL_RESOURCES[resource] \u003d self"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    @staticmethod"},{"line_number":58,"context_line":"    def method_name_from_suffix(suffix):"},{"line_number":59,"context_line":"        return \u0027get_%s\u0027 % suffix"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def get_resources_for_full_sync(self, context, resource_type):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_0c610837","line":58,"updated":"2018-01-03 09:49:20.000000000","message":"I thought we agreed that this wasn\u0027t needed in the previous patch?\n\nI understand that now you are repeating the same thing in two places, still I don\u0027t see the advantage of having this. You could always put \u0027get_%s\u0027 in a constant and use that instead...","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"01e4672d8d8fc04d88a1102cb496e544c2740e75","unresolved":false,"context_lines":[{"line_number":55,"context_line":"            ALL_RESOURCES[resource] \u003d self"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    @staticmethod"},{"line_number":58,"context_line":"    def method_name_from_suffix(suffix):"},{"line_number":59,"context_line":"        return \u0027get_%s\u0027 % suffix"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def get_resources_for_full_sync(self, context, resource_type):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_25ec0df2","line":58,"in_reply_to":"9f91af0f_0c610837","updated":"2018-01-04 05:47:00.000000000","message":"Done","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"4ad7eb9c6719f7870858b598d8ddb50e88c5a6d1","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    def plugin(self):"},{"line_number":79,"context_line":"        return directory.get_plugin(self.plugin_type)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    def get_resource_for_recovery(self, context, obj):"},{"line_number":82,"context_line":"        method_name \u003d self.method_name_from_suffix(obj.object_type)"},{"line_number":83,"context_line":"        try:"},{"line_number":84,"context_line":"            resource_getter \u003d getattr(self.plugin, method_name)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_2c95ece4","line":81,"updated":"2018-01-03 09:49:20.000000000","message":"way to similar to `get_resources_for_full_sync` and you could benefit a lot from code reusage...","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"01e4672d8d8fc04d88a1102cb496e544c2740e75","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    def plugin(self):"},{"line_number":79,"context_line":"        return directory.get_plugin(self.plugin_type)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    def get_resource_for_recovery(self, context, obj):"},{"line_number":82,"context_line":"        method_name \u003d self.method_name_from_suffix(obj.object_type)"},{"line_number":83,"context_line":"        try:"},{"line_number":84,"context_line":"            resource_getter \u003d getattr(self.plugin, method_name)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_05f1c9cd","line":81,"in_reply_to":"9f91af0f_2c95ece4","updated":"2018-01-04 05:47:00.000000000","message":"Done","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"}],"networking_odl/journal/recovery.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"4ad7eb9c6719f7870858b598d8ddb50e88c5a6d1","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        driver \u003d base_driver.get_driver(row.object_type)"},{"line_number":65,"context_line":"    except exceptions.ResourceNotRegistered:"},{"line_number":66,"context_line":"        raise UnsupportedResourceType("},{"line_number":67,"context_line":"            _(\"unsupported resource type: {}\").format(row.object_type))"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    return driver.get_resource_for_recovery(context, row)"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_4c515036","line":67,"range":{"start_line":67,"start_character":13,"end_line":67,"end_character":46},"updated":"2018-01-03 09:49:20.000000000","message":"shouldn\u0027t be this part of the message of the exception and then instantiate that exception with the parameter that would be parametrized in that message?","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"01e4672d8d8fc04d88a1102cb496e544c2740e75","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        driver \u003d base_driver.get_driver(row.object_type)"},{"line_number":65,"context_line":"    except exceptions.ResourceNotRegistered:"},{"line_number":66,"context_line":"        raise UnsupportedResourceType("},{"line_number":67,"context_line":"            _(\"unsupported resource type: {}\").format(row.object_type))"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    return driver.get_resource_for_recovery(context, row)"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_259acd6d","line":67,"range":{"start_line":67,"start_character":13,"end_line":67,"end_character":46},"in_reply_to":"9f91af0f_4c515036","updated":"2018-01-04 05:47:00.000000000","message":"Done","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"4ad7eb9c6719f7870858b598d8ddb50e88c5a6d1","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    return driver.get_resource_for_recovery(context, row)"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"def _get_latest_resource(context, row):"},{"line_number":73,"context_line":"    object_type \u003d row.object_type"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    for plugin_alias, resources in full_sync.ALL_RESOURCES.items():"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_ac249cc7","line":72,"updated":"2018-01-03 09:49:20.000000000","message":"this will be deleted after you finished migrating all to the new recovery? If yes, perhaps a TODO would be nice","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"01e4672d8d8fc04d88a1102cb496e544c2740e75","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    return driver.get_resource_for_recovery(context, row)"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"def _get_latest_resource(context, row):"},{"line_number":73,"context_line":"    object_type \u003d row.object_type"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    for plugin_alias, resources in full_sync.ALL_RESOURCES.items():"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_0578e927","line":72,"in_reply_to":"9f91af0f_ac249cc7","updated":"2018-01-04 05:47:00.000000000","message":"Done","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"4ad7eb9c6719f7870858b598d8ddb50e88c5a6d1","unresolved":false,"context_lines":[{"line_number":78,"context_line":"            break"},{"line_number":79,"context_line":"    else:"},{"line_number":80,"context_line":"        raise UnsupportedResourceType("},{"line_number":81,"context_line":"            _(\"unsupported resource type: {}\").format(object_type))"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_{}\u0027.format(object_type))"},{"line_number":84,"context_line":"    return obj_getter(context, row.object_uuid)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_ac5fbc3f","line":81,"range":{"start_line":81,"start_character":12,"end_line":81,"end_character":67},"updated":"2018-01-03 09:49:20.000000000","message":"same as L67","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"01e4672d8d8fc04d88a1102cb496e544c2740e75","unresolved":false,"context_lines":[{"line_number":78,"context_line":"            break"},{"line_number":79,"context_line":"    else:"},{"line_number":80,"context_line":"        raise UnsupportedResourceType("},{"line_number":81,"context_line":"            _(\"unsupported resource type: {}\").format(object_type))"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_{}\u0027.format(object_type))"},{"line_number":84,"context_line":"    return obj_getter(context, row.object_uuid)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_e58dc531","line":81,"range":{"start_line":81,"start_character":12,"end_line":81,"end_character":67},"in_reply_to":"9f91af0f_ac5fbc3f","updated":"2018-01-04 05:47:00.000000000","message":"Will do in separate patch. As this is using existing Exception defined in this module. Using of new exception will be done, in separate patch.","commit_id":"fbea1058f6a270183f252809c9e3483ba17b688c"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"33247f17177ba3c99a66fc6c7ff5d230eccaceb3","unresolved":false,"context_lines":[{"line_number":34,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class UnsupportedResourceType(Exception):"},{"line_number":38,"context_line":"    pass"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"@db_api.retry_if_session_inactive()"}],"source_content_type":"text/x-python","patch_set":7,"id":"7f96bb07_a547ce4b","line":38,"range":{"start_line":37,"start_character":0,"end_line":38,"end_character":8},"updated":"2018-01-12 08:49:25.000000000","message":"There are two UnsuportedResourceType. here and in common/exceptions.\nIs this intentional? anyway it\u0027s very confusing to have exceptions with samename.\nSo please use only one exception definition or rename this exception and move it into common/exceoptions.py","commit_id":"c67a7d06bb946cdb3026a7604015b69283579ccf"}],"networking_odl/tests/unit/journal/test_base_driver.py":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"0d8bd4d7c2af685526372f4b3c741ec9a594b664","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                          self.db_context, helper.INVALID_RESOURCE)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def test_get_resource(self):"},{"line_number":71,"context_line":"        row \u003d db.create_pending_row(self.db_session, helper.TEST_RESOURCE1,"},{"line_number":72,"context_line":"                                    helper.TEST_UUID, constants.ODL_CREATE,"},{"line_number":73,"context_line":"                                    {\u0027id\u0027: helper.TEST_UUID})"},{"line_number":74,"context_line":"        resource \u003d self.test_driver.get_resource_for_recovery(self.db_context,"},{"line_number":75,"context_line":"                                                              row)"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"7f96bb07_bacc9a61","line":73,"range":{"start_line":71,"start_character":8,"end_line":73,"end_character":61},"updated":"2018-01-15 14:52:19.000000000","message":"You should use a mock for row, it\u0027s not really necessary to insert a DB entry.","commit_id":"c67a7d06bb946cdb3026a7604015b69283579ccf"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"40e10eec507c694e5649fc2f2857f8d3db1766f1","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                          self.db_context, helper.INVALID_RESOURCE)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def test_get_resource(self):"},{"line_number":71,"context_line":"        row \u003d db.create_pending_row(self.db_session, helper.TEST_RESOURCE1,"},{"line_number":72,"context_line":"                                    helper.TEST_UUID, constants.ODL_CREATE,"},{"line_number":73,"context_line":"                                    {\u0027id\u0027: helper.TEST_UUID})"},{"line_number":74,"context_line":"        resource \u003d self.test_driver.get_resource_for_recovery(self.db_context,"},{"line_number":75,"context_line":"                                                              row)"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"7f96bb07_ac0c12a5","line":73,"range":{"start_line":71,"start_character":8,"end_line":73,"end_character":61},"in_reply_to":"7f96bb07_bacc9a61","updated":"2018-01-17 15:51:24.000000000","message":"I thought so too. But i did not do it because i wanted to be a real db entry and feed it to method. Mock creates attributes on access and may hide some of the issues.\n\nCould you please provide me information, what is the issue with creating entry?","commit_id":"c67a7d06bb946cdb3026a7604015b69283579ccf"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"0d8bd4d7c2af685526372f4b3c741ec9a594b664","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        self.assertEqual(resource[\u0027id\u0027], helper.TEST_UUID)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def test_get_unsupported_resource(self):"},{"line_number":80,"context_line":"        row \u003d db.create_pending_row(self.db_session, helper.INVALID_RESOURCE,"},{"line_number":81,"context_line":"                                    helper.TEST_UUID, constants.ODL_CREATE,"},{"line_number":82,"context_line":"                                    {\u0027id\u0027: helper.TEST_UUID})"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        self.assertRaises(exceptions.PluginMethodNotFound,"},{"line_number":85,"context_line":"                          self.test_driver.get_resource_for_recovery,"}],"source_content_type":"text/x-python","patch_set":7,"id":"7f96bb07_1a07ce84","line":82,"range":{"start_line":80,"start_character":7,"end_line":82,"end_character":61},"updated":"2018-01-15 14:52:19.000000000","message":"You should use a mock for row, it\u0027s not really necessary to insert a DB entry.","commit_id":"c67a7d06bb946cdb3026a7604015b69283579ccf"}],"networking_odl/tests/unit/journal/test_recovery.py":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"0d8bd4d7c2af685526372f4b3c741ec9a594b664","unresolved":false,"context_lines":[{"line_number":212,"context_line":"        self._test_recovery(odl_const.ODL_UPDATE, None, None)"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"    def _test_get_latest_resource(self, resource_type):"},{"line_number":215,"context_line":"        helper.TestDriver()"},{"line_number":216,"context_line":"        directory.add_plugin(helper.TEST_PLUGIN, helper.TestPlugin())"},{"line_number":217,"context_line":"        self.addCleanup(self.cleanup)"},{"line_number":218,"context_line":"        return db.create_pending_row(self.db_context.session, resource_type,"}],"source_content_type":"text/x-python","patch_set":7,"id":"7f96bb07_3a664a53","line":215,"range":{"start_line":215,"start_character":8,"end_line":215,"end_character":27},"updated":"2018-01-15 14:52:19.000000000","message":"This isn\u0027t straightforward, I\u0027d add a comment why you need this line.","commit_id":"c67a7d06bb946cdb3026a7604015b69283579ccf"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"0d8bd4d7c2af685526372f4b3c741ec9a594b664","unresolved":false,"context_lines":[{"line_number":215,"context_line":"        helper.TestDriver()"},{"line_number":216,"context_line":"        directory.add_plugin(helper.TEST_PLUGIN, helper.TestPlugin())"},{"line_number":217,"context_line":"        self.addCleanup(self.cleanup)"},{"line_number":218,"context_line":"        return db.create_pending_row(self.db_context.session, resource_type,"},{"line_number":219,"context_line":"                                     \u0027id\u0027, odl_const.ODL_DELETE, {})"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    @staticmethod"},{"line_number":222,"context_line":"    def cleanup():"}],"source_content_type":"text/x-python","patch_set":7,"id":"7f96bb07_35909b43","line":219,"range":{"start_line":218,"start_character":8,"end_line":219,"end_character":68},"updated":"2018-01-15 14:52:19.000000000","message":"You don\u0027t need a real DB entry here, a mock is enough","commit_id":"c67a7d06bb946cdb3026a7604015b69283579ccf"}]}
