)]}'
{"openstack_dashboard/dashboards/admin/images/tests.py":[{"author":{"_account_id":2455,"name":"Tihomir Trifonov","email":"t.trifonov@gmail.com","username":"ttrifonov"},"change_message_id":"c09fbe38de68eb0e37aca0527495dd0cf74694af","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                        False, False])"},{"line_number":53,"context_line":"        # Test tenant list"},{"line_number":54,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":55,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":56,"context_line":"        self.mox.ReplayAll()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"        res \u003d self.client.get("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_fbc4a241","line":55,"updated":"2015-01-29 10:47:02.000000000","message":"These tests only test for the API call, but don\u0027t check the actual response to contain the new column.","commit_id":"e99d4e6003e554e324b5a3ed5c7c90a3ec358027"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"968b9f37fcd56dad9263aeb380dfddcc8b095a0b","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                        False, False])"},{"line_number":53,"context_line":"        # Test tenant list"},{"line_number":54,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":55,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":56,"context_line":"        self.mox.ReplayAll()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"        res \u003d self.client.get("}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_519b16c9","line":55,"in_reply_to":"fa81d914_0e9d7d0b","updated":"2015-02-01 07:40:14.000000000","message":"Thanks, Tihomir","commit_id":"e99d4e6003e554e324b5a3ed5c7c90a3ec358027"},{"author":{"_account_id":2455,"name":"Tihomir Trifonov","email":"t.trifonov@gmail.com","username":"ttrifonov"},"change_message_id":"c31909845ac439cd172db47d0d851e7026ec6d85","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                        False, False])"},{"line_number":53,"context_line":"        # Test tenant list"},{"line_number":54,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":55,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":56,"context_line":"        self.mox.ReplayAll()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"        res \u003d self.client.get("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_0e9d7d0b","line":55,"in_reply_to":"fa81d914_145cbcec","updated":"2015-01-30 11:18:21.000000000","message":"It doesn\u0027t matter what the original test did or didn\u0027t. In fact the original test was written to check for API calls. Now we want to check for table columns.","commit_id":"e99d4e6003e554e324b5a3ed5c7c90a3ec358027"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"0fe789a8eda14d73e89528c7be31f88e798534de","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                        False, False])"},{"line_number":53,"context_line":"        # Test tenant list"},{"line_number":54,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":55,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":56,"context_line":"        self.mox.ReplayAll()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"        res \u003d self.client.get("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_145cbcec","line":55,"in_reply_to":"fa81d914_fbc4a241","updated":"2015-01-30 03:10:21.000000000","message":"it seems that the original unit test doesn\u0027t test the columns, or i miss something?","commit_id":"e99d4e6003e554e324b5a3ed5c7c90a3ec358027"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"ed8a65d1e3f7e21236fd1fb3b255cf913dfb8f0e","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        res \u003d self.client.get("},{"line_number":59,"context_line":"            reverse(\u0027horizon:admin:images:index\u0027))"},{"line_number":60,"context_line":"        self.assertContains(res, \u0027test_tenant\u0027)"},{"line_number":61,"context_line":"        self.assertTemplateUsed(res, \u0027admin/images/index.html\u0027)"},{"line_number":62,"context_line":"        self.assertEqual(len(res.context[\u0027images_table\u0027].data),"},{"line_number":63,"context_line":"                         len(self.images.list()))"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_e7da114b","line":61,"updated":"2015-02-04 08:08:09.000000000","message":"Should this test for all the expected rows?","commit_id":"1fe45da84415aa631014cc5abef65543391d183f"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"db75d6e747e40ff211b96c3152793f5e8cb981dd","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        res \u003d self.client.get("},{"line_number":59,"context_line":"            reverse(\u0027horizon:admin:images:index\u0027))"},{"line_number":60,"context_line":"        self.assertContains(res, \u0027test_tenant\u0027)"},{"line_number":61,"context_line":"        self.assertTemplateUsed(res, \u0027admin/images/index.html\u0027)"},{"line_number":62,"context_line":"        self.assertEqual(len(res.context[\u0027images_table\u0027].data),"},{"line_number":63,"context_line":"                         len(self.images.list()))"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_2748a986","line":61,"in_reply_to":"da86d52c_e7da114b","updated":"2015-02-04 08:36:49.000000000","message":"the assert tests the res contains tenant info, we don\u0027t test the expected rows.","commit_id":"1fe45da84415aa631014cc5abef65543391d183f"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"e4fd32b05983afdcb6ac39cfe82c3ed1a1824216","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":101,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":102,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":103,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":104,"context_line":"        self.mox.ReplayAll()"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        url \u003d reverse(\u0027horizon:admin:images:index\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5aa745d1_e3e45d0e","line":103,"updated":"2015-04-16 17:32:51.000000000","message":"api.keystone.tenant_list(IsA(http.HttpRequest))\n.MultipleTimes()\n.AndReturn([self.tenants.list(), False])","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5251e6724b164399d18aa1b29dd00cef309a78f7","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":101,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":102,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":103,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":104,"context_line":"        self.mox.ReplayAll()"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        url \u003d reverse(\u0027horizon:admin:images:index\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"1aca2d91_d6ba62c0","line":103,"in_reply_to":"3acd31a7_1cf05966","updated":"2015-05-06 01:53:35.000000000","message":"+1","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":8090,"name":"Chad Roberts","email":"croberts@redhat.com","username":"croberts"},"change_message_id":"2384f8edd2d83b73058c7e5e26487430a89a9881","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":101,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":102,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":103,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":104,"context_line":"        self.mox.ReplayAll()"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        url \u003d reverse(\u0027horizon:admin:images:index\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"3acd31a7_1cf05966","line":103,"in_reply_to":"5aa745d1_e3e45d0e","updated":"2015-05-05 18:46:43.000000000","message":"+1","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"1dfe503f35ec4b1f4603689457428a907516ad09","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":101,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":102,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":103,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":104,"context_line":"        self.mox.ReplayAll()"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        url \u003d reverse(\u0027horizon:admin:images:index\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"7a016987_87c78f11","line":103,"in_reply_to":"5aa745d1_e3e45d0e","updated":"2015-05-28 13:27:51.000000000","message":"Done","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"e4fd32b05983afdcb6ac39cfe82c3ed1a1824216","unresolved":false,"context_lines":[{"line_number":230,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":231,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":232,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":233,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":234,"context_line":"        self.mox.ReplayAll()"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"        url \u003d reverse(\u0027horizon:admin:images:index\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5aa745d1_83d35938","line":233,"updated":"2015-04-16 17:32:51.000000000","message":"api.keystone.tenant_list(IsA(http.HttpRequest))\n.MultipleTimes()\n.AndReturn([self.tenants.list(), False])","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":8090,"name":"Chad Roberts","email":"croberts@redhat.com","username":"croberts"},"change_message_id":"2384f8edd2d83b73058c7e5e26487430a89a9881","unresolved":false,"context_lines":[{"line_number":230,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":231,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":232,"context_line":"        api.keystone.tenant_list(IsA(http.HttpRequest)).\\"},{"line_number":233,"context_line":"            AndReturn([self.tenants.list(), False])"},{"line_number":234,"context_line":"        self.mox.ReplayAll()"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"        url \u003d reverse(\u0027horizon:admin:images:index\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"3acd31a7_9c04694a","line":233,"in_reply_to":"5aa745d1_83d35938","updated":"2015-05-05 18:46:43.000000000","message":"+1","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"}],"openstack_dashboard/dashboards/admin/images/views.py":[{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"e05d2c4e132a93995fab82b19d7a5261f6415c23","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            msg \u003d _(\u0027Unable to retrieve project information.\u0027)"},{"line_number":53,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        tenant_dict \u003d SortedDict([(t.id, t) for t in tenants])"},{"line_number":56,"context_line":"        return tenant_dict"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def has_prev_data(self, table):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_b4252f0b","line":55,"updated":"2015-01-19 01:58:11.000000000","message":"Does it actually need to be sorted? Not sure what the advantage is. If it is necessary, we should use OrderedDict rather then SortedDict now I think, as sorteddict is to be deprecated.","commit_id":"d282c2311502068c0941d443c5f7b12a57cc8d78"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"46f80062955ce59ede5410239afcadb626c544fb","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            msg \u003d _(\u0027Unable to retrieve project information.\u0027)"},{"line_number":53,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        tenant_dict \u003d SortedDict([(t.id, t) for t in tenants])"},{"line_number":56,"context_line":"        return tenant_dict"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def has_prev_data(self, table):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a930d6b_43b173f7","line":55,"in_reply_to":"3a961159_b4252f0b","updated":"2015-01-22 08:53:32.000000000","message":"Done","commit_id":"d282c2311502068c0941d443c5f7b12a57cc8d78"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"92e5ae80116675c54bcbf193d755b073f4d9c09a","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        if images:"},{"line_number":94,"context_line":"            tenant_dict \u003d self._get_tenant_list()"},{"line_number":95,"context_line":"            for im in images:"},{"line_number":96,"context_line":"                tenant \u003d tenant_dict.get(im.owner, None)"},{"line_number":97,"context_line":"                im.tenant_name \u003d getattr(tenant, \u0027name\u0027, None)"},{"line_number":98,"context_line":"        return images"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_9a7f95df","line":96,"updated":"2015-01-27 15:07:23.000000000","message":"None is redundant here - it\u0027s the default.","commit_id":"3cb76d247ab80c2b1adf3ec4bb915b85d5ee1237"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"442b8b744c0f49e0e2a09bc2069d1387dbe45a67","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    table_class \u003d project_tables.AdminImagesTable"},{"line_number":44,"context_line":"    template_name \u003d \u0027admin/images/index.html\u0027"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def _get_tenant_list(self):"},{"line_number":47,"context_line":"        try:"},{"line_number":48,"context_line":"            tenants, has_more \u003d api.keystone.tenant_list(self.request)"},{"line_number":49,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_b8639740","line":46,"updated":"2015-02-05 16:42:36.000000000","message":"looking more closely, this is an exact copy of what\u0027s in admin/networks/views.py\n\nInstead of duplicating code, which is honestly incomplete anyway, let\u0027s pull it out into one common location and reuse it.\n\nBy incomplete, I mean that if the tenant list returns has_more \u003d True, you have a partial list, with no way to get the rest of the list (keystone v3 doesn\u0027t support pagination). So on anything other than small installations this general mechanism is going to fail.\n\nWhat we do have is a project id that we can display and a link action that could send it over to the project details page for that project.\nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/identity/projects/views.py#L209","commit_id":"7fdd21421ccf1b095d0b139a84c346102f073434"},{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"3c54acb1f6f24e0867a87ffb2430996e8c6a8c81","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":85,"context_line":"        if images:"},{"line_number":86,"context_line":"            tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":87,"context_line":"            for im in images:"},{"line_number":88,"context_line":"                tenant \u003d tenant_dict.get(im.owner)"},{"line_number":89,"context_line":"                im.tenant_name \u003d getattr(tenant, \u0027name\u0027, None)"},{"line_number":90,"context_line":"        return images"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_02b34298","line":87,"updated":"2015-02-26 08:45:20.000000000","message":"(nit) `im` should be `image`","commit_id":"2d59d8e1e907917cda44f730766a31cc92c01d4f"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"e4fd32b05983afdcb6ac39cfe82c3ed1a1824216","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":84,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":85,"context_line":"        if images:"},{"line_number":86,"context_line":"            tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":87,"context_line":"            for image in images:"},{"line_number":88,"context_line":"                tenant \u003d tenant_dict.get(image.owner)"},{"line_number":89,"context_line":"                image.tenant_name \u003d getattr(tenant, \u0027name\u0027, None)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5aa745d1_63360d05","line":86,"updated":"2015-04-16 17:32:51.000000000","message":"You could just call the original\n\n tenant_list(self.request) and transform it in place","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"1dfe503f35ec4b1f4603689457428a907516ad09","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":84,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":85,"context_line":"        if images:"},{"line_number":86,"context_line":"            tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":87,"context_line":"            for image in images:"},{"line_number":88,"context_line":"                tenant \u003d tenant_dict.get(image.owner)"},{"line_number":89,"context_line":"                image.tenant_name \u003d getattr(tenant, \u0027name\u0027, None)"}],"source_content_type":"text/x-python","patch_set":13,"id":"7a016987_e73ac333","line":86,"in_reply_to":"3acd31a7_4e917bf0","updated":"2015-05-28 13:27:51.000000000","message":"we will loop tenants while handling every image?","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"5251e6724b164399d18aa1b29dd00cef309a78f7","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":84,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":85,"context_line":"        if images:"},{"line_number":86,"context_line":"            tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":87,"context_line":"            for image in images:"},{"line_number":88,"context_line":"                tenant \u003d tenant_dict.get(image.owner)"},{"line_number":89,"context_line":"                image.tenant_name \u003d getattr(tenant, \u0027name\u0027, None)"}],"source_content_type":"text/x-python","patch_set":13,"id":"1aca2d91_362076f7","line":86,"in_reply_to":"3acd31a7_4e917bf0","updated":"2015-05-06 01:53:35.000000000","message":"yes, seems it\u0027s no need to transform tenants into a dict here.","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"29fdc31808634c646c73cc54bff1496c06f68c04","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":84,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":85,"context_line":"        if images:"},{"line_number":86,"context_line":"            tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":87,"context_line":"            for image in images:"},{"line_number":88,"context_line":"                tenant \u003d tenant_dict.get(image.owner)"},{"line_number":89,"context_line":"                image.tenant_name \u003d getattr(tenant, \u0027name\u0027, None)"}],"source_content_type":"text/x-python","patch_set":13,"id":"3acd31a7_4e917bf0","line":86,"in_reply_to":"5aa745d1_63360d05","updated":"2015-05-05 18:15:22.000000000","message":"You don\u0027t even need to transform the list into a dict, you can simply replace\n\n    tenant \u003d tenant_dict.get(image.owner)\n\nwith\n\n    tenant \u003d next((t for t in tenants if t.id is image.owner), None)","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"872c7ed567f32604141131f93ea297e5c0db8006","unresolved":false,"context_lines":[{"line_number":38,"context_line":"from openstack_dashboard.dashboards.admin.images \\"},{"line_number":39,"context_line":"    import tables as project_tables"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"3afb71cf_4880068b","line":41,"updated":"2015-06-11 13:00:01.000000000","message":"NIT: White space change unrelated to patch.","commit_id":"0559fca0c77625c958a788a27a35ba6f44a426be"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"0a24d4d2f29be2a79af9bd248822327cc71a0233","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants \u003d api.keystone.tenant_list(self.request)[0]"},{"line_number":89,"context_line":"            except Exception:"},{"line_number":90,"context_line":"                tenants \u003d []"},{"line_number":91,"context_line":"                msg \u003d _(\u0027Unable to retrieve project list.\u0027)"}],"source_content_type":"text/x-python","patch_set":16,"id":"1af86dd1_c6d4e448","line":88,"updated":"2015-06-11 21:48:10.000000000","message":"nit:  Would be easier to read if \n\ntenants, more \u003d api.keystone.tenant_list(self.request)\n\naccessing index [0] here is not readable, not obvious for other people what this does.","commit_id":"0559fca0c77625c958a788a27a35ba6f44a426be"},{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"13791bb3a09436b05e4c486680464b2f8da13034","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants \u003d api.keystone.tenant_list(self.request)[0]"},{"line_number":89,"context_line":"            except Exception:"},{"line_number":90,"context_line":"                tenants \u003d []"},{"line_number":91,"context_line":"                msg \u003d _(\u0027Unable to retrieve project list.\u0027)"}],"source_content_type":"text/x-python","patch_set":16,"id":"1af86dd1_bd9e8f05","line":88,"in_reply_to":"1af86dd1_c6d4e448","updated":"2015-06-12 01:05:15.000000000","message":"+1 for tenants, more \u003d ...\n\nsee openstack_dashboard/dashboards/project/instances/views.py:97\n\nor \nopenstack_dashboard/dashboards/project/network_topology/views.py:163\n\nfor examples of such usage.","commit_id":"0559fca0c77625c958a788a27a35ba6f44a426be"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"0a24d4d2f29be2a79af9bd248822327cc71a0233","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                msg \u003d _(\u0027Unable to retrieve project list.\u0027)"},{"line_number":92,"context_line":"                exceptions.handle(self.request, msg)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"            tenant_dict \u003d dict([(t.id, t) for t in tenants])"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"            for image in images:"},{"line_number":97,"context_line":"                tenant \u003d tenant_dict.get(image.owner)"}],"source_content_type":"text/x-python","patch_set":16,"id":"1af86dd1_0669dc8b","line":94,"updated":"2015-06-11 21:48:10.000000000","message":"you can just store the tenant_name in the dict  instead of whole object to save space","commit_id":"0559fca0c77625c958a788a27a35ba6f44a426be"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"57440121b69d954e4fc566954b159a0b6bfff70b","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                msg \u003d _(\u0027Unable to retrieve project list.\u0027)"},{"line_number":92,"context_line":"                exceptions.handle(self.request, msg)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"            tenant_dict \u003d dict([(t.id, t) for t in tenants])"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"            for image in images:"},{"line_number":97,"context_line":"                tenant \u003d tenant_dict.get(image.owner)"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa32b979_773a92cf","line":94,"in_reply_to":"1af86dd1_0669dc8b","updated":"2015-06-13 03:38:32.000000000","message":"aha，cool tips！！！ thanks！","commit_id":"0559fca0c77625c958a788a27a35ba6f44a426be"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"86239ab535ab4ac12f0767c7ceb1cbb60d625ccb","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants, more \u003d api.keystone.tenant_list(self.request)"},{"line_number":89,"context_line":"            except Exception:"},{"line_number":90,"context_line":"                tenants \u003d []"},{"line_number":91,"context_line":"                msg \u003d _(\u0027Unable to retrieve project list.\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_a2b64888","line":88,"updated":"2015-06-16 06:54:56.000000000","message":"unused variable \u0027more\u0027.","commit_id":"34981a99ebeb81bf6b51deb365fe96e1a60261cc"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"342342623d37b334fc2771db5c7b028b653bd366","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants, more \u003d api.keystone.tenant_list(self.request)"},{"line_number":89,"context_line":"            except Exception:"},{"line_number":90,"context_line":"                tenants \u003d []"},{"line_number":91,"context_line":"                msg \u003d _(\u0027Unable to retrieve project list.\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_fd63953f","line":88,"in_reply_to":"fa32b979_a2b64888","updated":"2015-06-16 07:08:19.000000000","message":"I think this is fine, it helps with the readability of what is the content of the tuple returned by the method","commit_id":"34981a99ebeb81bf6b51deb365fe96e1a60261cc"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"4841aa6f1ef09bebec9a08b63c183ec207f8e8ee","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants, more \u003d api.keystone.tenant_list(self.request)"},{"line_number":89,"context_line":"            except Exception:"},{"line_number":90,"context_line":"                tenants \u003d []"},{"line_number":91,"context_line":"                msg \u003d _(\u0027Unable to retrieve project list.\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_dd181187","line":88,"in_reply_to":"fa32b979_a2b64888","updated":"2015-06-16 07:17:53.000000000","message":"hi Masco:  i think tenants, more \u003d api.keystone.tenant_list(self.request) is better than tenants \u003d  api.keystone.tenant_list(self.request)[0]","commit_id":"34981a99ebeb81bf6b51deb365fe96e1a60261cc"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"86239ab535ab4ac12f0767c7ceb1cbb60d625ccb","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            tenant_dict \u003d dict([(t.id, t.name) for t in tenants])"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"            for image in images:"},{"line_number":97,"context_line":"                tenant_name \u003d tenant_dict.get(image.owner)"},{"line_number":98,"context_line":"                image.tenant_name \u003d tenant_name"},{"line_number":99,"context_line":"        return images"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_1d4c396f","line":97,"updated":"2015-06-16 06:54:56.000000000","message":"no need to assign a variable here ;)","commit_id":"34981a99ebeb81bf6b51deb365fe96e1a60261cc"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"342342623d37b334fc2771db5c7b028b653bd366","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            tenant_dict \u003d dict([(t.id, t.name) for t in tenants])"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"            for image in images:"},{"line_number":97,"context_line":"                tenant_name \u003d tenant_dict.get(image.owner)"},{"line_number":98,"context_line":"                image.tenant_name \u003d tenant_name"},{"line_number":99,"context_line":"        return images"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_9d5a8982","line":97,"in_reply_to":"fa32b979_1d4c396f","updated":"2015-06-16 07:08:19.000000000","message":"++","commit_id":"34981a99ebeb81bf6b51deb365fe96e1a60261cc"},{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"6d277fb07b76069aa1e8116d5b03d9cd22dafe2d","unresolved":false,"context_lines":[{"line_number":38,"context_line":"from openstack_dashboard.dashboards.admin.images \\"},{"line_number":39,"context_line":"    import tables as project_tables"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_a0011d6c","line":41,"updated":"2015-06-17 11:56:27.000000000","message":"I\u0027d rather remove unrelated whitespace change.","commit_id":"7df40517ffc7c8b06e0f344ce2349b9e2e34f419"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"02fcf4cf1461c9868457ce74b8b9b6147e835c43","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            self._more \u003d False"},{"line_number":84,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants, more \u003d api.keystone.tenant_list(self.request)"},{"line_number":89,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_40029c3e","line":86,"updated":"2015-06-17 07:38:54.000000000","message":"(nit)how about adding this as a else part of the above try? i think by doing this we can avoid the \u0027if\u0027 check here.","commit_id":"7df40517ffc7c8b06e0f344ce2349b9e2e34f419"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"60c289b83d53427837679f7fc29b0d07a270fa14","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            self._more \u003d False"},{"line_number":84,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants, more \u003d api.keystone.tenant_list(self.request)"},{"line_number":89,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_4d43216d","line":86,"in_reply_to":"fa32b979_06682c86","updated":"2015-06-19 23:21:21.000000000","message":"Hello Masco，thanks for the remind. but i prefer idea of Kirill, thoughts?","commit_id":"7df40517ffc7c8b06e0f344ce2349b9e2e34f419"},{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"6d277fb07b76069aa1e8116d5b03d9cd22dafe2d","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            self._more \u003d False"},{"line_number":84,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants, more \u003d api.keystone.tenant_list(self.request)"},{"line_number":89,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_20d74dee","line":86,"in_reply_to":"fa32b979_06682c86","updated":"2015-06-17 11:56:27.000000000","message":"replacing if with else can marginally reduce readability IMO, as else statements in try/except are not that widespread, although I feel that it\u0027s opinionated.","commit_id":"7df40517ffc7c8b06e0f344ce2349b9e2e34f419"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"a862c41dcbf0c52354cbde6259f89e96dee2f942","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            self._more \u003d False"},{"line_number":84,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants, more \u003d api.keystone.tenant_list(self.request)"},{"line_number":89,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_e3189a20","line":86,"in_reply_to":"fa32b979_40029c3e","updated":"2015-06-17 08:02:38.000000000","message":"NO, it\u0027s wrong, if do as your suggestion, we can not add tennat_name aatribution for image.","commit_id":"7df40517ffc7c8b06e0f344ce2349b9e2e34f419"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"83bf7f755594ea1c4841c72d9d72ad32f6e19a49","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            self._more \u003d False"},{"line_number":84,"context_line":"            msg \u003d _(\u0027Unable to retrieve image list.\u0027)"},{"line_number":85,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":86,"context_line":"        if images:"},{"line_number":87,"context_line":"            try:"},{"line_number":88,"context_line":"                tenants, more \u003d api.keystone.tenant_list(self.request)"},{"line_number":89,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_06682c86","line":86,"in_reply_to":"fa32b979_e3189a20","updated":"2015-06-17 08:25:15.000000000","message":"if you did not get images, what is the use of adding tenant_name? and where will add the tenant name?","commit_id":"7df40517ffc7c8b06e0f344ce2349b9e2e34f419"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"02fcf4cf1461c9868457ce74b8b9b6147e835c43","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                msg \u003d _(\u0027Unable to retrieve project list.\u0027)"},{"line_number":92,"context_line":"                exceptions.handle(self.request, msg)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"            tenant_dict \u003d dict([(t.id, t.name) for t in tenants])"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"            for image in images:"},{"line_number":97,"context_line":"                image.tenant_name \u003d tenant_dict.get(image.owner)"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_c0c30cec","line":94,"updated":"2015-06-17 07:38:54.000000000","message":"dito","commit_id":"7df40517ffc7c8b06e0f344ce2349b9e2e34f419"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ebfd15d4df19790843f494da74c5cb4a093fbade","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            tenant_dict \u003d dict([(t.id, t.name) for t in tenants])"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"            for image in images:"},{"line_number":97,"context_line":"                image.tenant_name \u003d tenant_dict.get(image.owner)"},{"line_number":98,"context_line":"        return images"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def get_filters(self):"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_3812410a","line":97,"updated":"2015-06-25 00:33:45.000000000","message":"use project_name for naming, since the term tenant is getting deprecated","commit_id":"7df40517ffc7c8b06e0f344ce2349b9e2e34f419"}],"openstack_dashboard/dashboards/admin/instances/views.py":[{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"e4fd32b05983afdcb6ac39cfe82c3ed1a1824216","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                flavors \u003d []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"            full_flavors \u003d dict([(f.id, f) for f in flavors])"},{"line_number":117,"context_line":"            tenant_dict \u003d dict([(t.id, t) for t in tenants])"},{"line_number":118,"context_line":"            # Loop through instances to get flavor and tenant info."},{"line_number":119,"context_line":"            for inst in instances:"},{"line_number":120,"context_line":"                flavor_id \u003d inst.flavor[\"id\"]"}],"source_content_type":"text/x-python","patch_set":13,"id":"5aa745d1_03b1898f","line":117,"updated":"2015-04-16 17:32:51.000000000","message":"Is there a strong reason for removing the SortedDict?","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"}],"openstack_dashboard/dashboards/admin/volumes/tabs.py":[{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"d3f723eff2add901a3505080c18c0c85311ccba8","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from openstack_dashboard import api"},{"line_number":20,"context_line":"from openstack_dashboard.api import cinder"},{"line_number":21,"context_line":"from openstack_dashboard.api import keystone"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from openstack_dashboard.dashboards.admin.volumes.snapshots \\"},{"line_number":24,"context_line":"    import tables as snapshots_tables"}],"source_content_type":"text/x-python","patch_set":10,"id":"da86d52c_28072ccb","line":21,"updated":"2015-02-13 06:13:12.000000000","message":"unused import","commit_id":"853514390ebb81d4fc835cf0da3eef66169167c0"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"c651c48b785d784be896777c0666c8983782f560","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self._set_volume_attributes("},{"line_number":46,"context_line":"            volumes, instances, volume_ids_with_snapshots)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        # Gather our tenants to correlate against IDs"},{"line_number":49,"context_line":"        tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        for volume in volumes:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_70e2af02","line":48,"updated":"2015-02-16 07:03:05.000000000","message":"this comment is not valid, since the list is already correlated with IDs as a python dict.","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"bdcd5304a8d8ca44b55ff35b9656a97ea6b182ea","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self._set_volume_attributes("},{"line_number":46,"context_line":"            volumes, instances, volume_ids_with_snapshots)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        # Gather our tenants to correlate against IDs"},{"line_number":49,"context_line":"        tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        for volume in volumes:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_d1943c8e","line":48,"in_reply_to":"da86d52c_70e2af02","updated":"2015-02-16 09:25:17.000000000","message":"This is here to match the tenant names against the tenant IDs in the volume dict, so comment is valid just poorly worded.","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"a94c89929625727a077b677ba635a3c5b911bcb4","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self._set_volume_attributes("},{"line_number":46,"context_line":"            volumes, instances, volume_ids_with_snapshots)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        # Gather our tenants to correlate against IDs"},{"line_number":49,"context_line":"        tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        for volume in volumes:"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba7be1f8_ef02fc6d","line":48,"in_reply_to":"da86d52c_d1943c8e","updated":"2015-02-24 11:20:59.000000000","message":"Or we can delete the comment:)","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"c651c48b785d784be896777c0666c8983782f560","unresolved":false,"context_lines":[{"line_number":127,"context_line":"                exceptions.handle(self.request, _(\"Unable to retrieve \""},{"line_number":128,"context_line":"                                                  \"volume snapshots.\"))"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"            # Gather our tenants to correlate against volume IDs"},{"line_number":131,"context_line":"            tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"            for snapshot in snapshots:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_f0a4dfba","line":130,"updated":"2015-02-16 07:03:05.000000000","message":"same as above","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"bdcd5304a8d8ca44b55ff35b9656a97ea6b182ea","unresolved":false,"context_lines":[{"line_number":127,"context_line":"                exceptions.handle(self.request, _(\"Unable to retrieve \""},{"line_number":128,"context_line":"                                                  \"volume snapshots.\"))"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"            # Gather our tenants to correlate against volume IDs"},{"line_number":131,"context_line":"            tenant_dict \u003d utils_tenants.get_tenant_list(self.request)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"            for snapshot in snapshots:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_71eb9012","line":130,"in_reply_to":"da86d52c_f0a4dfba","updated":"2015-02-16 09:25:17.000000000","message":"ditto","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"}],"openstack_dashboard/utils/tenants.py":[{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"0dc013815255fda73513209752f887f2ed6975dc","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        tenants, has_more \u003d api.keystone.tenant_list(request)"},{"line_number":25,"context_line":"    except Exception:"},{"line_number":26,"context_line":"        tenants \u003d []"},{"line_number":27,"context_line":"        msg \u003d _(\u0027Unable to retrieve project information.\u0027)"},{"line_number":28,"context_line":"        exceptions.handle(request, msg)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    if is_dict:"}],"source_content_type":"text/x-python","patch_set":10,"id":"da86d52c_48e2a0d5","line":27,"updated":"2015-02-13 06:16:39.000000000","message":"the below import statement need to be added\n\nfrom django.utils.translation import ugettext_lazy as _","commit_id":"853514390ebb81d4fc835cf0da3eef66169167c0"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"bdcd5304a8d8ca44b55ff35b9656a97ea6b182ea","unresolved":false,"context_lines":[{"line_number":11,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"#    under the License."},{"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 horizon import exceptions"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_f1194024","line":14,"updated":"2015-02-16 09:25:17.000000000","message":"This file shouldn\u0027t be here, you should be extending openstack_dashboard/api/keystone.py, maybe add a get_project_list_safe function or something similar?","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"786ecd534ac8b1767dd47b0e288c602d893ec1f5","unresolved":false,"context_lines":[{"line_number":11,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"#    under the License."},{"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 horizon import exceptions"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba7be1f8_11162a4c","line":14,"in_reply_to":"ba7be1f8_5fb3534c","updated":"2015-02-26 10:15:20.000000000","message":"My main concern with it is if I was looking to see if this code already existed, the first place I would think of looking would be with all the other keystone code. I\u0027m more worried that people wouldn\u0027t realise this code existed, unless they go hunting for it, and if someone decides to write a new admin panel they might end up duplicating your work.","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"c5167b835bc265edad7b2eec9dbff6a36abb0b20","unresolved":false,"context_lines":[{"line_number":11,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"#    under the License."},{"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 horizon import exceptions"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba7be1f8_5fb3534c","line":14,"in_reply_to":"da86d52c_f1194024","updated":"2015-02-26 07:33:38.000000000","message":"Hi Sam, i don\u0027t think the file should be in openstack_dashboard/api/keystone.py, i prefer here. the function here calls the keystone api from keystone.py, and most functions in keystone.py call the keystoneclient api directly.","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"c651c48b785d784be896777c0666c8983782f560","unresolved":false,"context_lines":[{"line_number":23,"context_line":"@memoized.memoized_method"},{"line_number":24,"context_line":"def get_tenant_list(request, is_dict\u003dTrue):"},{"line_number":25,"context_line":"    try:"},{"line_number":26,"context_line":"        tenants, has_more \u003d api.keystone.tenant_list(request)"},{"line_number":27,"context_line":"    except Exception:"},{"line_number":28,"context_line":"        tenants \u003d []"},{"line_number":29,"context_line":"        msg \u003d _(\u0027Unable to retrieve project information.\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_d080bb4b","line":26,"updated":"2015-02-16 07:03:05.000000000","message":"\u0027has_more\u0027 is unused,\ncan we have like this,\ntenants \u003d api.keystone.tenant_list(request)[0]","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"c651c48b785d784be896777c0666c8983782f560","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        tenants, has_more \u003d api.keystone.tenant_list(request)"},{"line_number":27,"context_line":"    except Exception:"},{"line_number":28,"context_line":"        tenants \u003d []"},{"line_number":29,"context_line":"        msg \u003d _(\u0027Unable to retrieve project information.\u0027)"},{"line_number":30,"context_line":"        exceptions.handle(request, msg)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    if is_dict:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_300d9738","line":29,"updated":"2015-02-16 07:03:05.000000000","message":"\"Unable to retrieve project list\" will be the more appropriate message.","commit_id":"9a523d2dae1be3d292620067e4b06b8eb0c3c1b7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"e4fd32b05983afdcb6ac39cfe82c3ed1a1824216","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from horizon.utils import memoized"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from openstack_dashboard import api"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"@memoized.memoized_method"},{"line_number":24,"context_line":"def get_tenant_list(request, is_dict\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":13,"id":"5aa745d1_4399d16d","line":21,"updated":"2015-04-16 17:32:51.000000000","message":"I don\u0027t think you need this util.","commit_id":"83ac124e9294fb2f6ac7e242ed120a6cbc507f05"}]}
