)]}'
{"openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"27a9ebb79dd4b855ecd22d5a27fc4ed54a581ff2","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"class ReassociateIP(tables.LinkAction):"},{"line_number":131,"context_line":"    name \u003d \"resassociate\""},{"line_number":132,"context_line":"    verbose_name \u003d _(\"Reassociate\")"},{"line_number":133,"context_line":"    classes \u003d (\"ajax-modal\",)"},{"line_number":134,"context_line":"    url \u003d \"horizon:project:access_and_security:floating_ips:associate\""}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_dc98fac2","line":131,"updated":"2016-02-23 02:17:22.000000000","message":"resassociate -\u003e reassociate","commit_id":"2cee9cd93468f0159b414e8c1402e8d8dbcd5c7a"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"a6df4dc9bd52aeaacbe0231ba53420714938f8d5","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        return \"?\".join([base_url, params])"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"class ReassociateIP(tables.LinkAction):"},{"line_number":131,"context_line":"    name \u003d \"reassociate\""},{"line_number":132,"context_line":"    verbose_name \u003d _(\"Reassociate\")"},{"line_number":133,"context_line":"    classes \u003d (\"ajax-modal\",)"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_5f769206","line":130,"range":{"start_line":130,"start_character":6,"end_line":130,"end_character":19},"updated":"2016-02-23 09:08:45.000000000","message":"could we inherit form AssociateIP  class?  the two classes share most code..","commit_id":"aed6d41de6a0db0274da9e3bca215c6710075539"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"06f2671f5c98dde9e339439277bf29907c318ac0","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"class ReassociateIP(AssociateIP):"},{"line_number":131,"context_line":"    name \u003d \"resassociate\""},{"line_number":132,"context_line":"    verbose_name \u003d _(\"Reassociate\")"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def allowed(self, request, fip):"}],"source_content_type":"text/x-python","patch_set":4,"id":"bae84128_4ef4ff59","line":131,"updated":"2016-02-23 21:21:05.000000000","message":"Need to update this name again.","commit_id":"8a19dc60db9b992aa2da0b00d0fca6fdd2165fbb"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"cee8ad224d018df2dd6099820a41540495ebe122","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"class ReassociateIP(AssociateIP):"},{"line_number":131,"context_line":"    name \u003d \"reassociate\""},{"line_number":132,"context_line":"    verbose_name \u003d _(\"Reassociate\")"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def allowed(self, request, fip):"},{"line_number":135,"context_line":"        if api.base.is_service_enabled(request, \"network\"):"}],"source_content_type":"text/x-python","patch_set":11,"id":"dab17558_609daa09","line":132,"updated":"2016-05-10 21:58:12.000000000","message":"add icon for the button?","commit_id":"cc8d8e950a79efd0e8b35e5b6024b76842d34ee4"},{"author":{"_account_id":16411,"name":"xiaoyuan lu","email":"xyuanlu@gmail.com","username":"xyuanlu"},"change_message_id":"5c1a1272b79e61a7a9e234040b3844eedc2d9889","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"class ReassociateIP(AssociateIP):"},{"line_number":131,"context_line":"    name \u003d \"reassociate\""},{"line_number":132,"context_line":"    verbose_name \u003d _(\"Reassociate\")"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def allowed(self, request, fip):"},{"line_number":135,"context_line":"        if api.base.is_service_enabled(request, \"network\"):"}],"source_content_type":"text/x-python","patch_set":11,"id":"dab17558_9d0279b2","line":132,"in_reply_to":"dab17558_609daa09","updated":"2016-05-12 21:36:51.000000000","message":"The \"reassociate\" option forms an action list with \"disassociate\" option. As the action list for each instance in the instance page.","commit_id":"cc8d8e950a79efd0e8b35e5b6024b76842d34ee4"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"fd147204f1574e08673e6f6b55a7f6f5763c8c06","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            policy \u003d ((\"network\", \"update_floatingip\"),)"},{"line_number":137,"context_line":"        else:"},{"line_number":138,"context_line":"            policy \u003d ((\"compute\", \"compute_extension:floating_ips\"),"},{"line_number":139,"context_line":"                      (\"compute\", \"network:disassociate_floating_ip\"),)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        return fip.port_id and POLICY_CHECK(policy, request)"},{"line_number":142,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"dab17558_f402a071","line":139,"updated":"2016-05-12 13:32:12.000000000","message":"we could use super(ReassociateIP, self). allowed(request, fip) here(DRY)","commit_id":"73c84f6f13603f6d53c03ce0754d290110bce147"},{"author":{"_account_id":16411,"name":"xiaoyuan lu","email":"xyuanlu@gmail.com","username":"xyuanlu"},"change_message_id":"dcbb91b24bc87cf76d4aa2b04fc626649ed9f0b3","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            policy \u003d ((\"network\", \"update_floatingip\"),)"},{"line_number":137,"context_line":"        else:"},{"line_number":138,"context_line":"            policy \u003d ((\"compute\", \"compute_extension:floating_ips\"),"},{"line_number":139,"context_line":"                      (\"compute\", \"network:disassociate_floating_ip\"),)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        return fip.port_id and POLICY_CHECK(policy, request)"},{"line_number":142,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"dab17558_be861b11","line":139,"in_reply_to":"dab17558_f402a071","updated":"2016-05-12 22:43:55.000000000","message":"Please correct me if I missed anything. \nThe allowed function in \u0027Associate\u0027 class checks if user can access floating_ip and associate_fip apis. The function is slightly different in \u0027Reassociate\u0027 class, it checks floating_ip api access and disassociate_fip api. \nIn order to use super function, we might need to add a new variable to indicate whether we are checking disassociate i the \u0027allow\u0027 function in  \u0027Associate\u0027 class. The default value should be set \"associate\" and pass \"disassociate\" when we call super().allow().\nI think it would be better if we keep the old function as it is. It would be better to have minimal change as possible than change the original function in order to obtain minimum lines of added code. \nI am open to discussion.","commit_id":"73c84f6f13603f6d53c03ce0754d290110bce147"},{"author":{"_account_id":14151,"name":"ziyu032","email":"chen.qiaomin@99cloud.net","username":"ziyu032"},"change_message_id":"64138d8e7a72323f1a054fa6f52150034633b6d5","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class ReleaseIPs(tables.BatchAction):"},{"line_number":73,"context_line":"    name \u003d \"release\""},{"line_number":74,"context_line":"    classes \u003d (\u0027btn-danger\u0027,)"},{"line_number":75,"context_line":"    icon \u003d \"unlink\""},{"line_number":76,"context_line":"    help_text \u003d _(\"Once a floating IP is released, there is\""},{"line_number":77,"context_line":"                  \" no guarantee the same IP can be allocated again.\")"}],"source_content_type":"text/x-python","patch_set":17,"id":"bab6814e_ead5abb9","line":74,"range":{"start_line":74,"start_character":4,"end_line":74,"end_character":29},"updated":"2016-05-18 06:26:44.000000000","message":"There should use \u0027 action_type \u003d \"danger\"\u0027, That\u0027s why the confirm modal missing","commit_id":"88f6f66ec45d2b64ce54cc036496f4bd57aeacc6"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"71215663ba9c2e725260e37f27b78f58df0d239a","unresolved":false,"context_lines":[{"line_number":165,"context_line":"            LOG.info(\u0027Disassociating Floating IP \"%s\".\u0027 % obj_id)"},{"line_number":166,"context_line":"            messages.success(request,"},{"line_number":167,"context_line":"                             _(\u0027Successfully disassociated Floating IP: %s\u0027)"},{"line_number":168,"context_line":"                             % fip.ip.split(\"-\")[0])"},{"line_number":169,"context_line":"        except Exception:"},{"line_number":170,"context_line":"            exceptions.handle(request,"},{"line_number":171,"context_line":"                              _(\u0027Unable to disassociate floating IP.\u0027))"}],"source_content_type":"text/x-python","patch_set":20,"id":"da6895a0_89992022","line":168,"updated":"2016-10-25 13:57:54.000000000","message":"unrelated?","commit_id":"0b51e064af6852e264dd366b279c576153daee82"}],"openstack_dashboard/dashboards/project/access_and_security/floating_ips/tests.py":[{"author":{"_account_id":20509,"name":"Daniel Castellanos","email":"luis.daniel.castellanos@intel.com","username":"lcastell"},"change_message_id":"208698eb630e19eceebd568bc0734b4b35fb0119","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        for it in fip_list:"},{"line_number":56,"context_line":"            if it.fixed_ip:"},{"line_number":57,"context_line":"                self.assertTrue(it.ip + \u0027 - associated\u0027 in choices.values())"},{"line_number":58,"context_line":"            elif not it.fixed_ip:"},{"line_number":59,"context_line":"                self.assertTrue(it.ip + \u0027 - unassociated\u0027 in choices.values())"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @test.create_stubs({api.network: (\u0027floating_ip_target_list\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba0121b8_72bb580f","line":58,"range":{"start_line":58,"start_character":12,"end_line":58,"end_character":32},"updated":"2016-03-28 17:14:49.000000000","message":"should not be enough with an \"else:\" here?","commit_id":"8973c9ec56f2306fe4192a65e9c040e2e7b749c1"},{"author":{"_account_id":20509,"name":"Daniel Castellanos","email":"luis.daniel.castellanos@intel.com","username":"lcastell"},"change_message_id":"208698eb630e19eceebd568bc0734b4b35fb0119","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        for it in fip_list:"},{"line_number":84,"context_line":"            if it.fixed_ip:"},{"line_number":85,"context_line":"                self.assertTrue(it.ip + \u0027 - associated\u0027 in choices.values())"},{"line_number":86,"context_line":"            elif not it.fixed_ip:"},{"line_number":87,"context_line":"                self.assertTrue(it.ip + \u0027 - unassociated\u0027 in choices.values())"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    @test.create_stubs({api.network: (\u0027floating_ip_target_list\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba0121b8_321d6010","line":86,"range":{"start_line":86,"start_character":11,"end_line":86,"end_character":32},"updated":"2016-03-28 17:14:49.000000000","message":"ditto","commit_id":"8973c9ec56f2306fe4192a65e9c040e2e7b749c1"},{"author":{"_account_id":20509,"name":"Daniel Castellanos","email":"luis.daniel.castellanos@intel.com","username":"lcastell"},"change_message_id":"208698eb630e19eceebd568bc0734b4b35fb0119","unresolved":false,"context_lines":[{"line_number":109,"context_line":"        for it in fip_list:"},{"line_number":110,"context_line":"            if it.fixed_ip:"},{"line_number":111,"context_line":"                self.assertTrue(it.ip + \u0027 - associated\u0027 in choices.values())"},{"line_number":112,"context_line":"            elif not it.fixed_ip:"},{"line_number":113,"context_line":"                self.assertTrue(it.ip + \u0027 - unassociated\u0027 in choices.values())"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    @test.create_stubs({api.network: (\u0027floating_ip_associate\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba0121b8_52ce1484","line":112,"range":{"start_line":112,"start_character":12,"end_line":112,"end_character":32},"updated":"2016-03-28 17:14:49.000000000","message":"ditto","commit_id":"8973c9ec56f2306fe4192a65e9c040e2e7b749c1"}],"openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py":[{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"a6df4dc9bd52aeaacbe0231ba53420714938f8d5","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            options.insert(0, (\"\", _(\"Select an IP address\")))"},{"line_number":86,"context_line":"        else:"},{"line_number":87,"context_line":"            options \u003d [(\"\", _(\"No floating IP addresses allocated\"))]"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        return options"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    @memoized.memoized_method"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_1ffb6a7a","side":"PARENT","line":88,"updated":"2016-02-23 09:08:45.000000000","message":"unrelated line.","commit_id":"47e5d8528d4e0ba22de29a23f675a8c27025130b"},{"author":{"_account_id":20509,"name":"Daniel Castellanos","email":"luis.daniel.castellanos@intel.com","username":"lcastell"},"change_message_id":"cc909911ad19e653d789f222aefc94c1b8b57d4d","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    finalize_button_name \u003d _(\"Associate\")"},{"line_number":155,"context_line":"    success_message \u003d _(\u0027IP address %s %sd\u0027)"},{"line_number":156,"context_line":"    failure_message \u003d _(\u0027Unable to %s IP address %s.\u0027)"},{"line_number":157,"context_line":"    #failure_message \u003d _(\u0027Unable to associate IP address %s.\u0027)"},{"line_number":158,"context_line":"    success_url \u003d \"horizon:project:access_and_security:index\""},{"line_number":159,"context_line":"    default_steps \u003d (AssociateIP,)"},{"line_number":160,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba0121b8_7fd7a0ed","line":157,"range":{"start_line":157,"start_character":4,"end_line":157,"end_character":62},"updated":"2016-04-01 22:21:47.000000000","message":"if this line is no longer needed it should be deleted","commit_id":"9bd77c80c5e3fe1a30cd90dbfa1f3255ab9ab542"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"cee8ad224d018df2dd6099820a41540495ebe122","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            exceptions.handle(self.request,"},{"line_number":86,"context_line":"                              _(\u0027Unable to retrieve floating IP addresses.\u0027),"},{"line_number":87,"context_line":"                              redirect\u003dredirect)"},{"line_number":88,"context_line":"        options_unused \u003d sorted([(ip.id, ip.ip + \u0027 - unassociated\u0027)"},{"line_number":89,"context_line":"                                for ip in ips if not ip.port_id])"},{"line_number":90,"context_line":"        options_used \u003d sorted([(ip.id, ip.ip + \u0027 - associated\u0027)"},{"line_number":91,"context_line":"                              for ip in ips if ip.port_id])"}],"source_content_type":"text/x-python","patch_set":11,"id":"dab17558_e07fdaa8","line":88,"updated":"2016-05-10 21:58:12.000000000","message":"\u0027 - unassociated\u0027 make this this translatable","commit_id":"cc8d8e950a79efd0e8b35e5b6024b76842d34ee4"},{"author":{"_account_id":16411,"name":"xiaoyuan lu","email":"xyuanlu@gmail.com","username":"xyuanlu"},"change_message_id":"5c1a1272b79e61a7a9e234040b3844eedc2d9889","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            exceptions.handle(self.request,"},{"line_number":86,"context_line":"                              _(\u0027Unable to retrieve floating IP addresses.\u0027),"},{"line_number":87,"context_line":"                              redirect\u003dredirect)"},{"line_number":88,"context_line":"        options_unused \u003d sorted([(ip.id, ip.ip + \u0027 - unassociated\u0027)"},{"line_number":89,"context_line":"                                for ip in ips if not ip.port_id])"},{"line_number":90,"context_line":"        options_used \u003d sorted([(ip.id, ip.ip + \u0027 - associated\u0027)"},{"line_number":91,"context_line":"                              for ip in ips if ip.port_id])"}],"source_content_type":"text/x-python","patch_set":11,"id":"dab17558_7dfd15b0","line":88,"in_reply_to":"dab17558_e07fdaa8","updated":"2016-05-12 21:36:51.000000000","message":"Done","commit_id":"cc8d8e950a79efd0e8b35e5b6024b76842d34ee4"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"cee8ad224d018df2dd6099820a41540495ebe122","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                              redirect\u003dredirect)"},{"line_number":88,"context_line":"        options_unused \u003d sorted([(ip.id, ip.ip + \u0027 - unassociated\u0027)"},{"line_number":89,"context_line":"                                for ip in ips if not ip.port_id])"},{"line_number":90,"context_line":"        options_used \u003d sorted([(ip.id, ip.ip + \u0027 - associated\u0027)"},{"line_number":91,"context_line":"                              for ip in ips if ip.port_id])"},{"line_number":92,"context_line":"        options \u003d options_unused + options_used"},{"line_number":93,"context_line":"        if options:"}],"source_content_type":"text/x-python","patch_set":11,"id":"dab17558_204c429d","line":90,"range":{"start_line":90,"start_character":47,"end_line":90,"end_character":48},"updated":"2016-05-10 21:58:12.000000000","message":"here too","commit_id":"cc8d8e950a79efd0e8b35e5b6024b76842d34ee4"},{"author":{"_account_id":16411,"name":"xiaoyuan lu","email":"xyuanlu@gmail.com","username":"xyuanlu"},"change_message_id":"5c1a1272b79e61a7a9e234040b3844eedc2d9889","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                              redirect\u003dredirect)"},{"line_number":88,"context_line":"        options_unused \u003d sorted([(ip.id, ip.ip + \u0027 - unassociated\u0027)"},{"line_number":89,"context_line":"                                for ip in ips if not ip.port_id])"},{"line_number":90,"context_line":"        options_used \u003d sorted([(ip.id, ip.ip + \u0027 - associated\u0027)"},{"line_number":91,"context_line":"                              for ip in ips if ip.port_id])"},{"line_number":92,"context_line":"        options \u003d options_unused + options_used"},{"line_number":93,"context_line":"        if options:"}],"source_content_type":"text/x-python","patch_set":11,"id":"dab17558_dd2ec141","line":90,"range":{"start_line":90,"start_character":47,"end_line":90,"end_character":48},"in_reply_to":"dab17558_204c429d","updated":"2016-05-12 21:36:51.000000000","message":"Done","commit_id":"cc8d8e950a79efd0e8b35e5b6024b76842d34ee4"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"cee8ad224d018df2dd6099820a41540495ebe122","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                                   ).split(\"-\")"},{"line_number":163,"context_line":"        reassociate_label \u003d \u0027associate\u0027"},{"line_number":164,"context_line":"        if(len(ip_addr) \u003e 1):"},{"line_number":165,"context_line":"            if (ip_addr[1] \u003d\u003d \u0027 associated\u0027):"},{"line_number":166,"context_line":"                reassociate_label \u003d \u0027reassociate\u0027"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        if \"%(ip)s\" in message:"}],"source_content_type":"text/x-python","patch_set":11,"id":"dab17558_94157341","line":165,"range":{"start_line":165,"start_character":30,"end_line":165,"end_character":31},"updated":"2016-05-10 21:58:12.000000000","message":"don\u0027t think depending on the label is the right approach, this is probably a better way to do this","commit_id":"cc8d8e950a79efd0e8b35e5b6024b76842d34ee4"},{"author":{"_account_id":16411,"name":"xiaoyuan lu","email":"xyuanlu@gmail.com","username":"xyuanlu"},"change_message_id":"5c1a1272b79e61a7a9e234040b3844eedc2d9889","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                                   ).split(\"-\")"},{"line_number":163,"context_line":"        reassociate_label \u003d \u0027associate\u0027"},{"line_number":164,"context_line":"        if(len(ip_addr) \u003e 1):"},{"line_number":165,"context_line":"            if (ip_addr[1] \u003d\u003d \u0027 associated\u0027):"},{"line_number":166,"context_line":"                reassociate_label \u003d \u0027reassociate\u0027"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        if \"%(ip)s\" in message:"}],"source_content_type":"text/x-python","patch_set":11,"id":"dab17558_bd093d97","line":165,"range":{"start_line":165,"start_character":30,"end_line":165,"end_character":31},"in_reply_to":"dab17558_94157341","updated":"2016-05-12 21:36:51.000000000","message":"Please correct me if I missed anything. context dictionary does not have a field indicating whether the current ip address is already been associated or not. To get that information, we need to add a new field when we assemble context. \nI don\u0027t think add a new field is a good approach since the information can be obtained from existing fieds, which will bring duplicate information to Intermediate variables.","commit_id":"cc8d8e950a79efd0e8b35e5b6024b76842d34ee4"}]}
