)]}'
{"openstack_dashboard/dashboards/project/access_and_security/floating_ips/tests.py":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"db79cd27c14d5ea6ed347813f3196d3f50678383","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                                      \u0027tenant_floating_ip_list\u0027,)})"},{"line_number":82,"context_line":"    def test_associate_with_port_id(self):"},{"line_number":83,"context_line":"        targets \u003d [api.nova.FloatingIpTarget(s) for s in self.servers.list()]"},{"line_number":84,"context_line":"        targets[0].port_id \u003d \"101\""},{"line_number":85,"context_line":"        api.network.floating_ip_target_list(IsA(http.HttpRequest)) \\"},{"line_number":86,"context_line":"            .AndReturn(targets)"},{"line_number":87,"context_line":"        api.network.tenant_floating_ip_list(IsA(http.HttpRequest)) \\"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_31e31ca6","line":84,"updated":"2015-07-15 01:54:13.000000000","message":"use single_quote consistently\n\ncreate a variable for \u0027101\u0027, so we don\u0027t duplicate the string\n\ncan we just add the port_id in the nova test_data instead of setting the port_id here?","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"c1642769876d9e300b930dac317607d35b74f023","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                                      \u0027tenant_floating_ip_list\u0027,)})"},{"line_number":82,"context_line":"    def test_associate_with_port_id(self):"},{"line_number":83,"context_line":"        targets \u003d [api.nova.FloatingIpTarget(s) for s in self.servers.list()]"},{"line_number":84,"context_line":"        targets[0].port_id \u003d \"101\""},{"line_number":85,"context_line":"        api.network.floating_ip_target_list(IsA(http.HttpRequest)) \\"},{"line_number":86,"context_line":"            .AndReturn(targets)"},{"line_number":87,"context_line":"        api.network.tenant_floating_ip_list(IsA(http.HttpRequest)) \\"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_54b9ee13","line":84,"in_reply_to":"9a41bdd9_31e31ca6","updated":"2015-07-15 02:35:13.000000000","message":"re: modifying the test data\n\nthe targets in a real environment would  look much different than the test data we are using for floating ip test cases.  Right now the fip test cases are using servers for floating ip targets, but really the floating ip targets have their own class.  Since I\u0027m just testing a new query param with this change, I\u0027d like to limit the scope.","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"}],"openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9f3d55b91a2ce00ff14b9b8e9c231edd192e369c","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        elif q_port_id:"},{"line_number":65,"context_line":"            targets \u003d self._get_target_list()"},{"line_number":66,"context_line":"            if q_port_id in [target.id for target in targets]:"},{"line_number":67,"context_line":"                self.initial[\u0027instance_id\u0027] \u003d q_port_id"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def populate_ip_id_choices(self, request, context):"},{"line_number":70,"context_line":"        ips \u003d []"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_98407458","line":67,"updated":"2015-06-30 05:49:06.000000000","message":"Could you move the logic to retrieve q_port_id (at L.66) to\napi.network/neutron?\nI think we can define a new method like api.network.floating_ip_target_get_by_port(). Thought?","commit_id":"45ee74cdd7477b62292107480ef9c1a2fd8ae867"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"db79cd27c14d5ea6ed347813f3196d3f50678383","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        elif q_port_id:"},{"line_number":65,"context_line":"            targets \u003d self._get_target_list()"},{"line_number":66,"context_line":"            for target in targets:"},{"line_number":67,"context_line":"                if (hasattr(target, \"port_id\") and"},{"line_number":68,"context_line":"                        target.port_id \u003d\u003d q_port_id):"},{"line_number":69,"context_line":"                    self.initial[\u0027instance_id\u0027] \u003d target.id"},{"line_number":70,"context_line":"                    break"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_ce856fcf","line":67,"updated":"2015-07-15 01:54:13.000000000","message":"use single quote consistently","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"c1642769876d9e300b930dac317607d35b74f023","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        elif q_port_id:"},{"line_number":65,"context_line":"            targets \u003d self._get_target_list()"},{"line_number":66,"context_line":"            for target in targets:"},{"line_number":67,"context_line":"                if (hasattr(target, \"port_id\") and"},{"line_number":68,"context_line":"                        target.port_id \u003d\u003d q_port_id):"},{"line_number":69,"context_line":"                    self.initial[\u0027instance_id\u0027] \u003d target.id"},{"line_number":70,"context_line":"                    break"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_f45fe2e2","line":67,"in_reply_to":"9a41bdd9_ce856fcf","updated":"2015-07-15 02:35:13.000000000","message":"Done","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"}],"openstack_dashboard/dashboards/project/loadbalancers/tables.py":[{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"23d83a826e6b0cf9c97d59253a1b76b63027d7db","unresolved":false,"context_lines":[{"line_number":266,"context_line":""},{"line_number":267,"context_line":""},{"line_number":268,"context_line":"class AddVIPFloatingIP(policy.PolicyTargetMixin, tables.LinkAction):"},{"line_number":269,"context_line":"    \"\"\"this class is extremely similar to AssociateIP from"},{"line_number":270,"context_line":"    the instances page"},{"line_number":271,"context_line":"    \"\"\""},{"line_number":272,"context_line":"    name \u003d \"associate\""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_898828e9","line":269,"updated":"2015-06-30 07:21:10.000000000","message":"use camel case: This","commit_id":"45ee74cdd7477b62292107480ef9c1a2fd8ae867"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9f3d55b91a2ce00ff14b9b8e9c231edd192e369c","unresolved":false,"context_lines":[{"line_number":293,"context_line":"            workflows.IPAssociationWorkflow.redirect_param_name: next_url}"},{"line_number":294,"context_line":"        if hasattr(datum, \"vip\") and datum.vip:"},{"line_number":295,"context_line":"            vip \u003d datum.vip"},{"line_number":296,"context_line":"            params[\u0027port_id\u0027] \u003d \u0027%s_%s\u0027 % (vip.port_id,"},{"line_number":297,"context_line":"                                           vip.address)"},{"line_number":298,"context_line":"        params \u003d urlencode(params)"},{"line_number":299,"context_line":"        return \"?\".join([base_url, params])"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_b863f819","line":296,"updated":"2015-06-30 05:49:06.000000000","message":"I think you use \u0027\u003cport-id\u003e-\u003cvip-address\u0027 format as \u0027port_id\u0027\nto match the value type of api.network.floating_ip_target_list.\nHowever, IMHO it is better to use port UUID as port_id here\nand to hide this kind of details in api.network/neutron layer.\n\n  params[\u0027port_id\u0027] \u003d vip.port_id","commit_id":"45ee74cdd7477b62292107480ef9c1a2fd8ae867"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"4b6610c61c72f01141e24d4b20f6fa3bc792b05f","unresolved":false,"context_lines":[{"line_number":293,"context_line":"            workflows.IPAssociationWorkflow.redirect_param_name: next_url}"},{"line_number":294,"context_line":"        if hasattr(datum, \"vip\") and datum.vip:"},{"line_number":295,"context_line":"            vip \u003d datum.vip"},{"line_number":296,"context_line":"            params[\u0027port_id\u0027] \u003d \u0027%s_%s\u0027 % (vip.port_id,"},{"line_number":297,"context_line":"                                           vip.address)"},{"line_number":298,"context_line":"        params \u003d urlencode(params)"},{"line_number":299,"context_line":"        return \"?\".join([base_url, params])"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_e7d1d4ce","line":296,"in_reply_to":"ba3cc151_b863f819","updated":"2015-06-30 11:13:43.000000000","message":"Thanks Akihiro.   I believe I need to just rename this, as both pieces of information (port id and the ip) are needed when the form gets submitted.   This is what I am trying to use as the key:\nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/api/neutron.py#L480\n\nI will clean this up a bit to make it more clear why this is being used this way.","commit_id":"45ee74cdd7477b62292107480ef9c1a2fd8ae867"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"23d83a826e6b0cf9c97d59253a1b76b63027d7db","unresolved":false,"context_lines":[{"line_number":329,"context_line":"            vip_fip \u003d [fip for fip in fips"},{"line_number":330,"context_line":"                       if fip.port_id \u003d\u003d pool.vip.port_id]"},{"line_number":331,"context_line":"            if not vip_fip:"},{"line_number":332,"context_line":"                messages.info(request, _(\"No floating IPs to disassociate.\"))"},{"line_number":333,"context_line":"            for fip in vip_fip:"},{"line_number":334,"context_line":"                api.network.floating_ip_disassociate(request, fip.id)"},{"line_number":335,"context_line":"                messages.success(request,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_2940fca4","line":332,"updated":"2015-06-30 07:21:10.000000000","message":"move this logic to allowed method, if no floating IP to disassociate simply hide the button.","commit_id":"45ee74cdd7477b62292107480ef9c1a2fd8ae867"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"4b6610c61c72f01141e24d4b20f6fa3bc792b05f","unresolved":false,"context_lines":[{"line_number":329,"context_line":"            vip_fip \u003d [fip for fip in fips"},{"line_number":330,"context_line":"                       if fip.port_id \u003d\u003d pool.vip.port_id]"},{"line_number":331,"context_line":"            if not vip_fip:"},{"line_number":332,"context_line":"                messages.info(request, _(\"No floating IPs to disassociate.\"))"},{"line_number":333,"context_line":"            for fip in vip_fip:"},{"line_number":334,"context_line":"                api.network.floating_ip_disassociate(request, fip.id)"},{"line_number":335,"context_line":"                messages.success(request,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_474e8097","line":332,"in_reply_to":"ba3cc151_2940fca4","updated":"2015-06-30 11:13:43.000000000","message":"this logic already exists in line 318.  I think this is still a good case to check, just in case something has happened in between page loads.   It is also something that is very similar from what the instances page uses.","commit_id":"45ee74cdd7477b62292107480ef9c1a2fd8ae867"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"46e70edfac8f3b5bff18b1028798e14114ad396e","unresolved":false,"context_lines":[{"line_number":268,"context_line":"class AddVIPFloatingIP(policy.PolicyTargetMixin, tables.LinkAction):"},{"line_number":269,"context_line":"    \"\"\"This class is extremely similar to AssociateIP from"},{"line_number":270,"context_line":"    the instances page"},{"line_number":271,"context_line":"    \"\"\""},{"line_number":272,"context_line":"    name \u003d \"associate\""},{"line_number":273,"context_line":"    verbose_name \u003d _(\"Associate Floating IP\")"},{"line_number":274,"context_line":"    url \u003d \"horizon:project:access_and_security:floating_ips:associate\""}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_a24417b7","line":271,"updated":"2015-07-07 02:33:30.000000000","message":"doesn\u0027t this doc string have an H405 error?","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"31be31f1cada158a7b5a8404252faa9c35bd385a","unresolved":false,"context_lines":[{"line_number":268,"context_line":"class AddVIPFloatingIP(policy.PolicyTargetMixin, tables.LinkAction):"},{"line_number":269,"context_line":"    \"\"\"This class is extremely similar to AssociateIP from"},{"line_number":270,"context_line":"    the instances page"},{"line_number":271,"context_line":"    \"\"\""},{"line_number":272,"context_line":"    name \u003d \"associate\""},{"line_number":273,"context_line":"    verbose_name \u003d _(\"Associate Floating IP\")"},{"line_number":274,"context_line":"    url \u003d \"horizon:project:access_and_security:floating_ips:associate\""}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_7a6ff25f","line":271,"in_reply_to":"ba3cc151_a24417b7","updated":"2015-07-09 17:47:44.000000000","message":"nope - 405 is ignored\n\nhttps://github.com/openstack/horizon/blob/eff59ac2dda578639c65c45bf0d33a30c37ceb18/tox.ini#L63\n\nI\u0027ll fix this just the same, though","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"46e70edfac8f3b5bff18b1028798e14114ad396e","unresolved":false,"context_lines":[{"line_number":295,"context_line":"            vip \u003d datum.vip"},{"line_number":296,"context_line":"            \"\"\"see the neutron code for a floating ip"},{"line_number":297,"context_line":"            target, the format is port-id_local-ip-addr"},{"line_number":298,"context_line":"            \"\"\""},{"line_number":299,"context_line":"            params[\u0027fip_target_id\u0027] \u003d \u0027%s_%s\u0027 % (vip.port_id,"},{"line_number":300,"context_line":"                                                 vip.address)"},{"line_number":301,"context_line":"        params \u003d urlencode(params)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_6215af99","line":298,"updated":"2015-07-07 02:33:30.000000000","message":"same here","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"31be31f1cada158a7b5a8404252faa9c35bd385a","unresolved":false,"context_lines":[{"line_number":295,"context_line":"            vip \u003d datum.vip"},{"line_number":296,"context_line":"            \"\"\"see the neutron code for a floating ip"},{"line_number":297,"context_line":"            target, the format is port-id_local-ip-addr"},{"line_number":298,"context_line":"            \"\"\""},{"line_number":299,"context_line":"            params[\u0027fip_target_id\u0027] \u003d \u0027%s_%s\u0027 % (vip.port_id,"},{"line_number":300,"context_line":"                                                 vip.address)"},{"line_number":301,"context_line":"        params \u003d urlencode(params)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_fa6d4203","line":298,"in_reply_to":"ba3cc151_6215af99","updated":"2015-07-09 17:47:44.000000000","message":"Done","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c3f9cd204f28e480b449d2680a5e5c0a3add58ca","unresolved":false,"context_lines":[{"line_number":295,"context_line":"            vip \u003d datum.vip"},{"line_number":296,"context_line":"            \"\"\"see the neutron code for a floating ip"},{"line_number":297,"context_line":"            target, the format is port-id_local-ip-addr"},{"line_number":298,"context_line":"            \"\"\""},{"line_number":299,"context_line":"            params[\u0027fip_target_id\u0027] \u003d \u0027%s_%s\u0027 % (vip.port_id,"},{"line_number":300,"context_line":"                                                 vip.address)"},{"line_number":301,"context_line":"        params \u003d urlencode(params)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_0ea5ec02","line":298,"in_reply_to":"ba3cc151_6215af99","updated":"2015-07-07 05:14:16.000000000","message":"I would suggest to use # for inline comments.\n\nIn Python convention, docstring (i.e., triple-quote) is used just after class or method definitions to explain the class or method.\nFor inline comments, we usually use #.","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c3f9cd204f28e480b449d2680a5e5c0a3add58ca","unresolved":false,"context_lines":[{"line_number":297,"context_line":"            target, the format is port-id_local-ip-addr"},{"line_number":298,"context_line":"            \"\"\""},{"line_number":299,"context_line":"            params[\u0027fip_target_id\u0027] \u003d \u0027%s_%s\u0027 % (vip.port_id,"},{"line_number":300,"context_line":"                                                 vip.address)"},{"line_number":301,"context_line":"        params \u003d urlencode(params)"},{"line_number":302,"context_line":"        return \"?\".join([base_url, params])"},{"line_number":303,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_ae5080d5","line":300,"updated":"2015-07-07 05:14:16.000000000","message":"I am still not convinced why we need to use \"target_id\" format here.\n\nIn the design of modules, it is not a good idea to use the internal format defined openstack_dashboard.api.lbaas and it is not exposed to outside of the module. This is the intention that we have xxx_target_id or similar methods in the FloatingIp class.\nIf you still want to use \"target_id\" of this format, please define a method to retrieve \"target_id\" from port_id (and address).\n\nFor LBaaS case, we have only one address for VIP, so it is enough even if we pass only \"port_id\" to get \"target_id\".\n\n\nIn the ongoing review and discussion in Neutron side,\nwe need to check IP version match between a port and a FIP.\nConsidering these situation, I think it is better to pass \"port\" and openstack_dashboard.api layer decides the detail.\n\nThought?","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"31be31f1cada158a7b5a8404252faa9c35bd385a","unresolved":false,"context_lines":[{"line_number":297,"context_line":"            target, the format is port-id_local-ip-addr"},{"line_number":298,"context_line":"            \"\"\""},{"line_number":299,"context_line":"            params[\u0027fip_target_id\u0027] \u003d \u0027%s_%s\u0027 % (vip.port_id,"},{"line_number":300,"context_line":"                                                 vip.address)"},{"line_number":301,"context_line":"        params \u003d urlencode(params)"},{"line_number":302,"context_line":"        return \"?\".join([base_url, params])"},{"line_number":303,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_d5b12f02","line":300,"in_reply_to":"ba3cc151_ae5080d5","updated":"2015-07-09 17:47:44.000000000","message":"Done","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"46e70edfac8f3b5bff18b1028798e14114ad396e","unresolved":false,"context_lines":[{"line_number":306,"context_line":"    \"\"\"This class is extremely similar to the project instance table"},{"line_number":307,"context_line":"    SimpleDisassociateIP feature, but just different enough to not"},{"line_number":308,"context_line":"    be able to share much code"},{"line_number":309,"context_line":"    \"\"\""},{"line_number":310,"context_line":"    name \u003d \"disassociate\""},{"line_number":311,"context_line":"    preempt \u003d True"},{"line_number":312,"context_line":"    verbose_name \u003d _(\"Disassociate Floating IP\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_42798bfb","line":309,"updated":"2015-07-07 02:33:30.000000000","message":"here too","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"31be31f1cada158a7b5a8404252faa9c35bd385a","unresolved":false,"context_lines":[{"line_number":306,"context_line":"    \"\"\"This class is extremely similar to the project instance table"},{"line_number":307,"context_line":"    SimpleDisassociateIP feature, but just different enough to not"},{"line_number":308,"context_line":"    be able to share much code"},{"line_number":309,"context_line":"    \"\"\""},{"line_number":310,"context_line":"    name \u003d \"disassociate\""},{"line_number":311,"context_line":"    preempt \u003d True"},{"line_number":312,"context_line":"    verbose_name \u003d _(\"Disassociate Floating IP\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_1a65861c","line":309,"in_reply_to":"ba3cc151_42798bfb","updated":"2015-07-09 17:47:44.000000000","message":"Done","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"46e70edfac8f3b5bff18b1028798e14114ad396e","unresolved":false,"context_lines":[{"line_number":310,"context_line":"    name \u003d \"disassociate\""},{"line_number":311,"context_line":"    preempt \u003d True"},{"line_number":312,"context_line":"    verbose_name \u003d _(\"Disassociate Floating IP\")"},{"line_number":313,"context_line":"    classes \u003d (\"btn-danger\", \"btn-disassociate\",)"},{"line_number":314,"context_line":"    policy_rules \u003d ((\"compute\", \"network:disassociate_floating_ip\"),)"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"    def allowed(self, request, pool):"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_225d6779","line":313,"updated":"2015-07-07 02:33:30.000000000","message":"Set the icon too, I think you want \"unlink\"","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"31be31f1cada158a7b5a8404252faa9c35bd385a","unresolved":false,"context_lines":[{"line_number":310,"context_line":"    name \u003d \"disassociate\""},{"line_number":311,"context_line":"    preempt \u003d True"},{"line_number":312,"context_line":"    verbose_name \u003d _(\"Disassociate Floating IP\")"},{"line_number":313,"context_line":"    classes \u003d (\"btn-danger\", \"btn-disassociate\",)"},{"line_number":314,"context_line":"    policy_rules \u003d ((\"compute\", \"network:disassociate_floating_ip\"),)"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"    def allowed(self, request, pool):"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_baad7a32","line":313,"in_reply_to":"ba3cc151_225d6779","updated":"2015-07-09 17:47:44.000000000","message":"Done","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c3f9cd204f28e480b449d2680a5e5c0a3add58ca","unresolved":false,"context_lines":[{"line_number":326,"context_line":"    def single(self, table, request, pool_id):"},{"line_number":327,"context_line":"        try:"},{"line_number":328,"context_line":"            # target_id is port_id for Neutron and instance_id for Nova Network"},{"line_number":329,"context_line":"            # (Neutron API wrapper returns a \u0027portid_fixedip\u0027 string)"},{"line_number":330,"context_line":"            pool \u003d api.lbaas.pool_get(request, pool_id)"},{"line_number":331,"context_line":"            fips \u003d api.network.tenant_floating_ip_list(request)"},{"line_number":332,"context_line":"            vip_fip \u003d [fip for fip in fips"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_cef944ca","line":329,"updated":"2015-07-07 05:14:16.000000000","message":"Honestly speaking, this layer should not be aware of the format used in the API layer. This format is internal in the API layer and it can be changed. The UI layer should not depend on the format.\n\nAnd it seems you do not depend on the format in the logic of disassociation.","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"31be31f1cada158a7b5a8404252faa9c35bd385a","unresolved":false,"context_lines":[{"line_number":326,"context_line":"    def single(self, table, request, pool_id):"},{"line_number":327,"context_line":"        try:"},{"line_number":328,"context_line":"            # target_id is port_id for Neutron and instance_id for Nova Network"},{"line_number":329,"context_line":"            # (Neutron API wrapper returns a \u0027portid_fixedip\u0027 string)"},{"line_number":330,"context_line":"            pool \u003d api.lbaas.pool_get(request, pool_id)"},{"line_number":331,"context_line":"            fips \u003d api.network.tenant_floating_ip_list(request)"},{"line_number":332,"context_line":"            vip_fip \u003d [fip for fip in fips"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_75eaa3d9","line":329,"in_reply_to":"ba3cc151_cef944ca","updated":"2015-07-09 17:47:44.000000000","message":"I think this comment is not appropriate.  It might be from a copy / paste error.  Reading this comment, it does not apply to this section of code","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"46e70edfac8f3b5bff18b1028798e14114ad396e","unresolved":false,"context_lines":[{"line_number":337,"context_line":"                api.network.floating_ip_disassociate(request, fip.id)"},{"line_number":338,"context_line":"                messages.success(request,"},{"line_number":339,"context_line":"                                 _(\"Successfully disassociated \""},{"line_number":340,"context_line":"                                   \"floating IP: %s\") % fip.ip)"},{"line_number":341,"context_line":"        except Exception:"},{"line_number":342,"context_line":"            exceptions.handle(request,"},{"line_number":343,"context_line":"                              _(\"Unable to disassociate floating IP.\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_e2d69fc2","line":340,"updated":"2015-07-07 02:33:30.000000000","message":"do you really want to show a success message for each FIP? Maybe append all FIP into a list?","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"31be31f1cada158a7b5a8404252faa9c35bd385a","unresolved":false,"context_lines":[{"line_number":337,"context_line":"                api.network.floating_ip_disassociate(request, fip.id)"},{"line_number":338,"context_line":"                messages.success(request,"},{"line_number":339,"context_line":"                                 _(\"Successfully disassociated \""},{"line_number":340,"context_line":"                                   \"floating IP: %s\") % fip.ip)"},{"line_number":341,"context_line":"        except Exception:"},{"line_number":342,"context_line":"            exceptions.handle(request,"},{"line_number":343,"context_line":"                              _(\"Unable to disassociate floating IP.\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_754e2339","line":340,"in_reply_to":"ba3cc151_2e855006","updated":"2015-07-09 17:47:44.000000000","message":"Done","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"31be31f1cada158a7b5a8404252faa9c35bd385a","unresolved":false,"context_lines":[{"line_number":337,"context_line":"                api.network.floating_ip_disassociate(request, fip.id)"},{"line_number":338,"context_line":"                messages.success(request,"},{"line_number":339,"context_line":"                                 _(\"Successfully disassociated \""},{"line_number":340,"context_line":"                                   \"floating IP: %s\") % fip.ip)"},{"line_number":341,"context_line":"        except Exception:"},{"line_number":342,"context_line":"            exceptions.handle(request,"},{"line_number":343,"context_line":"                              _(\"Unable to disassociate floating IP.\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_f57c7372","line":340,"in_reply_to":"ba3cc151_e2d69fc2","updated":"2015-07-09 17:47:44.000000000","message":"Lin - there should only be one fip for a vip at a time.  Having multiple fips would be a rare case I think.  What Akihiro said is correct / better.","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c3f9cd204f28e480b449d2680a5e5c0a3add58ca","unresolved":false,"context_lines":[{"line_number":337,"context_line":"                api.network.floating_ip_disassociate(request, fip.id)"},{"line_number":338,"context_line":"                messages.success(request,"},{"line_number":339,"context_line":"                                 _(\"Successfully disassociated \""},{"line_number":340,"context_line":"                                   \"floating IP: %s\") % fip.ip)"},{"line_number":341,"context_line":"        except Exception:"},{"line_number":342,"context_line":"            exceptions.handle(request,"},{"line_number":343,"context_line":"                              _(\"Unable to disassociate floating IP.\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_2e855006","line":340,"in_reply_to":"ba3cc151_e2d69fc2","updated":"2015-07-07 05:14:16.000000000","message":"Neutron floating IP can be associated with only one neutron port.\nThis means vip_fip is a list but its length is at most one.\nTo clarify the logic, it seems better to have:\n\n  fip \u003d vip_fip[0]\n\nor similar logic at L.336.\n\nIn addition, vip_fip is a list, so it should be plural form.","commit_id":"3e3078257a5adc2bc4974b0062e2d5cabf6d095c"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"db79cd27c14d5ea6ed347813f3196d3f50678383","unresolved":false,"context_lines":[{"line_number":281,"context_line":"    def allowed(self, request, pool):"},{"line_number":282,"context_line":"        if not api.network.floating_ip_supported(request):"},{"line_number":283,"context_line":"            return False"},{"line_number":284,"context_line":"        if api.network.floating_ip_simple_associate_supported(request):"},{"line_number":285,"context_line":"            return False"},{"line_number":286,"context_line":"        if hasattr(pool, \"vip\") and pool.vip:"},{"line_number":287,"context_line":"            vip \u003d pool.vip"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_31c23c35","line":284,"updated":"2015-07-15 01:54:13.000000000","message":"is this supposed to be \"not\" here, similar as line 320?","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"a1f715f7c153123f34a702dc01ee81cc2f8075e8","unresolved":false,"context_lines":[{"line_number":281,"context_line":"    def allowed(self, request, pool):"},{"line_number":282,"context_line":"        if not api.network.floating_ip_supported(request):"},{"line_number":283,"context_line":"            return False"},{"line_number":284,"context_line":"        if api.network.floating_ip_simple_associate_supported(request):"},{"line_number":285,"context_line":"            return False"},{"line_number":286,"context_line":"        if hasattr(pool, \"vip\") and pool.vip:"},{"line_number":287,"context_line":"            vip \u003d pool.vip"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_8324c35f","line":284,"in_reply_to":"9a41bdd9_260c323a","updated":"2015-07-16 13:54:09.000000000","message":"Okay, let\u0027s keep this as is then.","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"c1642769876d9e300b930dac317607d35b74f023","unresolved":false,"context_lines":[{"line_number":281,"context_line":"    def allowed(self, request, pool):"},{"line_number":282,"context_line":"        if not api.network.floating_ip_supported(request):"},{"line_number":283,"context_line":"            return False"},{"line_number":284,"context_line":"        if api.network.floating_ip_simple_associate_supported(request):"},{"line_number":285,"context_line":"            return False"},{"line_number":286,"context_line":"        if hasattr(pool, \"vip\") and pool.vip:"},{"line_number":287,"context_line":"            vip \u003d pool.vip"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_34a8ea1f","line":284,"in_reply_to":"9a41bdd9_31c23c35","updated":"2015-07-15 02:35:13.000000000","message":"this was taken from https://github.com/openstack/horizon/blob/ab28be583e3f5380ba19c02c9b30b7664ed92c07/openstack_dashboard/dashboards/project/instances/tables.py#L556\n\nwhich reads config from https://github.com/openstack/horizon/blob/24f85b850a727379c740f783da96b6217b8b43fe/openstack_dashboard/local/local_settings.py.example#L93\n\nI think this is something beyond just simple floating ip management, and maybe Akihiro can explain the differences with this setting.","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1e6e2cc8e5b7f54c01e43911850822dc3737e690","unresolved":false,"context_lines":[{"line_number":281,"context_line":"    def allowed(self, request, pool):"},{"line_number":282,"context_line":"        if not api.network.floating_ip_supported(request):"},{"line_number":283,"context_line":"            return False"},{"line_number":284,"context_line":"        if api.network.floating_ip_simple_associate_supported(request):"},{"line_number":285,"context_line":"            return False"},{"line_number":286,"context_line":"        if hasattr(pool, \"vip\") and pool.vip:"},{"line_number":287,"context_line":"            vip \u003d pool.vip"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_439da8ba","line":284,"in_reply_to":"9a41bdd9_34a8ea1f","updated":"2015-07-15 09:23:54.000000000","message":"The reason I introduced the method floating_ip_simple_associate_supported() is because I would like to ensure Neutron does not support it regardless of the horizon settings. When I wrote the code, the simple association did not work for a case where an instance has multiple ports, so I want to ensure it returns False. If the situation is changed now, we can update it.","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"b87acd712b4cbba07fc016b42e031c4ecfe64ad4","unresolved":false,"context_lines":[{"line_number":281,"context_line":"    def allowed(self, request, pool):"},{"line_number":282,"context_line":"        if not api.network.floating_ip_supported(request):"},{"line_number":283,"context_line":"            return False"},{"line_number":284,"context_line":"        if api.network.floating_ip_simple_associate_supported(request):"},{"line_number":285,"context_line":"            return False"},{"line_number":286,"context_line":"        if hasattr(pool, \"vip\") and pool.vip:"},{"line_number":287,"context_line":"            vip \u003d pool.vip"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_260c323a","line":284,"in_reply_to":"9a41bdd9_439da8ba","updated":"2015-07-15 09:40:06.000000000","message":"I cannot remember why we use the method for FIP association and use HORIZON CONFIG for disassociation.\nOne possible reason is that the simple disassciation works for neutron too.","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"db79cd27c14d5ea6ed347813f3196d3f50678383","unresolved":false,"context_lines":[{"line_number":317,"context_line":"    def allowed(self, request, pool):"},{"line_number":318,"context_line":"        if not api.network.floating_ip_supported(request):"},{"line_number":319,"context_line":"            return False"},{"line_number":320,"context_line":"        if not conf.HORIZON_CONFIG[\"simple_ip_management\"]:"},{"line_number":321,"context_line":"            return False"},{"line_number":322,"context_line":"        if hasattr(pool, \"vip\") and pool.vip:"},{"line_number":323,"context_line":"            vip \u003d pool.vip"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_31ab1c77","line":320,"updated":"2015-07-15 01:54:13.000000000","message":"seems inconsistent with line:283, should you be re-using api.network.floating_ip_simple_associate_supported() instead?","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"c1642769876d9e300b930dac317607d35b74f023","unresolved":false,"context_lines":[{"line_number":317,"context_line":"    def allowed(self, request, pool):"},{"line_number":318,"context_line":"        if not api.network.floating_ip_supported(request):"},{"line_number":319,"context_line":"            return False"},{"line_number":320,"context_line":"        if not conf.HORIZON_CONFIG[\"simple_ip_management\"]:"},{"line_number":321,"context_line":"            return False"},{"line_number":322,"context_line":"        if hasattr(pool, \"vip\") and pool.vip:"},{"line_number":323,"context_line":"            vip \u003d pool.vip"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_3456aa2a","line":320,"in_reply_to":"9a41bdd9_31ab1c77","updated":"2015-07-15 02:35:13.000000000","message":"this was taken from https://github.com/openstack/horizon/blob/24f85b850a727379c740f783da96b6217b8b43fe/openstack_dashboard/local/local_settings.py.example#L93   \n\nI\u0027m not sure if this is the right thing to do?  seems like the same thing","commit_id":"4a93dc657f0784509f40814d987563732364ebb8"}],"openstack_dashboard/dashboards/project/loadbalancers/views.py":[{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"23d83a826e6b0cf9c97d59253a1b76b63027d7db","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    page_title \u003d _(\"Load Balancer\")"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def post(self, request, *args, **kwargs):"},{"line_number":46,"context_line":"        \"\"\"this method is messy because table actions"},{"line_number":47,"context_line":"        were not implemented correctly.  ideally,"},{"line_number":48,"context_line":"        this code can be refactored to move items into"},{"line_number":49,"context_line":"        table actions"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_29555c4f","line":46,"updated":"2015-06-30 07:21:10.000000000","message":"use camel case: This","commit_id":"45ee74cdd7477b62292107480ef9c1a2fd8ae867"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"fdace1c36ece2c93972c62dd72c7f3550c9f67d2","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    page_title \u003d _(\"Load Balancer\")"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def post(self, request, *args, **kwargs):"},{"line_number":46,"context_line":"        \"\"\"this method is messy because table actions"},{"line_number":47,"context_line":"        were not implemented correctly.  ideally,"},{"line_number":48,"context_line":"        this code can be refactored to move items into"},{"line_number":49,"context_line":"        table actions"}],"source_content_type":"text/x-python","patch_set":6,"id":"ba3cc151_ff01ad05","line":46,"updated":"2015-07-03 11:30:29.000000000","message":"nit - camel case \"This\"","commit_id":"95fe4505a8e3820cf7778e359809af0301480095"}]}
