)]}'
{"neutronclient/neutron/v2_0/__init__.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"5bd6c8e29522ab043c0eb84cfe1298a1f25bd5e2","unresolved":false,"context_lines":[{"line_number":364,"context_line":"    json_indent \u003d None"},{"line_number":365,"context_line":"    resource \u003d None"},{"line_number":366,"context_line":"    shadow_resource \u003d None"},{"line_number":367,"context_line":"    parent_id \u003d None"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"    def __init__(self, app, app_args):"},{"line_number":370,"context_line":"        super(NeutronCommand, self).__init__(app, app_args)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_aab43b36","line":367,"updated":"2014-08-03 21:17:09.000000000","message":"When looking at LBaaS v2 CLI code, parent_id is set dynamically in the code (get_data or something). I prefer to having a **static** class attribute like \"has_parent\". It is easier to understand the code and better from the code maintenance.","commit_id":"409bdbefd5a720581dca17a2d7c65e41b207bd01"},{"author":{"_account_id":6530,"name":"craigtracey","email":"craigtracey@gmail.com","username":"craigtracey"},"change_message_id":"48d5c8f10a7b433cbeaa8c759e75eadee6587e21","unresolved":false,"context_lines":[{"line_number":364,"context_line":"    json_indent \u003d None"},{"line_number":365,"context_line":"    resource \u003d None"},{"line_number":366,"context_line":"    shadow_resource \u003d None"},{"line_number":367,"context_line":"    parent_id \u003d None"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"    def __init__(self, app, app_args):"},{"line_number":370,"context_line":"        super(NeutronCommand, self).__init__(app, app_args)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_c0abf26e","line":367,"in_reply_to":"baada198_aab43b36","updated":"2014-08-04 16:30:21.000000000","message":"Akihiro, thank you fro looking at these reviews!  Can you clarify what you are looking to change here? If I understand correctly, you would like parent_id set dynamically in the subclass but have a boolean in this NeutronCommand that flags whether or not to  look for a parent_id attribute being set in the subclass.\n\nI am not opposed to doing that, however, I think it may lead to some other code modifications that are also maybe not as maintainable.  For instance, any call to \u0027find_resourceid_by_name_or_id\u0027 would now need to be prefaced with a conditional to pass in parent_id only when it is set.  This feels a little odd to me.  Thoughts?\n\nAlternatively, I could add a has_parent to the base class and then a @property decorated method that passes back self._parent_id when self.has_parent is True, but this seems like it is a bit redundant.\n\nAm I understanding your request correctly?  Thoughts on the above comments?","commit_id":"409bdbefd5a720581dca17a2d7c65e41b207bd01"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"4ef830757e143b730fb937b1bb383a50727d28df","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    collection \u003d resource_plural"},{"line_number":57,"context_line":"    if match:"},{"line_number":58,"context_line":"        if parent_id:"},{"line_number":59,"context_line":"            data \u003d obj_lister(parent_id, id\u003dresource_id, fields\u003d\u0027id\u0027)"},{"line_number":60,"context_line":"        else:"},{"line_number":61,"context_line":"            data \u003d obj_lister(id\u003dresource_id, fields\u003d\u0027id\u0027)"},{"line_number":62,"context_line":"        if data and data[collection]:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_f723a5a7","line":59,"updated":"2014-08-08 20:34:43.000000000","message":"If you passed parent_id as a named arg, couldn\u0027t you remove most of these if conditionals/duped calls and let **param handle the fall-through?","commit_id":"5258ec52a8cb426558f8ed1c7f76a984490b0a0b"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"adb0f685ea856b1262de160bea4eb97c835abaf8","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    collection \u003d resource_plural"},{"line_number":57,"context_line":"    if match:"},{"line_number":58,"context_line":"        if parent_id:"},{"line_number":59,"context_line":"            data \u003d obj_lister(parent_id, id\u003dresource_id, fields\u003d\u0027id\u0027)"},{"line_number":60,"context_line":"        else:"},{"line_number":61,"context_line":"            data \u003d obj_lister(id\u003dresource_id, fields\u003d\u0027id\u0027)"},{"line_number":62,"context_line":"        if data and data[collection]:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_3ae2649c","line":59,"in_reply_to":"baada198_971a6916","updated":"2014-08-08 21:25:19.000000000","message":"Ok, so we\u0027re using positional arguments instead of named arguments, to make the higher level code look clearer with more appropriately named args on a per object basis.  I can live with that.","commit_id":"5258ec52a8cb426558f8ed1c7f76a984490b0a0b"},{"author":{"_account_id":6530,"name":"craigtracey","email":"craigtracey@gmail.com","username":"craigtracey"},"change_message_id":"053ae07c8ff087734997e211fe17fb904f07770f","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    collection \u003d resource_plural"},{"line_number":57,"context_line":"    if match:"},{"line_number":58,"context_line":"        if parent_id:"},{"line_number":59,"context_line":"            data \u003d obj_lister(parent_id, id\u003dresource_id, fields\u003d\u0027id\u0027)"},{"line_number":60,"context_line":"        else:"},{"line_number":61,"context_line":"            data \u003d obj_lister(id\u003dresource_id, fields\u003d\u0027id\u0027)"},{"line_number":62,"context_line":"        if data and data[collection]:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_971a6916","line":59,"in_reply_to":"baada198_f723a5a7","updated":"2014-08-08 20:44:14.000000000","message":"I was asked to use the name of the object\u0027s parent in ie. the lister routines.  So, since member is a sub-object of pool, the call is:\n\ndef list_lbaas_members(self, lbaas_pool, retrieve_all\u003dTrue, **_params)\n\nas opposed to:\n\ndef list_lbaas_members(self, parent_id, retrieve_all\u003dTrue, **_params)\n\nThis would mean I would need something like a map of object:subobject to set the proper param. This is something I was trying to avoid. Do you agree?\n\nHappy to make it parent_id but I was explicitly asked to make it lbaas_pool.","commit_id":"5258ec52a8cb426558f8ed1c7f76a984490b0a0b"}]}
