)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"a413837a69ef26a5f0db042223b61bd40bee83f3","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When full sync, the order of sync of resource needs to be"},{"line_number":10,"context_line":"sg, sgrule etc. But dict.items() doesn\u0027t guarrantee any order."},{"line_number":11,"context_line":"So use collections.OrderedDict for the order."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I63b94cb2aa86fbec1237cc99a780c19106201ddf"},{"line_number":14,"context_line":"Closes-bug: #1674726"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"ffe62b97_333c4d92","line":11,"range":{"start_line":11,"start_character":7,"end_line":11,"end_character":29},"updated":"2017-03-24 21:40:25.000000000","message":"is it still being used ?? i couldn\u0027t locate it in latest revision","commit_id":"8242e8d262254435166678485fb6b50e59170d97"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"55e06af774406641de2b7292dd1e6d4e82210dcf","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When full sync, the order of sync of resource needs to be"},{"line_number":10,"context_line":"sg, sgrule etc. But dict.items() doesn\u0027t guarrantee any order."},{"line_number":11,"context_line":"So use collections.OrderedDict for the order."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I63b94cb2aa86fbec1237cc99a780c19106201ddf"},{"line_number":14,"context_line":"Closes-bug: #1674726"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"dfeb2761_edabd072","line":11,"range":{"start_line":11,"start_character":7,"end_line":11,"end_character":29},"in_reply_to":"ffe62b97_333c4d92","updated":"2017-03-30 22:37:56.000000000","message":"Done","commit_id":"8242e8d262254435166678485fb6b50e59170d97"}],"networking_odl/common/constants.py":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"286fd75b1a0eec4727c7cd57e0d2342aa9772286","unresolved":false,"context_lines":[{"line_number":65,"context_line":"ODL_UPDATE \u003d \u0027update\u0027"},{"line_number":66,"context_line":"ODL_DELETE \u003d \u0027delete\u0027"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"L2_RESOURCES \u003d collections.OrderedDict(["},{"line_number":69,"context_line":"    (ODL_SG, ODL_SGS),"},{"line_number":70,"context_line":"    (ODL_SG_RULE, ODL_SG_RULES),"},{"line_number":71,"context_line":"    (ODL_NETWORK, ODL_NETWORKS),"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a1ced50_c8170a43","line":68,"range":{"start_line":68,"start_character":0,"end_line":68,"end_character":12},"updated":"2017-03-23 06:02:06.000000000","message":"I was thinking, perhaps it would be more logically correct to define two lists of resources (L2 \u0026 L3) to sync on the full_sync module itself.\n\nIf this dict changes then it will affect full sync as well and I\u0027m not sure we want it..","commit_id":"6b4c010161aa1c656459f8b33b98afb4a6e06cae"}],"networking_odl/journal/full_sync.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"a413837a69ef26a5f0db042223b61bd40bee83f3","unresolved":false,"context_lines":[{"line_number":34,"context_line":"_OPS_TO_DELETE_ON_SYNC \u003d (odl_const.ODL_CREATE, odl_const.ODL_UPDATE)"},{"line_number":35,"context_line":"_CLIENT \u003d client.OpenDaylightRestClientGlobal()"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"# TODO(yamahata): to add more resources."},{"line_number":38,"context_line":"#                 e.g. bgpvpn, fwaas, l2gw, lbaas, qos, sfc"},{"line_number":39,"context_line":"#                 and as more services are added"},{"line_number":40,"context_line":"_ORDERED_ODL_RESOURCES \u003d ("},{"line_number":41,"context_line":"    odl_const.ODL_SG,"},{"line_number":42,"context_line":"    odl_const.ODL_SG_RULE,"}],"source_content_type":"text/x-python","patch_set":4,"id":"ffe62b97_936319dd","line":39,"range":{"start_line":37,"start_character":18,"end_line":39,"end_character":48},"updated":"2017-03-24 21:40:25.000000000","message":"would the order be enforced on independent resources which have no relationship with other resource ?\n\nfor example qos can be created without any of these\n\nqos and network creation can happen in parallel, and relationship can be added later.","commit_id":"8242e8d262254435166678485fb6b50e59170d97"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"50aaeb0096a6415655123d85b7872db201d1274b","unresolved":false,"context_lines":[{"line_number":34,"context_line":"_OPS_TO_DELETE_ON_SYNC \u003d (odl_const.ODL_CREATE, odl_const.ODL_UPDATE)"},{"line_number":35,"context_line":"_CLIENT \u003d client.OpenDaylightRestClientGlobal()"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"# TODO(yamahata): to add more resources."},{"line_number":38,"context_line":"#                 e.g. bgpvpn, fwaas, l2gw, lbaas, qos, sfc"},{"line_number":39,"context_line":"#                 and as more services are added"},{"line_number":40,"context_line":"_ORDERED_ODL_RESOURCES \u003d ("},{"line_number":41,"context_line":"    odl_const.ODL_SG,"},{"line_number":42,"context_line":"    odl_const.ODL_SG_RULE,"}],"source_content_type":"text/x-python","patch_set":4,"id":"ffe62b97_1a1caa10","line":39,"range":{"start_line":37,"start_character":18,"end_line":39,"end_character":48},"in_reply_to":"ffe62b97_936319dd","updated":"2017-03-26 09:29:23.000000000","message":"This is just the order in which the full sync created the entries in journal, any dependencies those entries have will then be enforced by the dependency checks so if QoS is independent of anything it will get processed independently depending on when it was enterd into the journal queue.","commit_id":"8242e8d262254435166678485fb6b50e59170d97"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"77f56a801075d6154e1d86a68a0cc128442ce0e8","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    dbcontext \u003d neutron_context.get_admin_context()"},{"line_number":57,"context_line":"    for resource_type in _ORDERED_ODL_RESOURCES:"},{"line_number":58,"context_line":"        for plugin_alias, resource in odl_const.ALL_RESOURCES.items():"},{"line_number":59,"context_line":"            collection_name \u003d resource.get(resource_type)"},{"line_number":60,"context_line":"            if collection_name is not None:"},{"line_number":61,"context_line":"                plugin \u003d directory.get_plugin(plugin_alias)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7ffa3b31_c85d39ea","line":58,"updated":"2017-04-19 06:00:13.000000000","message":"Do you think by defining plugin_alias in _ORDERED_ODL_RESOURCES will be a good idea and remove ALL_RESOURCES, we won\u0027t require nested for loops. However nested loops are not expensive here because items to iterate are very small.","commit_id":"f70ffad28114be69c3c2e136d279a8548bed63c7"}],"networking_odl/tests/unit/journal/test_full_sync.py":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"50aaeb0096a6415655123d85b7872db201d1274b","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    @mock.patch.object(journal, \u0027record\u0027)"},{"line_number":88,"context_line":"    def test_sync_resource_order(self, full_sync_mock, db_mock, journl_mock):"},{"line_number":89,"context_line":"        full_sync_mock._full_sync_needed.return_value \u003d True"},{"line_number":90,"context_line":"        with mock.patch.object(full_sync,"},{"line_number":91,"context_line":"                               \u0027_sync_resources\u0027) as _sync_resources:"},{"line_number":92,"context_line":"            session \u003d mock.MagicMock()"},{"line_number":93,"context_line":"            full_sync.full_sync(session)"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"ffe62b97_3ae2ce02","line":91,"range":{"start_line":90,"start_character":8,"end_line":91,"end_character":69},"updated":"2017-03-26 09:29:23.000000000","message":"Can\u0027t this be done with decorator as well?\n\nI find it a bit odd that we have both decorator mocks and this style which is essentially the same.","commit_id":"8242e8d262254435166678485fb6b50e59170d97"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"55e06af774406641de2b7292dd1e6d4e82210dcf","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    @mock.patch.object(journal, \u0027record\u0027)"},{"line_number":88,"context_line":"    def test_sync_resource_order(self, full_sync_mock, db_mock, journl_mock):"},{"line_number":89,"context_line":"        full_sync_mock._full_sync_needed.return_value \u003d True"},{"line_number":90,"context_line":"        with mock.patch.object(full_sync,"},{"line_number":91,"context_line":"                               \u0027_sync_resources\u0027) as _sync_resources:"},{"line_number":92,"context_line":"            session \u003d mock.MagicMock()"},{"line_number":93,"context_line":"            full_sync.full_sync(session)"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"dfeb2761_ad1388b8","line":91,"range":{"start_line":90,"start_character":8,"end_line":91,"end_character":69},"in_reply_to":"ffe62b97_3ae2ce02","updated":"2017-03-30 22:37:56.000000000","message":"Done","commit_id":"8242e8d262254435166678485fb6b50e59170d97"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"50aaeb0096a6415655123d85b7872db201d1274b","unresolved":false,"context_lines":[{"line_number":96,"context_line":"                return mock.call(session, mock.ANY, mock.ANY,"},{"line_number":97,"context_line":"                                 object_type, collection_name)"},{"line_number":98,"context_line":"            _sync_resources.assert_has_calls(["},{"line_number":99,"context_line":"                _call(odl_const.ODL_SG, odl_const.ODL_SGS),"},{"line_number":100,"context_line":"                _call(odl_const.ODL_SG_RULE, odl_const.ODL_SG_RULES),"},{"line_number":101,"context_line":"                _call(odl_const.ODL_NETWORK, odl_const.ODL_NETWORKS),"},{"line_number":102,"context_line":"                _call(odl_const.ODL_SUBNET, odl_const.ODL_SUBNETS),"}],"source_content_type":"text/x-python","patch_set":4,"id":"ffe62b97_fac46661","line":99,"range":{"start_line":99,"start_character":22,"end_line":99,"end_character":38},"updated":"2017-03-26 09:29:23.000000000","message":"I\u0027d simply construct a list from the list you have there, i.e.\n\n_sync_resources.assert_has_calls(\n    [_call(resource) for resource in full_sync._ORDERED_ODL_RESOURCES])","commit_id":"8242e8d262254435166678485fb6b50e59170d97"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"55e06af774406641de2b7292dd1e6d4e82210dcf","unresolved":false,"context_lines":[{"line_number":96,"context_line":"                return mock.call(session, mock.ANY, mock.ANY,"},{"line_number":97,"context_line":"                                 object_type, collection_name)"},{"line_number":98,"context_line":"            _sync_resources.assert_has_calls(["},{"line_number":99,"context_line":"                _call(odl_const.ODL_SG, odl_const.ODL_SGS),"},{"line_number":100,"context_line":"                _call(odl_const.ODL_SG_RULE, odl_const.ODL_SG_RULES),"},{"line_number":101,"context_line":"                _call(odl_const.ODL_NETWORK, odl_const.ODL_NETWORKS),"},{"line_number":102,"context_line":"                _call(odl_const.ODL_SUBNET, odl_const.ODL_SUBNETS),"}],"source_content_type":"text/x-python","patch_set":4,"id":"dfeb2761_adef0886","line":99,"range":{"start_line":99,"start_character":22,"end_line":99,"end_character":38},"in_reply_to":"ffe62b97_fac46661","updated":"2017-03-30 22:37:56.000000000","message":"Done","commit_id":"8242e8d262254435166678485fb6b50e59170d97"}]}
