)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"7ad4eb5ad1edbed196e4ac7b6eed58c2be267100","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This hook point can be used for various post processing operations to be"},{"line_number":10,"context_line":"done on the resources after they have been synced to ODL."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The next change will use this hook point to update the port status."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I7913d4260ccbd923e7d762381575f7a9f356ffff"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fa31d9ce_97eaebaa","line":12,"range":{"start_line":12,"start_character":44,"end_line":12,"end_character":67},"updated":"2017-02-14 02:10:35.000000000","message":"i guess ideally you want to mark the row COMPLETED and update the port status in a single transaction.","commit_id":"93a4fa0100d576abc6ea4e16c868b186ec42fdec"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"382b9833c5db68ad24b7b38bf82b8148323ad130","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This hook point can be used for various post processing operations to be"},{"line_number":10,"context_line":"done on the resources after they have been synced to ODL."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The next change will use this hook point to update the port status."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I7913d4260ccbd923e7d762381575f7a9f356ffff"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a1ff146_d103010e","line":12,"range":{"start_line":12,"start_character":44,"end_line":12,"end_character":67},"in_reply_to":"fa31d9ce_97eaebaa","updated":"2017-03-15 04:05:36.000000000","message":"However providing a way to hook things in post processing is a good idea.\n\nI agree to keep both of them in the same transaction. If there is any specific reason, I would like to know.","commit_id":"93a4fa0100d576abc6ea4e16c868b186ec42fdec"}],"networking_odl/journal/journal.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"a14ab620e7faaf261066d09e479ee17157b72e22","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":35,"context_line":"_post_processing_hooks \u003d {}"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def register_post_processing_hook(object_type, hook):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_3bd76c24","line":35,"range":{"start_line":35,"start_character":0,"end_line":35,"end_character":22},"updated":"2017-02-07 01:11:41.000000000","message":"This ca be a class attribute of OpendaylightJournalThread?","commit_id":"83588b753308392e47c456ed301288d5b46299b7"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"a14ab620e7faaf261066d09e479ee17157b72e22","unresolved":false,"context_lines":[{"line_number":35,"context_line":"_post_processing_hooks \u003d {}"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def register_post_processing_hook(object_type, hook):"},{"line_number":39,"context_line":"    \"\"\"Register a post processing hook for the given object_type."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    The hook is a method expected to receive the session and the row which was"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_7be1f4fd","line":38,"range":{"start_line":38,"start_character":4,"end_line":38,"end_character":33},"updated":"2017-02-07 01:11:41.000000000","message":"This can be a static method of OpendaylightJournalThread.","commit_id":"83588b753308392e47c456ed301288d5b46299b7"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"58bc34bed277641c6701d1e0802828d4bbb6fb1c","unresolved":false,"context_lines":[{"line_number":216,"context_line":""},{"line_number":217,"context_line":"            try:"},{"line_number":218,"context_line":"                self.client.sendjson(method, urlpath, to_send)"},{"line_number":219,"context_line":"                db.update_db_row_state(session, row, odl_const.COMPLETED)"},{"line_number":220,"context_line":"                _execute_post_processing(session, row)"},{"line_number":221,"context_line":"            except exceptions.ConnectionError as e:"},{"line_number":222,"context_line":"                # Don\u0027t raise the retry count, just log an error"},{"line_number":223,"context_line":"                LOG.error(_LE(\"Cannot connect to the Opendaylight Controller\"))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_9bd220ff","line":220,"range":{"start_line":219,"start_character":0,"end_line":220,"end_character":54},"updated":"2017-02-07 01:16:25.000000000","message":"What kind of process is expected?\nIf it\u0027s db operation, shouldn\u0027t it be called under same db transaction of marking row COMPLETED?","commit_id":"83588b753308392e47c456ed301288d5b46299b7"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"7ad4eb5ad1edbed196e4ac7b6eed58c2be267100","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":35,"context_line":"_post_processing_hooks \u003d {}"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def register_post_processing_hook(object_type, hook):"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_d7f70389","line":35,"range":{"start_line":35,"start_character":0,"end_line":35,"end_character":22},"updated":"2017-02-14 02:10:35.000000000","message":"is it necessary to be a global?","commit_id":"93a4fa0100d576abc6ea4e16c868b186ec42fdec"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"c9592087cc6221963b31ae6a157aac1033c6c45b","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":35,"context_line":"_post_processing_hooks \u003d {}"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def register_post_processing_hook(object_type, hook):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a1ff146_715ecd46","line":35,"range":{"start_line":35,"start_character":0,"end_line":35,"end_character":22},"in_reply_to":"fa31d9ce_d7f70389","updated":"2017-03-15 04:02:07.000000000","message":"It has to be shared among two methods, there are other ways we can do it for example assign it as an attribute of functions. I think in the current scenario, it seems to be ok.","commit_id":"93a4fa0100d576abc6ea4e16c868b186ec42fdec"}],"networking_odl/tests/unit/journal/test_journal.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"a14ab620e7faaf261066d09e479ee17157b72e22","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    def setUp(self):"},{"line_number":28,"context_line":"        super(JournalTestCase, self).setUp()"},{"line_number":29,"context_line":"        self.useFixture(odl_base.OpenDaylightRestClientFixture())"},{"line_number":30,"context_line":"        self.mock_sync_thread \u003d mock.patch.object("},{"line_number":31,"context_line":"            journal.OpendaylightJournalThread, \u0027start_odl_sync_thread\u0027).start()"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def _test_post_processing_hook(self, hook):"},{"line_number":34,"context_line":"        journal.register_post_processing_hook(odl_const.ODL_NETWORK, hook)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_1bbb90e6","line":31,"range":{"start_line":30,"start_character":0,"end_line":31,"end_character":79},"updated":"2017-02-07 01:11:41.000000000","message":"Now we have many places to do this. Let\u0027s introduce fixture for this.","commit_id":"83588b753308392e47c456ed301288d5b46299b7"}]}
