)]}'
{"openstack_dashboard/dashboards/project/network_topology/templates/network_topology/client_side/_balloon_net.html":[{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"e15045f7eeae5a3b761e09cb3befe6a729629195","unresolved":false,"context_lines":[{"line_number":26,"context_line":"      \u003c/th\u003e"},{"line_number":27,"context_line":"      \u003ctd\u003e[[cidr]]\u003c/td\u003e"},{"line_number":28,"context_line":"      \u003ctd class\u003d\"delete\"\u003e"},{"line_number":29,"context_line":"        [[#allow_delete]]"},{"line_number":30,"context_line":"        \u003cbutton class\u003d\"delete-port btn btn-danger btn-xs\""},{"line_number":31,"context_line":"          data-router-id\u003d\"[[router_id]]\" data-network-id\u003d\"[[network_id]]\""},{"line_number":32,"context_line":"          data-port-id\u003d\"[[id]]\" help_text\u003d\"{% trans \"This action cannot be undone.\" %}\"\u003e"}],"source_content_type":"text/html","patch_set":5,"id":"7f287b81_19d273d3","line":29,"updated":"2017-08-25 05:45:39.000000000","message":"Variable name should be more specific like allow_delete_subnet. Same for the variables on other files.","commit_id":"b6c16bc0e1d61bec0c6ee765390153b46dbaf651"}],"openstack_dashboard/dashboards/project/network_topology/views.py":[{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"e15045f7eeae5a3b761e09cb3befe6a729629195","unresolved":false,"context_lines":[{"line_number":278,"context_line":"        networks \u003d []"},{"line_number":279,"context_line":"        for network in neutron_networks:"},{"line_number":280,"context_line":"            allow_delete \u003d policy.check("},{"line_number":281,"context_line":"                ((\"network\", \"delete_network\"),),"},{"line_number":282,"context_line":"                request,"},{"line_number":283,"context_line":"                target\u003d{\u0027project_id\u0027: getattr(network, \u0027tenant_id\u0027, None)}"},{"line_number":284,"context_line":"            )"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_84183675","line":281,"updated":"2017-08-25 05:45:39.000000000","message":"the policy to check should be delete_subnet.","commit_id":"b6c16bc0e1d61bec0c6ee765390153b46dbaf651"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4a8c5791232512d47990180830738634769121cc","unresolved":false,"context_lines":[{"line_number":278,"context_line":"        networks \u003d []"},{"line_number":279,"context_line":"        for network in neutron_networks:"},{"line_number":280,"context_line":"            allow_delete \u003d policy.check("},{"line_number":281,"context_line":"                ((\"network\", \"delete_network\"),),"},{"line_number":282,"context_line":"                request,"},{"line_number":283,"context_line":"                target\u003d{\u0027project_id\u0027: getattr(network, \u0027tenant_id\u0027, None)}"},{"line_number":284,"context_line":"            )"}],"source_content_type":"text/x-python","patch_set":5,"id":"df87a7cf_716a521a","line":281,"in_reply_to":"7f287b81_5877cb03","updated":"2017-12-11 12:51:56.000000000","message":"delete_subnet policy refers to \u0027network:tenant_id\u0027 field, so you need to pass \u0027network:tenant_id\u0027 at L.283 instead of \u0027project_id\u0027.","commit_id":"b6c16bc0e1d61bec0c6ee765390153b46dbaf651"},{"author":{"_account_id":23382,"name":"Artem Tiumentcev","email":"AITyumentsev.SBT@sberbank.ru","username":"darland"},"change_message_id":"e5ef740da3dfb1124a3933f8b5de01797644c396","unresolved":false,"context_lines":[{"line_number":278,"context_line":"        networks \u003d []"},{"line_number":279,"context_line":"        for network in neutron_networks:"},{"line_number":280,"context_line":"            allow_delete \u003d policy.check("},{"line_number":281,"context_line":"                ((\"network\", \"delete_network\"),),"},{"line_number":282,"context_line":"                request,"},{"line_number":283,"context_line":"                target\u003d{\u0027project_id\u0027: getattr(network, \u0027tenant_id\u0027, None)}"},{"line_number":284,"context_line":"            )"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_5877cb03","line":281,"in_reply_to":"7f287b81_84183675","updated":"2017-08-25 13:20:45.000000000","message":"If I use \u0027delete_subnet\u0027, I got the wrong answer from policy.check for my private network and can\u0027t delete it.\nMay it be right to stay \u0027delete_network\u0027?","commit_id":"b6c16bc0e1d61bec0c6ee765390153b46dbaf651"}],"openstack_dashboard/static/js/horizon.networktopology.js":[{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"9212a655d54d27979ed8e8690ca8878c7d4847ba","unresolved":false,"context_lines":[{"line_number":1003,"context_line":"      if (d instanceof Network) {"},{"line_number":1004,"context_line":"        htmlData.delete_label \u003d gettext(\u0027Delete Network\u0027);"},{"line_number":1005,"context_line":"        if (d.shared){"},{"line_number":1006,"context_line":"          htmlData.shared_net \u003d d.shared;"},{"line_number":1007,"context_line":"        }"},{"line_number":1008,"context_line":"      }"},{"line_number":1009,"context_line":"      htmlData.add_subnet_url \u003d \u0027network/\u0027 + d.id + \u0027/subnet/create\u0027;"}],"source_content_type":"text/javascript","patch_set":2,"id":"9f436f4f_f81cd378","line":1006,"updated":"2017-08-16 02:12:37.000000000","message":"We shouldn\u0027t just disable the action because it\u0027s a shared network. Also, admin users should be able to delete the subnet or network. The check should be done based on the neutron policy.","commit_id":"dce51fe35f857d03b8e2b34c997215cd3e766e92"}]}
