)]}'
{"barbicanclient/base.py":[{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"a12c7e571ea9e7a5d39f758e41e783c5e55138a3","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    return dict(((k, v) for k, v in dictionary.items() if v))"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"def immutable_after_save(func):"},{"line_number":29,"context_line":"    @functools.wraps(func)"},{"line_number":30,"context_line":"    def wrapper(self, *args):"},{"line_number":31,"context_line":"        if self._order_ref:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa7fdbe_f0216cfd","line":28,"updated":"2014-10-29 15:28:34.000000000","message":"These functions were not in a common location for a reason -- they are specific to one class as they are currently written. Note the reference to self._order_ref in the function -- this is not \"common code\".","commit_id":"ec999e3cba1d04762eb27144a2e0b516836e9994"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"bf57ae46e4ab3fefba80450ba317a55326823426","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    return dict(((k, v) for k, v in dictionary.items() if v))"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"def immutable_after_save(func):"},{"line_number":29,"context_line":"    @functools.wraps(func)"},{"line_number":30,"context_line":"    def wrapper(self, *args):"},{"line_number":31,"context_line":"        if self._order_ref:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa7fdbe_10051014","line":28,"in_reply_to":"9aa7fdbe_f0216cfd","updated":"2014-10-29 15:32:19.000000000","message":"Heh. Yeah, I noticed that after I pushed this patch and started looking at consolidating the other wrappers.  Still seems like a DRY code smell to me.","commit_id":"ec999e3cba1d04762eb27144a2e0b516836e9994"}],"barbicanclient/orders.py":[{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"a12c7e571ea9e7a5d39f758e41e783c5e55138a3","unresolved":false,"context_lines":[{"line_number":24,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"def immutable_after_save(func):"},{"line_number":28,"context_line":"    @functools.wraps(func)"},{"line_number":29,"context_line":"    def wrapper(self, *args):"},{"line_number":30,"context_line":"        if self._order_ref:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa7fdbe_d052a867","side":"PARENT","line":27,"updated":"2014-10-29 15:28:34.000000000","message":"See comment in base.py -- these are not common code, and should probably remain with their specific classes.","commit_id":"eea6c75cac717c00e40d85bebf45163f097cf34d"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c1e64b3cf203866b43987b5b8acabbe60a82c126","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2013 Rackspace, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"# You may obtain a copy of the License at"},{"line_number":6,"context_line":"#"},{"line_number":7,"context_line":"#    http://www.apache.org/licenses/LICENSE-2.0"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_4918e284","line":4,"updated":"2014-10-30 11:26:27.000000000","message":"Why was this done?","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"b812dc55c2e4786876def15e5444c00ab4249980","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2013 Rackspace, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"# You may obtain a copy of the License at"},{"line_number":6,"context_line":"#"},{"line_number":7,"context_line":"#    http://www.apache.org/licenses/LICENSE-2.0"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_b926ea66","line":4,"in_reply_to":"7a8c0949_4918e284","updated":"2014-10-30 18:23:06.000000000","message":"No idea.  Probably an accidental deletion I\u0027ll re-add in next patch.","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c1e64b3cf203866b43987b5b8acabbe60a82c126","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        self._type \u003d type"},{"line_number":97,"context_line":"        self._status \u003d status"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        self._created \u003d parse_isotime(created) if created else None"},{"line_number":100,"context_line":"        self._updated \u003d parse_isotime(updated) if updated else None"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        self._order_ref \u003d order_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_2431fbec","line":99,"updated":"2014-10-30 11:26:27.000000000","message":"nit: I would rather have this in a more canonical form...such as:\n\nif created:\n    self._created \u003d parse_isotime(created)\nelse:\n    self._created \u003d None\n\nSince that way it will show explicitly in the coverage","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"b812dc55c2e4786876def15e5444c00ab4249980","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        self._type \u003d type"},{"line_number":97,"context_line":"        self._status \u003d status"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        self._created \u003d parse_isotime(created) if created else None"},{"line_number":100,"context_line":"        self._updated \u003d parse_isotime(updated) if updated else None"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        self._order_ref \u003d order_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_798f2224","line":99,"in_reply_to":"7a8c0949_2431fbec","updated":"2014-10-30 18:23:06.000000000","message":"Done","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c1e64b3cf203866b43987b5b8acabbe60a82c126","unresolved":false,"context_lines":[{"line_number":273,"context_line":"    _order_map \u003d {"},{"line_number":274,"context_line":"        \u0027key\u0027: KeyOrder,"},{"line_number":275,"context_line":"        \u0027asymmetric\u0027: AsymmetricOrder"},{"line_number":276,"context_line":"    }"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"    def __init__(self, api):"},{"line_number":279,"context_line":"        super(OrderManager, self).__init__(api, \u0027orders\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_44e9a719","line":276,"updated":"2014-10-30 11:26:27.000000000","message":"What does the \"_order_map\" hold? I would rather have a more descriptive name. Something such as _order_type_map or _order_types perhaps?","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"b812dc55c2e4786876def15e5444c00ab4249980","unresolved":false,"context_lines":[{"line_number":273,"context_line":"    _order_map \u003d {"},{"line_number":274,"context_line":"        \u0027key\u0027: KeyOrder,"},{"line_number":275,"context_line":"        \u0027asymmetric\u0027: AsymmetricOrder"},{"line_number":276,"context_line":"    }"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"    def __init__(self, api):"},{"line_number":279,"context_line":"        super(OrderManager, self).__init__(api, \u0027orders\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_d9b576ce","line":276,"in_reply_to":"7a8c0949_364beab1","updated":"2014-10-30 18:23:06.000000000","message":"I think it should be obvious to anyone messing with the implementation of the manager, but I don\u0027t mind renaming it.","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"fa53ba5296171c13ba5dfed2f95259b1e28d5815","unresolved":false,"context_lines":[{"line_number":273,"context_line":"    _order_map \u003d {"},{"line_number":274,"context_line":"        \u0027key\u0027: KeyOrder,"},{"line_number":275,"context_line":"        \u0027asymmetric\u0027: AsymmetricOrder"},{"line_number":276,"context_line":"    }"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"    def __init__(self, api):"},{"line_number":279,"context_line":"        super(OrderManager, self).__init__(api, \u0027orders\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_364beab1","line":276,"in_reply_to":"7a8c0949_44e9a719","updated":"2014-10-30 16:12:43.000000000","message":"This is private, anyone using it probably knows exactly what it does because they\u0027ve looked at it in code. Also, I think it makes sense, but I named the one Doug modeled this after. :P","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"5785cf65ba44f028ce5916c1109c52c72aab42c7","unresolved":false,"context_lines":[{"line_number":353,"context_line":"        \"\"\""},{"line_number":354,"context_line":"        if not order_ref:"},{"line_number":355,"context_line":"            raise ValueError(\u0027order_ref is required.\u0027)"},{"line_number":356,"context_line":"        self._api._delete(order_ref)"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    def list(self, limit\u003d10, offset\u003d0):"},{"line_number":359,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_2804777d","line":356,"updated":"2014-10-30 05:42:13.000000000","message":"Not wrapping this with a try/catch means this could throw something besides a LookupError, I believe (which would be inconsistent with Containers/Secrets). See this method in either of those classes.","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"b812dc55c2e4786876def15e5444c00ab4249980","unresolved":false,"context_lines":[{"line_number":353,"context_line":"        \"\"\""},{"line_number":354,"context_line":"        if not order_ref:"},{"line_number":355,"context_line":"            raise ValueError(\u0027order_ref is required.\u0027)"},{"line_number":356,"context_line":"        self._api._delete(order_ref)"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    def list(self, limit\u003d10, offset\u003d0):"},{"line_number":359,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a8c0949_39e59aa8","line":356,"in_reply_to":"7a8c0949_2804777d","updated":"2014-10-30 18:23:06.000000000","message":"There\u0027s a lot of things that could throw Exceptions here.  Are you suggesting a Pokemon except?  SecretManger.delete() is identical to this one.  The only one that is different is the ContainerManager.delete() which catches AttributeErrors and turns them into LookupErrors.  I honestly don\u0027t see what the benefit of that is.\n\nI agree with Juan that it is outside the scope of this CR.","commit_id":"1f18a606934990f7da28473402f5eebec4c1335a"}]}
