)]}'
{"barbican/tasks/certificate_resources.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":145,"context_line":"        # TODO(john-wood-w) Should this terminate the order in the ERROR state?"},{"line_number":146,"context_line":"        # If so, handle via \u0027error_reason/error_status_code\u0027. Otherwise"},{"line_number":147,"context_line":"        # handle via _update_result_follow_on() and not throw exception."},{"line_number":148,"context_line":"        _update_order_status(ORDER_STATUS_DATA_INVALID)"},{"line_number":149,"context_line":"        raise cert.CertificateStatusClientDataIssue(result.status_message)"},{"line_number":150,"context_line":"    elif cert.CertificateStatus.CA_UNAVAILABLE_FOR_REQUEST \u003d\u003d result.status:"},{"line_number":151,"context_line":"        _update_result_follow_on("}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_c6b8b7ca","line":148,"updated":"2015-03-25 16:53:14.000000000","message":"Yes - I believe that the order should be terminated in ERROR state.  So, if I understand correctly, we should set error_reason, error_status_code and throw the exception?\n\nchellygel should probably weigh in on this too.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e85923a653031f430941bcfeda4e8c5e083b7167","unresolved":false,"context_lines":[{"line_number":145,"context_line":"        # TODO(john-wood-w) Should this terminate the order in the ERROR state?"},{"line_number":146,"context_line":"        # If so, handle via \u0027error_reason/error_status_code\u0027. Otherwise"},{"line_number":147,"context_line":"        # handle via _update_result_follow_on() and not throw exception."},{"line_number":148,"context_line":"        _update_order_status(ORDER_STATUS_DATA_INVALID)"},{"line_number":149,"context_line":"        raise cert.CertificateStatusClientDataIssue(result.status_message)"},{"line_number":150,"context_line":"    elif cert.CertificateStatus.CA_UNAVAILABLE_FOR_REQUEST \u003d\u003d result.status:"},{"line_number":151,"context_line":"        _update_result_follow_on("}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_7db14046","line":148,"in_reply_to":"1a6ced46_2511805d","updated":"2015-03-26 17:33:52.000000000","message":"yeah - looking at the code, it appears that the error message and status are set simply by raising the exception.\n\nThere is no need to explicitly set the error message/status.  If you want to specify it, then it should be passed into the exception raised, similar to what we do below right now.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"15c5e69ca6b9d03755c49ef7bfc8c2a522dd6ee7","unresolved":false,"context_lines":[{"line_number":145,"context_line":"        # TODO(john-wood-w) Should this terminate the order in the ERROR state?"},{"line_number":146,"context_line":"        # If so, handle via \u0027error_reason/error_status_code\u0027. Otherwise"},{"line_number":147,"context_line":"        # handle via _update_result_follow_on() and not throw exception."},{"line_number":148,"context_line":"        _update_order_status(ORDER_STATUS_DATA_INVALID)"},{"line_number":149,"context_line":"        raise cert.CertificateStatusClientDataIssue(result.status_message)"},{"line_number":150,"context_line":"    elif cert.CertificateStatus.CA_UNAVAILABLE_FOR_REQUEST \u003d\u003d result.status:"},{"line_number":151,"context_line":"        _update_result_follow_on("}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_2511805d","line":148,"in_reply_to":"1a6ced46_c6b8b7ca","updated":"2015-03-25 17:02:05.000000000","message":"You get the error_reason/status_code stuff \u0027for free\u0027 as part of handling the error (per the BaseTask\u0027s process() method logic). In which case the _update_order_status() call above is not needed.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        #"},{"line_number":161,"context_line":"        # _schedule_issue_cert_request(cert_plugin, order_model, plugin_meta,"},{"line_number":162,"context_line":"        #                              result, project_model,"},{"line_number":163,"context_line":"        #                              cert.ERROR_RETRY_MSEC)"},{"line_number":164,"context_line":"        _notify_ca_unavailable(order_model, result)"},{"line_number":165,"context_line":"    elif cert.CertificateStatus.INVALID_OPERATION \u003d\u003d result.status:"},{"line_number":166,"context_line":"        # TODO(john-wood-w) Should this terminate the order in the ERROR state?"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_a6f73b58","line":163,"updated":"2015-03-25 16:53:14.000000000","message":"Is there a reason the commented out code is not deleted?","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"15c5e69ca6b9d03755c49ef7bfc8c2a522dd6ee7","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        #"},{"line_number":161,"context_line":"        # _schedule_issue_cert_request(cert_plugin, order_model, plugin_meta,"},{"line_number":162,"context_line":"        #                              result, project_model,"},{"line_number":163,"context_line":"        #                              cert.ERROR_RETRY_MSEC)"},{"line_number":164,"context_line":"        _notify_ca_unavailable(order_model, result)"},{"line_number":165,"context_line":"    elif cert.CertificateStatus.INVALID_OPERATION \u003d\u003d result.status:"},{"line_number":166,"context_line":"        # TODO(john-wood-w) Should this terminate the order in the ERROR state?"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_e8281d88","line":163,"in_reply_to":"1a6ced46_a6f73b58","updated":"2015-03-25 17:02:05.000000000","message":"Ha, because I didn\u0027t clean up properly! :) Will remove this...","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        # If so, handle via \u0027error_reason/error_status_code\u0027. Otherwise"},{"line_number":168,"context_line":"        # handle via _update_result_follow_on() and not throw exception."},{"line_number":169,"context_line":"        _update_order_status(ORDER_STATUS_INVALID_OPERATION)"},{"line_number":170,"context_line":"        raise cert.CertificateStatusInvalidOperation(result.status_message)"},{"line_number":171,"context_line":"    else:"},{"line_number":172,"context_line":"        # TODO(john-wood-w) I think this condition definitely is a terminal"},{"line_number":173,"context_line":"        # one, in the ERROR status. So rather than update the order\u0027s"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_c1918148","line":170,"updated":"2015-03-25 16:53:14.000000000","message":"The original intent of this exception was to handle cases where we are attempting an operation that is invalid for the state of the order.  An example of this is attempting to cancel an order after the cert has already been issued.\n\nIn this case, we would be attempting to issue a cert request when the cert request has already been issued?  or perhaps issue after it has been cancelled?  I can\u0027t see how this exception would arise in this case.\n\nTerminating the order with state ERROR therefore seems like the right approach to me.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"15c5e69ca6b9d03755c49ef7bfc8c2a522dd6ee7","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        # If so, handle via \u0027error_reason/error_status_code\u0027. Otherwise"},{"line_number":168,"context_line":"        # handle via _update_result_follow_on() and not throw exception."},{"line_number":169,"context_line":"        _update_order_status(ORDER_STATUS_INVALID_OPERATION)"},{"line_number":170,"context_line":"        raise cert.CertificateStatusInvalidOperation(result.status_message)"},{"line_number":171,"context_line":"    else:"},{"line_number":172,"context_line":"        # TODO(john-wood-w) I think this condition definitely is a terminal"},{"line_number":173,"context_line":"        # one, in the ERROR status. So rather than update the order\u0027s"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_2856b506","line":170,"in_reply_to":"1a6ced46_c1918148","updated":"2015-03-25 17:02:05.000000000","message":"Sounds good.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        # sub-status info, the \u0027error_reason\u0027 and \u0027error_status_code\u0027"},{"line_number":175,"context_line":"        # attributes should be used instead."},{"line_number":176,"context_line":"        _update_order_status(ORDER_STATUS_INTERNAL_ERROR)"},{"line_number":177,"context_line":"        raise cert.CertificateStatusNotSupported(result.status)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    return container_model"},{"line_number":180,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_01af197e","line":177,"updated":"2015-03-25 16:53:14.000000000","message":"agreed","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":226,"context_line":"        # TODO(john-wood-w) Should this terminate the order in the ERROR state?"},{"line_number":227,"context_line":"        # If so, handle via \u0027error_reason/error_status_code\u0027. Otherwise"},{"line_number":228,"context_line":"        # handle via _update_result_follow_on() and not throw exception."},{"line_number":229,"context_line":"        _update_order_status(ORDER_STATUS_DATA_INVALID)"},{"line_number":230,"context_line":"        raise cert.CertificateStatusClientDataIssue(result.status_message)"},{"line_number":231,"context_line":"    elif cert.CertificateStatus.CA_UNAVAILABLE_FOR_REQUEST \u003d\u003d result.status:"},{"line_number":232,"context_line":"        _update_result_follow_on("}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_e11f5d6a","line":229,"updated":"2015-03-25 16:53:14.000000000","message":"Same as above.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        # _schedule_check_cert_request(cert_plugin, order_model, plugin_meta,"},{"line_number":241,"context_line":"        #                              result, project_model,"},{"line_number":242,"context_line":"        #                              cert.ERROR_RETRY_MSEC)"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"    elif cert.CertificateStatus.INVALID_OPERATION \u003d\u003d result.status:"},{"line_number":245,"context_line":"        # TODO(john-wood-w) Should this terminate the order in the ERROR state?"},{"line_number":246,"context_line":"        # If so, handle via \u0027error_reason/error_status_code\u0027. Otherwise"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_e5012806","line":243,"updated":"2015-03-25 16:53:14.000000000","message":"same as above, why not deleted?","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":245,"context_line":"        # TODO(john-wood-w) Should this terminate the order in the ERROR state?"},{"line_number":246,"context_line":"        # If so, handle via \u0027error_reason/error_status_code\u0027. Otherwise"},{"line_number":247,"context_line":"        # handle via _update_result_follow_on() and not throw exception."},{"line_number":248,"context_line":"        _update_order_status(ORDER_STATUS_INVALID_OPERATION)"},{"line_number":249,"context_line":"        raise cert.CertificateStatusInvalidOperation(result.status_message)"},{"line_number":250,"context_line":"    else:"},{"line_number":251,"context_line":"        # TODO(john-wood-w) I think this condition definitely is a terminal"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_055564fa","line":248,"updated":"2015-03-25 16:53:14.000000000","message":"same as above.  I don\u0027t actually see a case here where this exception would be thrown.  So terminating with ERROR is probably ok.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":272,"context_line":""},{"line_number":273,"context_line":"    preferred_ca_repository \u003d repos.get_preferred_ca_repository()"},{"line_number":274,"context_line":"    cas, offset, limit, total \u003d preferred_ca_repository.get_by_create_date("},{"line_number":275,"context_line":"        project_id\u003dproject_id, suppress_exception\u003dTrue)"},{"line_number":276,"context_line":"    if total \u003e 0:"},{"line_number":277,"context_line":"        return cas[0].ca_id"},{"line_number":278,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_85aeb4e4","line":275,"updated":"2015-03-25 16:53:14.000000000","message":"this change has merged","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"15c5e69ca6b9d03755c49ef7bfc8c2a522dd6ee7","unresolved":false,"context_lines":[{"line_number":272,"context_line":""},{"line_number":273,"context_line":"    preferred_ca_repository \u003d repos.get_preferred_ca_repository()"},{"line_number":274,"context_line":"    cas, offset, limit, total \u003d preferred_ca_repository.get_by_create_date("},{"line_number":275,"context_line":"        project_id\u003dproject_id, suppress_exception\u003dTrue)"},{"line_number":276,"context_line":"    if total \u003e 0:"},{"line_number":277,"context_line":"        return cas[0].ca_id"},{"line_number":278,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_6898adc0","line":275,"in_reply_to":"1a6ced46_85aeb4e4","updated":"2015-03-25 17:02:05.000000000","message":"NIce.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"cc0caca1ca825983e9112c7232135b2687371a12","unresolved":false,"context_lines":[{"line_number":295,"context_line":"    if retry_msec and retry_msec \u003e\u003d 0:"},{"line_number":296,"context_line":"        result_follow_on.retry_msec \u003d retry_msec"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"def _schedule_cert_retry_task(cert_result_dto, cert_plugin, order_model,"},{"line_number":300,"context_line":"                              plugin_meta,"},{"line_number":301,"context_line":"                              retry_method\u003dNone,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_056644c1","line":298,"updated":"2015-03-25 16:53:14.000000000","message":"The methods below are no longer needed , right?","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"15c5e69ca6b9d03755c49ef7bfc8c2a522dd6ee7","unresolved":false,"context_lines":[{"line_number":295,"context_line":"    if retry_msec and retry_msec \u003e\u003d 0:"},{"line_number":296,"context_line":"        result_follow_on.retry_msec \u003d retry_msec"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"def _schedule_cert_retry_task(cert_result_dto, cert_plugin, order_model,"},{"line_number":300,"context_line":"                              plugin_meta,"},{"line_number":301,"context_line":"                              retry_method\u003dNone,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_68c6ed9b","line":298,"in_reply_to":"1a6ced46_056644c1","updated":"2015-03-25 17:02:05.000000000","message":"That\u0027s correct, but I wanted your \u0027blessing\u0027 from above to do so. :)","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e85923a653031f430941bcfeda4e8c5e083b7167","unresolved":false,"context_lines":[{"line_number":295,"context_line":"    if retry_msec and retry_msec \u003e\u003d 0:"},{"line_number":296,"context_line":"        result_follow_on.retry_msec \u003d retry_msec"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"def _schedule_cert_retry_task(cert_result_dto, cert_plugin, order_model,"},{"line_number":300,"context_line":"                              plugin_meta,"},{"line_number":301,"context_line":"                              retry_method\u003dNone,"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa963961_58179aed","line":298,"in_reply_to":"1a6ced46_68c6ed9b","updated":"2015-03-26 17:33:52.000000000","message":"you are blessed :)","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"}],"functionaltests/api/v1/models/order_models.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"83cadb6ec5bd03d7f86320764022cc381643ffdb","unresolved":false,"context_lines":[{"line_number":28,"context_line":"        self.name \u003d name"},{"line_number":29,"context_line":"        self.status \u003d status"},{"line_number":30,"context_line":"        self.sub_status \u003d sub_status"},{"line_number":31,"context_line":"        self.sub_status_message \u003d sub_status_message"},{"line_number":32,"context_line":"        self.secret_ref \u003d secret_ref"},{"line_number":33,"context_line":"        self.expiration \u003d expiration"},{"line_number":34,"context_line":"        self.updated \u003d updated"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_bcddbe72","line":31,"updated":"2015-03-24 15:41:01.000000000","message":"can you move lines 30 and 31 to the end so the order matches the order in the method signature?","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"f16572d776255672c344a5138f83136f4ba9c7cd","unresolved":false,"context_lines":[{"line_number":28,"context_line":"        self.name \u003d name"},{"line_number":29,"context_line":"        self.status \u003d status"},{"line_number":30,"context_line":"        self.sub_status \u003d sub_status"},{"line_number":31,"context_line":"        self.sub_status_message \u003d sub_status_message"},{"line_number":32,"context_line":"        self.secret_ref \u003d secret_ref"},{"line_number":33,"context_line":"        self.expiration \u003d expiration"},{"line_number":34,"context_line":"        self.updated \u003d updated"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_db4b5285","line":31,"in_reply_to":"1a6ced46_12095695","updated":"2015-03-24 21:52:26.000000000","message":"Awesome, thx!","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"e82c8bbebd6a7d804c920098e9d1ffffc26d5f89","unresolved":false,"context_lines":[{"line_number":28,"context_line":"        self.name \u003d name"},{"line_number":29,"context_line":"        self.status \u003d status"},{"line_number":30,"context_line":"        self.sub_status \u003d sub_status"},{"line_number":31,"context_line":"        self.sub_status_message \u003d sub_status_message"},{"line_number":32,"context_line":"        self.secret_ref \u003d secret_ref"},{"line_number":33,"context_line":"        self.expiration \u003d expiration"},{"line_number":34,"context_line":"        self.updated \u003d updated"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_12095695","line":31,"in_reply_to":"1a6ced46_bcddbe72","updated":"2015-03-24 21:30:16.000000000","message":"Will do once I put up more tests to reduce the cover gate failure lines.","commit_id":"8b64f4f91553fe8b77fd617cd62816f19288095e"}]}
