)]}'
{"openstack_dashboard/dashboards/project/snapshots/tables.py":[{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"965f5900191a34a17b9fbedec46f9f8cd48abfac","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    def get_link_url(self, datum):"},{"line_number":114,"context_line":"        params \u003d urlencode({\"success_url\": self.table.get_full_url()})"},{"line_number":115,"context_line":"        snapshot_id \u003d self.table.get_object_id(datum)"},{"line_number":116,"context_line":"        return \"?\".join([reverse(self.url, args\u003d(snapshot_id,)), params])"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"class CreateVolumeFromSnapshot(tables.LinkAction):"}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_deafe627","line":116,"updated":"2017-07-27 12:46:28.000000000","message":"How well will this work when self.url alrady contains a \"?\"?","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"8f4cdaa0859995e6bea9f48b4d73b2bc27825b77","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    def get_link_url(self, datum):"},{"line_number":114,"context_line":"        params \u003d urlencode({\"success_url\": self.table.get_full_url()})"},{"line_number":115,"context_line":"        snapshot_id \u003d self.table.get_object_id(datum)"},{"line_number":116,"context_line":"        return \"?\".join([reverse(self.url, args\u003d(snapshot_id,)), params])"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"class CreateVolumeFromSnapshot(tables.LinkAction):"}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_7990144b","line":116,"in_reply_to":"ff346bd7_d95140db","updated":"2017-07-27 13:08:57.000000000","message":"The problem is that django is doing its stuff first, and then we tack the \"?\" at the end without checking if there already is one...\n\nI\u0027m probably just panicking for no reason here.","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"a787e8a070db5cd81e461da28a963b1f51ffe912","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    def get_link_url(self, datum):"},{"line_number":114,"context_line":"        params \u003d urlencode({\"success_url\": self.table.get_full_url()})"},{"line_number":115,"context_line":"        snapshot_id \u003d self.table.get_object_id(datum)"},{"line_number":116,"context_line":"        return \"?\".join([reverse(self.url, args\u003d(snapshot_id,)), params])"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"class CreateVolumeFromSnapshot(tables.LinkAction):"}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_d95140db","line":116,"in_reply_to":"ff346bd7_deafe627","updated":"2017-07-27 13:03:25.000000000","message":"As in the urls.py, we use this all over Horizon. I dont know if there\u0027s situation where it would have other params, and if it did I would expect it to \u0027\u0026\u0027 them by checking for existing params, not just append \u0027?\u0027.","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"}],"openstack_dashboard/dashboards/project/volumes/tables.py":[{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"965f5900191a34a17b9fbedec46f9f8cd48abfac","unresolved":false,"context_lines":[{"line_number":34,"context_line":"from openstack_dashboard.api import cinder"},{"line_number":35,"context_line":"from openstack_dashboard import policy"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"DELETABLE_STATES \u003d (\"available\", \"error\", \"error_extending\")"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_3e32725f","side":"PARENT","line":37,"updated":"2017-07-27 12:46:28.000000000","message":"I believe we need two empty lines between the imports and the code.\n\nI wonder why pep8 didn\u0027t catch this.","commit_id":"2b78015405233ba680909c15fc6fe548a144e536"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"a787e8a070db5cd81e461da28a963b1f51ffe912","unresolved":false,"context_lines":[{"line_number":34,"context_line":"from openstack_dashboard.api import cinder"},{"line_number":35,"context_line":"from openstack_dashboard import policy"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"DELETABLE_STATES \u003d (\"available\", \"error\", \"error_extending\")"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_99d3b860","side":"PARENT","line":37,"in_reply_to":"ff346bd7_3e32725f","updated":"2017-07-27 13:03:25.000000000","message":"I thought it was just 2 empty lines before the class definitions. It might be picking up that \"constant\" as part of the imports or something.","commit_id":"2b78015405233ba680909c15fc6fe548a144e536"}],"openstack_dashboard/dashboards/project/volumes/tabs.py":[{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"965f5900191a34a17b9fbedec46f9f8cd48abfac","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                                \"volume %s.\") % volume_id)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        for snapshot in snapshots:"},{"line_number":53,"context_line":"            setattr(snapshot, \u0027_volume\u0027, volume)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        return snapshots"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_9e1b9ec8","line":53,"updated":"2017-07-27 12:46:28.000000000","message":"I think you can just write snapshot._volume \u003d volume — no point in using settattr when the attribute name is known.","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"8f4cdaa0859995e6bea9f48b4d73b2bc27825b77","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                                \"volume %s.\") % volume_id)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        for snapshot in snapshots:"},{"line_number":53,"context_line":"            setattr(snapshot, \u0027_volume\u0027, volume)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        return snapshots"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_79c2545b","line":53,"in_reply_to":"ff346bd7_19c7c898","updated":"2017-07-27 13:08:57.000000000","message":"Not sure what you mean, setattr and . do exactly the same thing, both create the attribute if it\u0027s not set.","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"a787e8a070db5cd81e461da28a963b1f51ffe912","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                                \"volume %s.\") % volume_id)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        for snapshot in snapshots:"},{"line_number":53,"context_line":"            setattr(snapshot, \u0027_volume\u0027, volume)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        return snapshots"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_19c7c898","line":53,"in_reply_to":"ff346bd7_9e1b9ec8","updated":"2017-07-27 13:03:25.000000000","message":"I\u0027m assuming this is to handle volume not being set, as its done as part of a try / except.","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"}],"openstack_dashboard/dashboards/project/volumes/urls.py":[{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"965f5900191a34a17b9fbedec46f9f8cd48abfac","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/$\u0027,"},{"line_number":46,"context_line":"        views.DetailView.as_view(),"},{"line_number":47,"context_line":"        name\u003d\u0027detail\u0027),"},{"line_number":48,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/\\?tab\u003dvolume_details__snapshots_tab$\u0027,"},{"line_number":49,"context_line":"        views.DetailView.as_view(),"},{"line_number":50,"context_line":"        name\u003d\u0027snapshots_tab\u0027),"},{"line_number":51,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/upload_to_image/$\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_fe774ad3","line":48,"updated":"2017-07-27 12:46:28.000000000","message":"What happens when Django adds its own \"?\" and some parameters to that url?","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"8f4cdaa0859995e6bea9f48b4d73b2bc27825b77","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/$\u0027,"},{"line_number":46,"context_line":"        views.DetailView.as_view(),"},{"line_number":47,"context_line":"        name\u003d\u0027detail\u0027),"},{"line_number":48,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/\\?tab\u003dvolume_details__snapshots_tab$\u0027,"},{"line_number":49,"context_line":"        views.DetailView.as_view(),"},{"line_number":50,"context_line":"        name\u003d\u0027snapshots_tab\u0027),"},{"line_number":51,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/upload_to_image/$\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_19d10824","line":48,"in_reply_to":"ff346bd7_593e708b","updated":"2017-07-27 13:08:57.000000000","message":"For instance when we add filtering to that view.","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"a787e8a070db5cd81e461da28a963b1f51ffe912","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/$\u0027,"},{"line_number":46,"context_line":"        views.DetailView.as_view(),"},{"line_number":47,"context_line":"        name\u003d\u0027detail\u0027),"},{"line_number":48,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/\\?tab\u003dvolume_details__snapshots_tab$\u0027,"},{"line_number":49,"context_line":"        views.DetailView.as_view(),"},{"line_number":50,"context_line":"        name\u003d\u0027snapshots_tab\u0027),"},{"line_number":51,"context_line":"    url(r\u0027^(?P\u003cvolume_id\u003e[^/]+)/upload_to_image/$\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"ff346bd7_593e708b","line":48,"in_reply_to":"ff346bd7_fe774ad3","updated":"2017-07-27 13:03:25.000000000","message":"...magic? This URL pattern is used all over Horizon. I\u0027m not sure when it would have parameters passed to it.","commit_id":"75a73afd55335e1c32de057177c938615a4495a8"}],"openstack_dashboard/dashboards/project/volumes/volumes/tabs.py":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"614ef01215dd20205b638f34d13daf21564d0e62","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    preload \u003d False"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def get_volume_snapshots_data(self):"},{"line_number":43,"context_line":"        if api.base.is_service_enabled(self.request, \u0027volume\u0027):"},{"line_number":44,"context_line":"            volume_id \u003d self.tab_group.kwargs[\u0027volume_id\u0027]"},{"line_number":45,"context_line":"            try:"},{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_d88d957c","line":43,"updated":"2016-01-20 23:20:12.000000000","message":"Is this check necessary?  I think we don\u0027t show the Volumes tab at all if the volume service isn\u0027t enabled.","commit_id":"5e53906e9504fa5958ae70d8a6aacae94ac5da8d"},{"author":{"_account_id":16769,"name":"Lucas Palm","email":"lapalm@us.ibm.com","username":"lucaspalm"},"change_message_id":"f099675e99be0e49cdbafbaaad76ccd38811fc11","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    preload \u003d False"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def get_volume_snapshots_data(self):"},{"line_number":43,"context_line":"        if api.base.is_service_enabled(self.request, \u0027volume\u0027):"},{"line_number":44,"context_line":"            volume_id \u003d self.tab_group.kwargs[\u0027volume_id\u0027]"},{"line_number":45,"context_line":"            try:"},{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_b10d3b40","line":43,"in_reply_to":"9a68dd71_d88d957c","updated":"2016-01-21 20:04:50.000000000","message":"You might be right...  I am just following what was previously done on the Volume table page here: https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/volumes/tabs.py#L106","commit_id":"5e53906e9504fa5958ae70d8a6aacae94ac5da8d"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"614ef01215dd20205b638f34d13daf21564d0e62","unresolved":false,"context_lines":[{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"},{"line_number":47,"context_line":"                snapshots \u003d [snapshot for snapshot in snapshots"},{"line_number":48,"context_line":"                             if snapshot.volume_id \u003d\u003d volume_id]"},{"line_number":49,"context_line":"                volumes \u003d api.cinder.volume_list(self.request)"},{"line_number":50,"context_line":"                volumes \u003d dict((v.id, v) for v in volumes)"},{"line_number":51,"context_line":"            except Exception:"},{"line_number":52,"context_line":"                snapshots \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_b8fc613f","line":49,"updated":"2016-01-20 23:20:12.000000000","message":"Can\u0027t we do a get on the single volume_id here instead of getting the whole list?  If I understand this correctly, the snapshots we\u0027re dealing with all apply to the same volume.","commit_id":"5e53906e9504fa5958ae70d8a6aacae94ac5da8d"},{"author":{"_account_id":16769,"name":"Lucas Palm","email":"lapalm@us.ibm.com","username":"lucaspalm"},"change_message_id":"f099675e99be0e49cdbafbaaad76ccd38811fc11","unresolved":false,"context_lines":[{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"},{"line_number":47,"context_line":"                snapshots \u003d [snapshot for snapshot in snapshots"},{"line_number":48,"context_line":"                             if snapshot.volume_id \u003d\u003d volume_id]"},{"line_number":49,"context_line":"                volumes \u003d api.cinder.volume_list(self.request)"},{"line_number":50,"context_line":"                volumes \u003d dict((v.id, v) for v in volumes)"},{"line_number":51,"context_line":"            except Exception:"},{"line_number":52,"context_line":"                snapshots \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_91e1179d","line":49,"in_reply_to":"9a68dd71_b8fc613f","updated":"2016-01-21 20:04:50.000000000","message":"Done","commit_id":"5e53906e9504fa5958ae70d8a6aacae94ac5da8d"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"614ef01215dd20205b638f34d13daf21564d0e62","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":"class VolumeDetailTabs(tabs.TabGroup):"},{"line_number":68,"context_line":"    slug \u003d \"volume_details\""},{"line_number":69,"context_line":"    tabs \u003d (OverviewTab, SnapshotTab)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_38cab1a2","line":69,"updated":"2016-01-20 23:20:12.000000000","message":"(nit) Include a comma after \"SnapshotTab\", just to be consistent with other tabs.py files.","commit_id":"5e53906e9504fa5958ae70d8a6aacae94ac5da8d"},{"author":{"_account_id":16769,"name":"Lucas Palm","email":"lapalm@us.ibm.com","username":"lucaspalm"},"change_message_id":"f099675e99be0e49cdbafbaaad76ccd38811fc11","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":"class VolumeDetailTabs(tabs.TabGroup):"},{"line_number":68,"context_line":"    slug \u003d \"volume_details\""},{"line_number":69,"context_line":"    tabs \u003d (OverviewTab, SnapshotTab)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_51f2bf70","line":69,"in_reply_to":"9a68dd71_38cab1a2","updated":"2016-01-21 20:04:50.000000000","message":"Done","commit_id":"5e53906e9504fa5958ae70d8a6aacae94ac5da8d"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"dcdd6a7819495e74de2bd63c35aefc99acbac4aa","unresolved":false,"context_lines":[{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"},{"line_number":47,"context_line":"                snapshots \u003d [snapshot for snapshot in snapshots"},{"line_number":48,"context_line":"                             if snapshot.volume_id \u003d\u003d volume_id]"},{"line_number":49,"context_line":"                volume \u003d api.cinder.volume_get(self.request, volume_id)"},{"line_number":50,"context_line":"            except Exception:"},{"line_number":51,"context_line":"                snapshots \u003d []"},{"line_number":52,"context_line":"                exceptions.handle(self.request, _(\"Unable to retrieve \""}],"source_content_type":"text/x-python","patch_set":2,"id":"9a68dd71_bfa2cbac","line":49,"updated":"2016-01-21 22:49:58.000000000","message":"Looking at the unit test reminded me that we\u0027re calling volume_get twice to load this tab.  Would it be possible to get the other volume data needed without this second call?  I\u0027m not sure if the other data is available, since we might only be saving off the volume_id in the tab_group arguments.","commit_id":"f7d4f9d87ad251368a6bf180149916f1ba45f3e1"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e7db8017c807d36e990b5f4276a77f931d1a1c9c","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    preload \u003d False"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def get_volume_snapshots_data(self):"},{"line_number":43,"context_line":"        if api.base.is_service_enabled(self.request, \u0027volume\u0027):"},{"line_number":44,"context_line":"            volume_id \u003d self.tab_group.kwargs[\u0027volume_id\u0027]"},{"line_number":45,"context_line":"            try:"},{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a68dd71_a1365fb2","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":63},"updated":"2016-01-27 03:14:20.000000000","message":"this check seems unnecessary, as the panel will not show if \u0027volume\u0027 service is not enabled.","commit_id":"2cf6aa97f83eb9dc0050c5adbf4237c9ae347ab6"},{"author":{"_account_id":16769,"name":"Lucas Palm","email":"lapalm@us.ibm.com","username":"lucaspalm"},"change_message_id":"e039cacfbd51d1013fdc3c803d13b80180663156","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    preload \u003d False"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def get_volume_snapshots_data(self):"},{"line_number":43,"context_line":"        if api.base.is_service_enabled(self.request, \u0027volume\u0027):"},{"line_number":44,"context_line":"            volume_id \u003d self.tab_group.kwargs[\u0027volume_id\u0027]"},{"line_number":45,"context_line":"            try:"},{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a5de9d1_ae10a94f","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":63},"in_reply_to":"9a68dd71_a1365fb2","updated":"2016-01-27 16:16:30.000000000","message":"Done","commit_id":"2cf6aa97f83eb9dc0050c5adbf4237c9ae347ab6"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e5064fad1c6cf5fa4240f705dba96b88ce5f769b","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    preload \u003d False"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def get_volume_snapshots_data(self):"},{"line_number":43,"context_line":"        if api.base.is_service_enabled(self.request, \u0027volume\u0027):"},{"line_number":44,"context_line":"            volume_id \u003d self.tab_group.kwargs[\u0027volume_id\u0027]"},{"line_number":45,"context_line":"            try:"},{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a68dd71_72afd394","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":63},"in_reply_to":"9a68dd71_a1365fb2","updated":"2016-01-27 05:30:35.000000000","message":"and I pushed a patch to clean up another check like this: https://review.openstack.org/#/c/272907/","commit_id":"2cf6aa97f83eb9dc0050c5adbf4237c9ae347ab6"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e7db8017c807d36e990b5f4276a77f931d1a1c9c","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        if api.base.is_service_enabled(self.request, \u0027volume\u0027):"},{"line_number":44,"context_line":"            volume_id \u003d self.tab_group.kwargs[\u0027volume_id\u0027]"},{"line_number":45,"context_line":"            try:"},{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"},{"line_number":47,"context_line":"                snapshots \u003d [snapshot for snapshot in snapshots"},{"line_number":48,"context_line":"                             if snapshot.volume_id \u003d\u003d volume_id]"},{"line_number":49,"context_line":"                volume \u003d api.cinder.volume_get(self.request, volume_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a68dd71_c193534e","line":46,"range":{"start_line":46,"start_character":16,"end_line":46,"end_character":73},"updated":"2016-01-27 03:14:20.000000000","message":"cinder support specify a search option when listing snapshots, and the allowed options contains \u0027volume_id\u0027, https://github.com/openstack/cinder/blob/master/cinder/api/v2/snapshots.py#L121","commit_id":"2cf6aa97f83eb9dc0050c5adbf4237c9ae347ab6"},{"author":{"_account_id":16769,"name":"Lucas Palm","email":"lapalm@us.ibm.com","username":"lucaspalm"},"change_message_id":"e039cacfbd51d1013fdc3c803d13b80180663156","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        if api.base.is_service_enabled(self.request, \u0027volume\u0027):"},{"line_number":44,"context_line":"            volume_id \u003d self.tab_group.kwargs[\u0027volume_id\u0027]"},{"line_number":45,"context_line":"            try:"},{"line_number":46,"context_line":"                snapshots \u003d api.cinder.volume_snapshot_list(self.request)"},{"line_number":47,"context_line":"                snapshots \u003d [snapshot for snapshot in snapshots"},{"line_number":48,"context_line":"                             if snapshot.volume_id \u003d\u003d volume_id]"},{"line_number":49,"context_line":"                volume \u003d api.cinder.volume_get(self.request, volume_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a5de9d1_4e1d7565","line":46,"range":{"start_line":46,"start_character":16,"end_line":46,"end_character":73},"in_reply_to":"9a68dd71_c193534e","updated":"2016-01-27 16:16:30.000000000","message":"Done","commit_id":"2cf6aa97f83eb9dc0050c5adbf4237c9ae347ab6"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"32696ef4da1692bb70b72cd938f3fabe80203d60","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"from django.utils.translation import ugettext_lazy as _"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from openstack_dashboard import api"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from horizon import exceptions"},{"line_number":20,"context_line":"from horizon import tabs"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a5de9d1_4a18ec84","line":17,"updated":"2016-01-28 02:02:06.000000000","message":"nit: It is better to be sorted import by alphabetical order.","commit_id":"d4422551dfddef63f491399568aa297dcaa3de4d"},{"author":{"_account_id":16769,"name":"Lucas Palm","email":"lapalm@us.ibm.com","username":"lucaspalm"},"change_message_id":"64f8cba1bc4859673277019593aff00988538535","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"from django.utils.translation import ugettext_lazy as _"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from openstack_dashboard import api"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from horizon import exceptions"},{"line_number":20,"context_line":"from horizon import tabs"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a5de9d1_a972ae47","line":17,"in_reply_to":"7a5de9d1_4a18ec84","updated":"2016-01-28 15:49:58.000000000","message":"Done","commit_id":"d4422551dfddef63f491399568aa297dcaa3de4d"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"32696ef4da1692bb70b72cd938f3fabe80203d60","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class SnapshotTab(tabs.TableTab):"},{"line_number":36,"context_line":"    table_classes \u003d (vol_snapshot_tables.VolumeSnapshotsTable,)"},{"line_number":37,"context_line":"    name \u003d _(\"Snapshots\")"},{"line_number":38,"context_line":"    slug \u003d \"volume_detail_snapshots_tab\""},{"line_number":39,"context_line":"    template_name \u003d \"horizon/common/_detail_table.html\""},{"line_number":40,"context_line":"    preload \u003d False"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a5de9d1_8587b560","line":37,"updated":"2016-01-28 02:02:06.000000000","message":"IMO, it is better to use same name as the volume index page.\nIt is \"Volume Snapshots\".","commit_id":"d4422551dfddef63f491399568aa297dcaa3de4d"},{"author":{"_account_id":16769,"name":"Lucas Palm","email":"lapalm@us.ibm.com","username":"lucaspalm"},"change_message_id":"64f8cba1bc4859673277019593aff00988538535","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class SnapshotTab(tabs.TableTab):"},{"line_number":36,"context_line":"    table_classes \u003d (vol_snapshot_tables.VolumeSnapshotsTable,)"},{"line_number":37,"context_line":"    name \u003d _(\"Snapshots\")"},{"line_number":38,"context_line":"    slug \u003d \"volume_detail_snapshots_tab\""},{"line_number":39,"context_line":"    template_name \u003d \"horizon/common/_detail_table.html\""},{"line_number":40,"context_line":"    preload \u003d False"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a5de9d1_fc6143a9","line":37,"in_reply_to":"7a5de9d1_8587b560","updated":"2016-01-28 15:49:58.000000000","message":"I disagree.  It is not like we are going to name the \"Overview\" tab to \"Volume Overview\" as well.  And since that tab will not change, neither should the snapshots tab.  Typically, the index views will have the more descriptive tab names, which is why it is better to have the full \"Volume Snapshots\" name on the volume index page.  But since the details page already implies that you are looking at a particular resource specifically, there is no need to be that descriptive.  If you look at the Instances detail page, for example, the tabs are not \"Instance Overview\", \"Instance Log\", etc.\n\nI hope this makes sense.  Thanks Kenji!!","commit_id":"d4422551dfddef63f491399568aa297dcaa3de4d"}],"openstack_dashboard/dashboards/project/volumes/volumes/tests.py":[{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"7d8c84679c4ae9bbaf0619239aef6170c624e255","unresolved":false,"context_lines":[{"line_number":1275,"context_line":"            IsA(http.HttpRequest),"},{"line_number":1276,"context_line":"            search_opts\u003d{\"volume_id\": volume.id}).AndReturn("},{"line_number":1277,"context_line":"            this_volume_snapshots)"},{"line_number":1278,"context_line":"        cinder.volume_get(IsA(http.HttpRequest), volume.id).AndReturn(volume)"},{"line_number":1279,"context_line":"        cinder.tenant_absolute_limits(IsA(http.HttpRequest))\\"},{"line_number":1280,"context_line":"            .AndReturn(self.cinder_limits[\u0027absolute\u0027])"},{"line_number":1281,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1af94dfe_eae38e03","line":1278,"updated":"2016-03-17 02:18:23.000000000","message":"This stub is duplicated with Line1273","commit_id":"8576937633a239f64130b61e6bd796dcb4f2cec9"},{"author":{"_account_id":6914,"name":"Tatiana Ovchinnikova","email":"t.v.ovtchinnikova@gmail.com","username":"tmazur"},"change_message_id":"4c82c12900053020f666cedc8cb93c04e3792deb","unresolved":false,"context_lines":[{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        self.assertTemplateUsed(res, \u0027horizon/common/_detail.html\u0027)"},{"line_number":1300,"context_line":"        self.assertEqual(res.context[\u0027volume\u0027].id, volume.id)"},{"line_number":1301,"context_line":"        self.assertEqual(len(res.context[\u0027table\u0027].data),"},{"line_number":1302,"context_line":"                         len(this_volume_snapshots))"},{"line_number":1303,"context_line":"        self.assertNoMessages()"},{"line_number":1304,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"3a71b18c_377e596a","line":1301,"updated":"2016-12-12 14:41:39.000000000","message":"In this case it\u0027s \u0027tab_group\u0027, not \u0027table\u0027. That\u0027s why this test keeps failing with KeyError. Something like this should help: \"res.context[\u0027tab_group\u0027].get_tabs()[1].data[\u0027table\u0027].data\" but it\u0027s too ugly. Any shorter versions?","commit_id":"d959d408b29f255f2000a9b4e6da4e3a270aedbe"}]}
