)]}'
{"networking_odl/journal/worker.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"a67df8f91692ad3d7c633f7e7d07af61a49bf816","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            cleanup_obj.cleanup_processing_rows)"},{"line_number":104,"context_line":"        self._periodic_task.register_operation(full_sync.full_sync)"},{"line_number":105,"context_line":"        self._periodic_task.register_operation(recovery.journal_recovery)"},{"line_number":106,"context_line":"        self._periodic_task.execute_ops(forced\u003dTrue)"},{"line_number":107,"context_line":"        self._periodic_task.start()"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_1772264a","line":106,"range":{"start_line":106,"start_character":40,"end_line":106,"end_character":51},"updated":"2017-10-23 19:13:26.000000000","message":"except forced\u003dTrue, it makes sense to start task proactively on startup.","commit_id":"e5c3ec7d3b318a83fd83514bcd2272f1b32887a7"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"af81f989b7acf19d52fe72f98e6f4a57e6a36a23","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            cleanup_obj.cleanup_processing_rows)"},{"line_number":104,"context_line":"        self._periodic_task.register_operation(full_sync.full_sync)"},{"line_number":105,"context_line":"        self._periodic_task.register_operation(recovery.journal_recovery)"},{"line_number":106,"context_line":"        self._periodic_task.execute_ops(forced\u003dTrue)"},{"line_number":107,"context_line":"        self._periodic_task.start()"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_ff53ad37","line":106,"range":{"start_line":106,"start_character":40,"end_line":106,"end_character":51},"in_reply_to":"3f4b6375_1772264a","updated":"2017-10-25 11:41:59.000000000","message":"I\u0027m not sure what you meant. If you meant that we can call it without the parameters; yes it\u0027s true, however it is much clearer to include the parameter since it\u0027s a forced execution and not a periodic execution.\n\nIt also avoids a call to the DB that we already know the result.","commit_id":"e5c3ec7d3b318a83fd83514bcd2272f1b32887a7"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"80f19bb44f238042b454a9f5aeb8be55636035ac","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            cleanup_obj.cleanup_processing_rows)"},{"line_number":104,"context_line":"        self._periodic_task.register_operation(full_sync.full_sync)"},{"line_number":105,"context_line":"        self._periodic_task.register_operation(recovery.journal_recovery)"},{"line_number":106,"context_line":"        self._periodic_task.execute_ops(forced\u003dTrue)"},{"line_number":107,"context_line":"        self._periodic_task.start()"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_02cc71ba","line":106,"range":{"start_line":106,"start_character":40,"end_line":106,"end_character":51},"in_reply_to":"3f4b6375_32cf252a","updated":"2017-11-13 09:24:55.000000000","message":"Like I said, having that makes it much clearer and explicit on the desired outcome. It will lead to less guessing when you approach the code for the first time.","commit_id":"e5c3ec7d3b318a83fd83514bcd2272f1b32887a7"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"4a5c248cb657af2a4a7a989beecb6eb2c5116de1","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            cleanup_obj.cleanup_processing_rows)"},{"line_number":104,"context_line":"        self._periodic_task.register_operation(full_sync.full_sync)"},{"line_number":105,"context_line":"        self._periodic_task.register_operation(recovery.journal_recovery)"},{"line_number":106,"context_line":"        self._periodic_task.execute_ops(forced\u003dTrue)"},{"line_number":107,"context_line":"        self._periodic_task.start()"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_32cf252a","line":106,"range":{"start_line":106,"start_character":40,"end_line":106,"end_character":51},"in_reply_to":"3f4b6375_ff53ad37","updated":"2017-11-06 06:56:35.000000000","message":"If it can be called without parameter then let the fix interval looping call do the job by specifying initial_delay.","commit_id":"e5c3ec7d3b318a83fd83514bcd2272f1b32887a7"}],"networking_odl/tests/unit/journal/test_journal.py":[{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"cb7cff145977b40e8bab200947e08092da5884c7","unresolved":false,"context_lines":[{"line_number":245,"context_line":"        self.addCleanup(periodic_processor.stop)"},{"line_number":246,"context_line":"        periodic_processor.start()"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        self.assertEqual(execute_mock.call_count, 1)"},{"line_number":249,"context_line":"        execute_mock.assert_has_calls([mock.call(forced\u003dTrue)])"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"    def test_creates_pidfile(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1f485f77_b7b81e2a","line":248,"range":{"start_line":248,"start_character":0,"end_line":248,"end_character":52},"updated":"2017-11-14 07:23:49.000000000","message":"It could be execute_mock.assert_called_once_with","commit_id":"4c207f85b2fab582d7130bd6f920e799df35c9ed"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"bbdc77ff2923072687a1e178e7eafd95fa619c71","unresolved":false,"context_lines":[{"line_number":241,"context_line":"        self.addCleanup(periodic_processor.stop)"},{"line_number":242,"context_line":"        periodic_processor.start()"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"        self.assertEqual(execute_mock.call_count, 1)"},{"line_number":245,"context_line":"        execute_mock.assert_has_calls([mock.call(forced\u003dTrue)])"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"    def test_creates_pidfile(self):"}],"source_content_type":"text/x-python","patch_set":18,"id":"df87a7cf_53999f76","line":244,"range":{"start_line":244,"start_character":8,"end_line":244,"end_character":52},"updated":"2017-12-07 11:21:26.000000000","message":"execute_mock.assert_called_once()\n\nAlso why do you need it given that you check in next line that it had specific calls?","commit_id":"0ff0a1ff30ed406ed8bd56f724eced00e6fc2385"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8a2e85b0bce49533b616fb82b2b8de2ed0d59399","unresolved":false,"context_lines":[{"line_number":241,"context_line":"        self.addCleanup(periodic_processor.stop)"},{"line_number":242,"context_line":"        periodic_processor.start()"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"        self.assertEqual(execute_mock.call_count, 1)"},{"line_number":245,"context_line":"        execute_mock.assert_has_calls([mock.call(forced\u003dTrue)])"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"    def test_creates_pidfile(self):"}],"source_content_type":"text/x-python","patch_set":18,"id":"df87a7cf_b2954e89","line":244,"range":{"start_line":244,"start_character":8,"end_line":244,"end_character":52},"in_reply_to":"df87a7cf_53999f76","updated":"2017-12-09 21:07:59.000000000","message":"Done","commit_id":"0ff0a1ff30ed406ed8bd56f724eced00e6fc2385"}]}
