)]}'
{"networking_odl/db/db.py":[{"author":{"_account_id":11347,"name":"Rui Zang","email":"rui.zang@yandex.com","username":"rzang"},"change_message_id":"6b149f30d4337a715d3d19fafa5d9de7ef958331","unresolved":false,"context_lines":[{"line_number":83,"context_line":"# NOTE(manjeets) This method will help in dependency"},{"line_number":84,"context_line":"# validation when data b/w dependent operations isn\u0027t"},{"line_number":85,"context_line":"# related"},{"line_number":86,"context_line":"def get_pending_and_processing_rows(session, resources):"},{"line_number":87,"context_line":"    query \u003d session.query(models.OpendaylightJournal).filter("},{"line_number":88,"context_line":"        or_(models.OpendaylightJournal.state \u003d\u003d odl_const.PENDING,"},{"line_number":89,"context_line":"            models.OpendaylightJournal.state \u003d\u003d odl_const.PROCESSING))"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_6ce01bce","line":86,"range":{"start_line":86,"start_character":0,"end_line":86,"end_character":56},"updated":"2017-01-06 08:33:59.000000000","message":"I do not see where this interface is used. Could you put it in the same patch that this interface is being used?","commit_id":"404d3b4b1085535151a396336f410e1e0b5e6f21"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"e9f20e0ce35106d7a93d807ef2170a4c3d4bf0bb","unresolved":false,"context_lines":[{"line_number":83,"context_line":"# NOTE(manjeets) This method will help in dependency"},{"line_number":84,"context_line":"# validation when data b/w dependent operations isn\u0027t"},{"line_number":85,"context_line":"# related"},{"line_number":86,"context_line":"def get_pending_and_processing_rows(session, resources):"},{"line_number":87,"context_line":"    query \u003d session.query(models.OpendaylightJournal).filter("},{"line_number":88,"context_line":"        or_(models.OpendaylightJournal.state \u003d\u003d odl_const.PENDING,"},{"line_number":89,"context_line":"            models.OpendaylightJournal.state \u003d\u003d odl_const.PROCESSING))"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_e3980a6d","line":86,"range":{"start_line":86,"start_character":0,"end_line":86,"end_character":56},"in_reply_to":"ba5201f7_6ce01bce","updated":"2017-01-10 18:33:41.000000000","message":"https://review.openstack.org/#/c/318942/40/networking_odl/journal/dependency_validations.py@199 shows the use of it","commit_id":"404d3b4b1085535151a396336f410e1e0b5e6f21"}],"networking_odl/tests/unit/db/test_db.py":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"c88f9478c99cb9745fbf68f34b273ce6f39c6c80","unresolved":false,"context_lines":[{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        self.assertEqual(2, update_mock.call_count)"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def test_get_all_pending_processing_rows(self):"},{"line_number":160,"context_line":"        db.create_pending_row(self.db_session, *self.UPDATE_ROW)"},{"line_number":161,"context_line":"        row1 \u003d [odl_const.ODL_PORT, \u0027id\u0027, odl_const.ODL_UPDATE,"},{"line_number":162,"context_line":"                {\u0027test\u0027: \u0027data\u0027}]"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a57fde8_b503e80c","line":159,"range":{"start_line":159,"start_character":8,"end_line":159,"end_character":44},"updated":"2017-01-12 08:30:00.000000000","message":"This should be split to several test methods covering the different combinations.","commit_id":"404d3b4b1085535151a396336f410e1e0b5e6f21"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"a174f31530af9a1c669f13577b3a67ed7288b7da","unresolved":false,"context_lines":[{"line_number":175,"context_line":"        rows \u003d db.get_pending_and_processing_rows("},{"line_number":176,"context_line":"            self.db_session, [odl_const.ODL_NETWORK, odl_const.ODL_PORT])"},{"line_number":177,"context_line":"        self.assertEqual(len(rows.all()), 2)"},{"line_number":178,"context_line":"        for row in rows:"},{"line_number":179,"context_line":"            if row.object_type \u003d\u003d odl_const.ODL_NETWORK:"},{"line_number":180,"context_line":"                self.assertEqual(row.state, odl_const.PENDING)"},{"line_number":181,"context_line":"            elif row.object_type \u003d\u003d odl_const.ODL_PORT:"},{"line_number":182,"context_line":"                self.assertEqual(row.state, odl_const.PROCESSING)"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def _test_delete_rows_by_state_and_time(self, last_retried, row_retention,"},{"line_number":185,"context_line":"                                            state, expected_rows):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a461143_fb2b8631","line":182,"range":{"start_line":178,"start_character":8,"end_line":182,"end_character":65},"updated":"2017-01-25 21:36:47.000000000","message":"I could rip this into separate test but I think assertion was easy here, if I do it in another test I have to repeat the code for updating a row to processing from this test.","commit_id":"5c1dfd50b82d498bb06aef8406319f54a18a3e58"}]}
