)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"5be243966bd9d00e4411e2c68a5aca53913d5058","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Allow business logic and plugins to retry tasks"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a new common.py module to the barbican/tasks application to define"},{"line_number":10,"context_line":"a concept for retry tasks that is common between the the"},{"line_number":11,"context_line":"barbican.queue.server.py logic (that executes RPC Task methods from the"},{"line_number":12,"context_line":"queue) and the lower level business logic and plugin eventually invoked"},{"line_number":13,"context_line":"by these top-level RPC Task methods. A follow on CR will begin to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a6ced46_87fb0fc0","line":10,"updated":"2015-03-25 20:56:06.000000000","message":"nit; the the","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"82f3c78c3fbd09973acabc31b12ffdb2f5c7f366","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Allow business logic and plugins to retry tasks"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a new common.py module to the barbican/tasks application to define"},{"line_number":10,"context_line":"a concept for retry tasks that is common between the the"},{"line_number":11,"context_line":"barbican.queue.server.py logic (that executes RPC Task methods from the"},{"line_number":12,"context_line":"queue) and the lower level business logic and plugin eventually invoked"},{"line_number":13,"context_line":"by these top-level RPC Task methods. A follow on CR will begin to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fa963961_9903e1b8","line":10,"in_reply_to":"1a6ced46_87fb0fc0","updated":"2015-03-26 20:13:07.000000000","message":"Will fix, thanks.","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"}],"barbican/queue/server.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"aae3e5fe90f0c55ead5fcd89d168f4139dea5d1f","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    @functools.wraps(fn)"},{"line_number":57,"context_line":"    def wrapper(method_self, *args, **kwargs):"},{"line_number":58,"context_line":"            result \u003d fn(method_self, *args, **kwargs)"},{"line_number":59,"context_line":"            schedule_retry_tasks(fn, result, *args, **kwargs)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    return wrapper"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_3cbb20c5","line":59,"updated":"2015-03-20 09:03:44.000000000","message":"how come this dismisses what schedule_retry_tasks returns?","commit_id":"5ffa42793ccc2fff1bc234e3025bd34e5cc4a814"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"87ad481457ae682b94d6b4a128d63f51b3a4bb65","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    @functools.wraps(fn)"},{"line_number":57,"context_line":"    def wrapper(method_self, *args, **kwargs):"},{"line_number":58,"context_line":"            result \u003d fn(method_self, *args, **kwargs)"},{"line_number":59,"context_line":"            schedule_retry_tasks(fn, result, *args, **kwargs)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    return wrapper"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_f802543c","line":59,"in_reply_to":"9a80dd14_3cbb20c5","updated":"2015-03-20 23:11:34.000000000","message":"It is mainly used for unit testing, but will add a debug log output here.","commit_id":"5ffa42793ccc2fff1bc234e3025bd34e5cc4a814"}],"barbican/tasks/common.py":[{"author":{"_account_id":7136,"name":"Chad Lung","email":"chad.lung@gmail.com","username":"chadlung"},"change_message_id":"5bd2bde0bbb9ca9b42cae28a5e024d6b4835fad7","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    RPC tasks invoked from the queue are handled via methods on"},{"line_number":29,"context_line":"    barbican.queue.server.Tasks. These calls in turn delegate to the"},{"line_number":30,"context_line":"    \u0027process()\u0027 mnethod of BaseTask sub-classes. These calls in turn delegate"},{"line_number":31,"context_line":"    to business logic and plugins via modules in this barbican.tasks package."},{"line_number":32,"context_line":"    This class defines a common mechanism for the business logic and plugins"},{"line_number":33,"context_line":"    to indicate what RPC tasks need to be retried in a way that the Tasks"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_0798ff1a","line":30,"updated":"2015-03-25 21:05:59.000000000","message":"\"mnethod\" -\u003e method ?","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"82f3c78c3fbd09973acabc31b12ffdb2f5c7f366","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    RPC tasks invoked from the queue are handled via methods on"},{"line_number":29,"context_line":"    barbican.queue.server.Tasks. These calls in turn delegate to the"},{"line_number":30,"context_line":"    \u0027process()\u0027 mnethod of BaseTask sub-classes. These calls in turn delegate"},{"line_number":31,"context_line":"    to business logic and plugins via modules in this barbican.tasks package."},{"line_number":32,"context_line":"    This class defines a common mechanism for the business logic and plugins"},{"line_number":33,"context_line":"    to indicate what RPC tasks need to be retried in a way that the Tasks"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa963961_59e9d919","line":30,"in_reply_to":"1a6ced46_0798ff1a","updated":"2015-03-26 20:13:07.000000000","message":"Will fix, thanks.","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"3a28fbc657c25a724ac20d35e41b0f4cca2576e4","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        retry_task\u003dRetryTasks.NO_ACTION_REQUIRED,"},{"line_number":66,"context_line":"        retry_msec\u003dRETRY_MSEC_DEFAULT"},{"line_number":67,"context_line":"    ):"},{"line_number":68,"context_line":"        \"\"\"Creates a new ResultDTO."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        :param status: Status for cert order"},{"line_number":71,"context_line":"        :param status_message: Message to explain status type."}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_1a97a891","line":68,"updated":"2015-03-30 16:25:15.000000000","message":"Will fix name in the 3rd CR.","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"f500aae937f8a06404c962a8f22a08021ac14710","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        self.status \u003d status"},{"line_number":76,"context_line":"        self.status_message \u003d status_message"},{"line_number":77,"context_line":"        self.retry_task \u003d retry_task"},{"line_number":78,"context_line":"        self.retry_msec \u003d int(retry_msec)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def is_follow_on_needed(self):"},{"line_number":81,"context_line":"        if self.retry_task:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_0886ccb9","line":78,"updated":"2015-03-23 13:19:03.000000000","message":"by the way, if retry_msec will be needed for all the retry tasks, wouldn\u0027t it be worth it to declare this class to inherit from an abstract class? where that abstract class enforces the existance of the retry_msec attribute? (maybe as a property)","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"82f3c78c3fbd09973acabc31b12ffdb2f5c7f366","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        self.status \u003d status"},{"line_number":76,"context_line":"        self.status_message \u003d status_message"},{"line_number":77,"context_line":"        self.retry_task \u003d retry_task"},{"line_number":78,"context_line":"        self.retry_msec \u003d int(retry_msec)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def is_follow_on_needed(self):"},{"line_number":81,"context_line":"        if self.retry_task:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa963961_594d5971","line":78,"in_reply_to":"1a6ced46_0886ccb9","updated":"2015-03-26 20:13:07.000000000","message":"We\u0027ve been trying to keep DTO lightweight, so with a flat no-extensions class model.  I think this logic could be relaxed to:\n\nif not retry_msec:\n    self.retry_msec \u003d 0\nelse:\n    self.retry_msec \u003d max(int(retry_msec), 0)","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"a244d5a116da486f44726bfddc007f2ec34ee4a3","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        if self.retry_task:"},{"line_number":82,"context_line":"            return RetryTasks.NO_ACTION_REQUIRED !\u003d self.retry_task"},{"line_number":83,"context_line":"        else:"},{"line_number":84,"context_line":"            return False"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_e272f10f","line":84,"updated":"2015-03-25 21:26:29.000000000","message":"pep8 says this needs a newline!","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"82f3c78c3fbd09973acabc31b12ffdb2f5c7f366","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        if self.retry_task:"},{"line_number":82,"context_line":"            return RetryTasks.NO_ACTION_REQUIRED !\u003d self.retry_task"},{"line_number":83,"context_line":"        else:"},{"line_number":84,"context_line":"            return False"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa963961_56c76612","line":84,"in_reply_to":"1a6ced46_e272f10f","updated":"2015-03-26 20:13:07.000000000","message":"Need to update my local hacking so tox -e pep8 catches there....will fix, thanks.","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"}],"barbican/tasks/resources.py":[{"author":{"_account_id":7136,"name":"Chad Lung","email":"chad.lung@gmail.com","username":"chadlung"},"change_message_id":"5bd2bde0bbb9ca9b42cae28a5e024d6b4835fad7","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        :param kwargs: Dict of arguments passed in from the client."},{"line_number":56,"context_line":"        :return: Returns :class:`FollowOnProcessingStatusDTO` if follow-on"},{"line_number":57,"context_line":"                 processing (such as retrying this or another task) is"},{"line_number":58,"context_line":"                 required, otherwise None is returned indicate no such"},{"line_number":59,"context_line":"                 follow-on processing is required."},{"line_number":60,"context_line":"        \"\"\""},{"line_number":61,"context_line":"        name \u003d self.get_name()"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_87794fca","line":58,"updated":"2015-03-25 21:05:59.000000000","message":"\"None is returned indicate no\" -\u003e None is returned indicating no  ?","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"82f3c78c3fbd09973acabc31b12ffdb2f5c7f366","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        :param kwargs: Dict of arguments passed in from the client."},{"line_number":56,"context_line":"        :return: Returns :class:`FollowOnProcessingStatusDTO` if follow-on"},{"line_number":57,"context_line":"                 processing (such as retrying this or another task) is"},{"line_number":58,"context_line":"                 required, otherwise None is returned indicate no such"},{"line_number":59,"context_line":"                 follow-on processing is required."},{"line_number":60,"context_line":"        \"\"\""},{"line_number":61,"context_line":"        name \u003d self.get_name()"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa963961_19dd9142","line":58,"in_reply_to":"1a6ced46_87794fca","updated":"2015-03-26 20:13:07.000000000","message":"That is a mouthful, will fix.","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"}],"barbican/tests/queue/test_server.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"aae3e5fe90f0c55ead5fcd89d168f4139dea5d1f","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        super(WhenUsingRetryableDecorator, self).tearDown()"},{"line_number":139,"context_line":"        self.schedule_retry_tasks_patcher.stop()"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def test_should_succeed(self):"},{"line_number":142,"context_line":"        self.test_object.test_method(*self.args, **self.kwargs)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        self.assertEqual(self.args, self.test_object.my_args)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_7cd2f8d1","line":141,"updated":"2015-03-20 09:03:44.000000000","message":"what about:\n\ntest_should_successfully_scheduling_a_retry  ?\n\nOr something of the sort.\n\n\"should_succeed\" is not very descriptive","commit_id":"5ffa42793ccc2fff1bc234e3025bd34e5cc4a814"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"87ad481457ae682b94d6b4a128d63f51b3a4bb65","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        super(WhenUsingRetryableDecorator, self).tearDown()"},{"line_number":139,"context_line":"        self.schedule_retry_tasks_patcher.stop()"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def test_should_succeed(self):"},{"line_number":142,"context_line":"        self.test_object.test_method(*self.args, **self.kwargs)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        self.assertEqual(self.args, self.test_object.my_args)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_d320139c","line":141,"in_reply_to":"9a80dd14_7cd2f8d1","updated":"2015-03-20 23:11:34.000000000","message":"Will fix all of these.","commit_id":"5ffa42793ccc2fff1bc234e3025bd34e5cc4a814"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"aae3e5fe90f0c55ead5fcd89d168f4139dea5d1f","unresolved":false,"context_lines":[{"line_number":151,"context_line":"            *self.args,"},{"line_number":152,"context_line":"            **self.kwargs)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def test_should_raise_exception(self):"},{"line_number":155,"context_line":"        self.test_object.is_exception_needed \u003d True"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        self.assertRaises("}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_9c788cc5","line":154,"updated":"2015-03-20 09:03:44.000000000","message":"raise_exception because of what? or what is the expectation of testing this.\n\nmaybe an alternative could be\n\n\"test_retry_shouldnt_be_scheduled_if_exception_is_raised\"","commit_id":"5ffa42793ccc2fff1bc234e3025bd34e5cc4a814"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"aae3e5fe90f0c55ead5fcd89d168f4139dea5d1f","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        self.assertIsNone(retry_rpc_method)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    def test_should_not_schedule_task_due_to_no_retry_result(self):"},{"line_number":181,"context_line":"        self.result.retry_task \u003d common.RetryTasks.NO_ACTION_REQUIRED"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"        retry_rpc_method \u003d server.schedule_retry_tasks(None, self.result)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_dc2cc4ae","line":180,"updated":"2015-03-20 09:03:44.000000000","message":"the name of this makes it seem very similar to the above test.\n\nWhat about\n\ntest_should_not_schedule_task_due_to_no_action_required_result","commit_id":"5ffa42793ccc2fff1bc234e3025bd34e5cc4a814"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"d6d9899efdf7cfd817cf6c4428ae25668fbc0f77","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        super(WhenUsingRetryableDecorator, self).tearDown()"},{"line_number":139,"context_line":"        self.schedule_retry_tasks_patcher.stop()"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def test_should_successfully_scheduling_a_retry(self):"},{"line_number":142,"context_line":"        self.test_object.test_method(*self.args, **self.kwargs)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        self.assertEqual(self.args, self.test_object.my_args)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_4f9aa015","line":141,"updated":"2015-03-22 21:37:44.000000000","message":"haha so it seems that I managed to write it wrong myself here.\n\n\"should successfully reschedule a retry\" instead of \"should successfully rescheduleing a retry\", sorry for that :P","commit_id":"fe7bf20cf521ddf75c56857c212b63c5e39309b6"}]}
