)]}'
{"neutron/plugins/ml2/drivers/type_tunnel.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a9b7a1ad73cbe9f1a8b808e96f24a04287347078","unresolved":false,"context_lines":[{"line_number":146,"context_line":"            # flush at the end of transaction"},{"line_number":147,"context_line":"            for chunk in chunks(to_remove, self.BULK_SIZE):"},{"line_number":148,"context_line":"                session.query(self.model).filter("},{"line_number":149,"context_line":"                    tunnel_col.in_(chunk)).delete(synchronize_session\u003dFalse)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"            # collect vnis that need to be added"},{"line_number":152,"context_line":"            existings \u003d {tunnel_id_getter(a) for a in allocs}"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_f9c5c98d","line":149,"updated":"2015-06-16 17:37:36.000000000","message":"I had to think a little bit about this point, leaving a comment for other reviewers...we don\u0027t need to sync the session here because after that we use alloc only at line 150 to calculate the tunnel_ids that are already in the DB. The tunnel ids deleted here (that are out of tunnel ranges, not in tunnel_ids) don\u0027t matter for that calculation since at line 152 we just subtract the existings from tunnel_ids.","commit_id":"91f37d778052d9d4cc882a28364e1b5804d25c3d"}],"neutron/tests/unit/plugins/ml2/drivers/base_type_tunnel.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f1f590983ff3ecf67ea27fb2524bf7d36c05d233","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        self.assertIsNone("},{"line_number":94,"context_line":"            self.driver.get_allocation(self.session, (TUN_MAX + 5 + 1)))"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def _test_sync_allocations_and_allocateds(self, tunnel_id):"},{"line_number":97,"context_line":"        segment \u003d {api.NETWORK_TYPE: self.TYPE,"},{"line_number":98,"context_line":"                   api.PHYSICAL_NETWORK: None,"},{"line_number":99,"context_line":"                   api.SEGMENTATION_ID: tunnel_id}"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_7c172445","line":96,"updated":"2015-06-24 13:55:18.000000000","message":"typo: I think you have an extra \u0027s\u0027 at the end","commit_id":"b0af442e7445975b5ef08994dead4a3a67862df3"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"ca71867b57f2084c4e3f098c56ecd7b57062405c","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        self.assertIsNone("},{"line_number":94,"context_line":"            self.driver.get_allocation(self.session, (TUN_MAX + 5 + 1)))"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def _test_sync_allocations_and_allocateds(self, tunnel_id):"},{"line_number":97,"context_line":"        segment \u003d {api.NETWORK_TYPE: self.TYPE,"},{"line_number":98,"context_line":"                   api.PHYSICAL_NETWORK: None,"},{"line_number":99,"context_line":"                   api.SEGMENTATION_ID: tunnel_id}"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_5a31d9a0","line":96,"in_reply_to":"fa32b979_7c172445","updated":"2015-06-25 09:13:09.000000000","message":"Done","commit_id":"b0af442e7445975b5ef08994dead4a3a67862df3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f1f590983ff3ecf67ea27fb2524bf7d36c05d233","unresolved":false,"context_lines":[{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def test_sync_allocations_no_op(self):"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        def fakechunks(iterable, chunk_size):"},{"line_number":117,"context_line":"            # no segment removed/added"},{"line_number":118,"context_line":"            self.assertEqual(0, len(list(iterable)))"},{"line_number":119,"context_line":"            return []"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_1c9cd8be","line":116,"updated":"2015-06-24 13:55:18.000000000","message":"maybe it would be better renaming it to something like ...\u0027verify_no_chunk\u0027 you could remove the comment at line 117 then","commit_id":"b0af442e7445975b5ef08994dead4a3a67862df3"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"ca71867b57f2084c4e3f098c56ecd7b57062405c","unresolved":false,"context_lines":[{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def test_sync_allocations_no_op(self):"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        def fakechunks(iterable, chunk_size):"},{"line_number":117,"context_line":"            # no segment removed/added"},{"line_number":118,"context_line":"            self.assertEqual(0, len(list(iterable)))"},{"line_number":119,"context_line":"            return []"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_da1de90f","line":116,"in_reply_to":"fa32b979_1c9cd8be","updated":"2015-06-25 09:13:09.000000000","message":"Done","commit_id":"b0af442e7445975b5ef08994dead4a3a67862df3"}]}
