)]}'
{"openstack_dashboard/dashboards/project/images/snapshots/forms.py":[{"author":{"_account_id":14151,"name":"ziyu032","email":"chen.qiaomin@99cloud.net","username":"ziyu032"},"change_message_id":"22a888aff1730097997516a85e074ceabba564e6","unresolved":false,"context_lines":[{"line_number":37,"context_line":"            snapshot \u003d api.nova.snapshot_create(request,"},{"line_number":38,"context_line":"                                                data[\u0027instance_id\u0027],"},{"line_number":39,"context_line":"                                                data[\u0027name\u0027])"},{"line_number":40,"context_line":"            # NOTE(gabriel): This API call is only to display a pretty name."},{"line_number":41,"context_line":"            instance \u003d api.nova.server_get(request, data[\u0027instance_id\u0027])"},{"line_number":42,"context_line":"            vals \u003d {\"name\": data[\u0027name\u0027], \"inst\": instance.name}"},{"line_number":43,"context_line":"            messages.success(request, _(\u0027Snapshot \"%(name)s\" created for \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_eae2472e","side":"PARENT","line":40,"range":{"start_line":40,"start_character":12,"end_line":40,"end_character":76},"updated":"2016-07-07 01:08:35.000000000","message":"Why remove this line, i think it is useful.","commit_id":"ae94c5523041f42e9a0ea18943d89ae1112e4b85"},{"author":{"_account_id":18332,"name":"Ankur","email":"ankur.gupta@intel.com","username":"ankur-gupta-f"},"change_message_id":"29454fbb3b5266ccd1902c3ccb19da420755a81a","unresolved":false,"context_lines":[{"line_number":37,"context_line":"            snapshot \u003d api.nova.snapshot_create(request,"},{"line_number":38,"context_line":"                                                data[\u0027instance_id\u0027],"},{"line_number":39,"context_line":"                                                data[\u0027name\u0027])"},{"line_number":40,"context_line":"            # NOTE(gabriel): This API call is only to display a pretty name."},{"line_number":41,"context_line":"            instance \u003d api.nova.server_get(request, data[\u0027instance_id\u0027])"},{"line_number":42,"context_line":"            vals \u003d {\"name\": data[\u0027name\u0027], \"inst\": instance.name}"},{"line_number":43,"context_line":"            messages.success(request, _(\u0027Snapshot \"%(name)s\" created for \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_51456b15","side":"PARENT","line":40,"range":{"start_line":40,"start_character":12,"end_line":40,"end_character":76},"in_reply_to":"1aa78d24_00e614e8","updated":"2016-07-08 15:04:22.000000000","message":"Alternatively, we could change it so that it shows the instance_id instead of name, making it so there are no API calls at all for Snapshot creation. But its less UX friendly","commit_id":"ae94c5523041f42e9a0ea18943d89ae1112e4b85"},{"author":{"_account_id":18332,"name":"Ankur","email":"ankur.gupta@intel.com","username":"ankur-gupta-f"},"change_message_id":"a883c4460c9af10b15fb5073fcb9f3039cda1509","unresolved":false,"context_lines":[{"line_number":37,"context_line":"            snapshot \u003d api.nova.snapshot_create(request,"},{"line_number":38,"context_line":"                                                data[\u0027instance_id\u0027],"},{"line_number":39,"context_line":"                                                data[\u0027name\u0027])"},{"line_number":40,"context_line":"            # NOTE(gabriel): This API call is only to display a pretty name."},{"line_number":41,"context_line":"            instance \u003d api.nova.server_get(request, data[\u0027instance_id\u0027])"},{"line_number":42,"context_line":"            vals \u003d {\"name\": data[\u0027name\u0027], \"inst\": instance.name}"},{"line_number":43,"context_line":"            messages.success(request, _(\u0027Snapshot \"%(name)s\" created for \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_f8b74f82","side":"PARENT","line":40,"range":{"start_line":40,"start_character":12,"end_line":40,"end_character":76},"in_reply_to":"1aa78d24_eae2472e","updated":"2016-07-07 17:37:27.000000000","message":"Because if we are removing API call from the form, this no longer is an extraneous API call. Meaning we are only going to make a single API call for the entire CreateSnapshot process.","commit_id":"ae94c5523041f42e9a0ea18943d89ae1112e4b85"},{"author":{"_account_id":14151,"name":"ziyu032","email":"chen.qiaomin@99cloud.net","username":"ziyu032"},"change_message_id":"a56b08b0b1b0e8b1dbcb85b7453d3bdfee436549","unresolved":false,"context_lines":[{"line_number":37,"context_line":"            snapshot \u003d api.nova.snapshot_create(request,"},{"line_number":38,"context_line":"                                                data[\u0027instance_id\u0027],"},{"line_number":39,"context_line":"                                                data[\u0027name\u0027])"},{"line_number":40,"context_line":"            # NOTE(gabriel): This API call is only to display a pretty name."},{"line_number":41,"context_line":"            instance \u003d api.nova.server_get(request, data[\u0027instance_id\u0027])"},{"line_number":42,"context_line":"            vals \u003d {\"name\": data[\u0027name\u0027], \"inst\": instance.name}"},{"line_number":43,"context_line":"            messages.success(request, _(\u0027Snapshot \"%(name)s\" created for \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_00e614e8","side":"PARENT","line":40,"range":{"start_line":40,"start_character":12,"end_line":40,"end_character":76},"in_reply_to":"1aa78d24_f8b74f82","updated":"2016-07-08 00:13:28.000000000","message":"But this api call is just for getting the instance name. Because the instance_id is a parameter and need not api to get it.","commit_id":"ae94c5523041f42e9a0ea18943d89ae1112e4b85"}],"openstack_dashboard/dashboards/project/images/snapshots/tests.py":[{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"20a77eb30f5498a50ecb7521c422757055773174","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        url \u003d reverse(\u0027horizon:project:images:snapshots:create\u0027,"},{"line_number":52,"context_line":"                      args\u003d[server.id])"},{"line_number":53,"context_line":"        res \u003d self.client.get(url)"},{"line_number":54,"context_line":"        redirect \u003d reverse(\"horizon:project:instances:index\")"},{"line_number":55,"context_line":"        self.assertRedirectsNoFollow(res, redirect)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_create_snapshot_post(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_e219b489","side":"PARENT","line":54,"updated":"2016-07-06 13:11:39.000000000","message":"I\u0027m not sure if we really should delete this test just because it seems impossible to get here an exception.","commit_id":"ae94c5523041f42e9a0ea18943d89ae1112e4b85"},{"author":{"_account_id":22165,"name":"caoyuan","email":"cao.yingjunz@gmail.com","username":"caoyuan"},"change_message_id":"984f4557b7710b337f5433a4c3629c324719178d","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        url \u003d reverse(\u0027horizon:project:images:snapshots:create\u0027,"},{"line_number":52,"context_line":"                      args\u003d[server.id])"},{"line_number":53,"context_line":"        res \u003d self.client.get(url)"},{"line_number":54,"context_line":"        redirect \u003d reverse(\"horizon:project:instances:index\")"},{"line_number":55,"context_line":"        self.assertRedirectsNoFollow(res, redirect)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_create_snapshot_post(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_215d7147","side":"PARENT","line":54,"in_reply_to":"1aa78d24_e219b489","updated":"2016-07-06 15:40:16.000000000","message":"+1","commit_id":"ae94c5523041f42e9a0ea18943d89ae1112e4b85"}],"openstack_dashboard/dashboards/project/images/snapshots/views.py":[{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"20a77eb30f5498a50ecb7521c422757055773174","unresolved":false,"context_lines":[{"line_number":51,"context_line":"                                       self.kwargs[\"instance_id\"])"},{"line_number":52,"context_line":"        except Exception:"},{"line_number":53,"context_line":"            redirect \u003d reverse(\u0027horizon:project:instances:index\u0027)"},{"line_number":54,"context_line":"            exceptions.handle(self.request,"},{"line_number":55,"context_line":"                              _(\"Unable to retrieve instance.\"),"},{"line_number":56,"context_line":"                              redirect\u003dredirect)"},{"line_number":57,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_a56056d0","side":"PARENT","line":54,"updated":"2016-07-06 13:11:39.000000000","message":"Getting rid of redundant api calls is really great but it would be nice to know where the id is passed. Is there any ways that view has no id? In that case we could get an error or exception.","commit_id":"ae94c5523041f42e9a0ea18943d89ae1112e4b85"}]}
