)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2460bc50ddd603eeacd3aaceeca75f49dc25ada9","unresolved":false,"context_lines":[{"line_number":11,"context_line":"is a real role name."},{"line_number":12,"context_line":"At the moment, it is not addressed OPENSTACK_KEYSTONE_ADMIN_ROLES."},{"line_number":13,"context_line":"This patch will address it."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: Ic7200dfdf403b63ef3210750617ae102b15c02c8"},{"line_number":16,"context_line":"Closes-Bug: #1534409"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"bab6814e_df66d5b9","line":14,"updated":"2016-05-23 08:05:34.000000000","message":"It is better to mention why IdentityMixIn is no longer needed.","commit_id":"377fe103f6bbef7f3324608ef44894889575692a"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"c3f4255ad335bbbda334e11782130dda40618113","unresolved":false,"context_lines":[{"line_number":11,"context_line":"is a real role name."},{"line_number":12,"context_line":"At the moment, it is not addressed OPENSTACK_KEYSTONE_ADMIN_ROLES."},{"line_number":13,"context_line":"This patch will address it."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: Ic7200dfdf403b63ef3210750617ae102b15c02c8"},{"line_number":16,"context_line":"Closes-Bug: #1534409"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"bab6814e_d629628b","line":14,"in_reply_to":"bab6814e_df66d5b9","updated":"2016-05-24 06:55:10.000000000","message":"Done","commit_id":"377fe103f6bbef7f3324608ef44894889575692a"}],"openstack_dashboard/dashboards/admin/dashboard.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"71e138117ce9b873cb63fb20e87c96f286cb04c3","unresolved":false,"context_lines":[{"line_number":21,"context_line":"class Admin(horizon.Dashboard):"},{"line_number":22,"context_line":"    name \u003d _(\"Admin\")"},{"line_number":23,"context_line":"    slug \u003d \"admin\""},{"line_number":24,"context_line":"    permissions \u003d (tuple(utils.get_admin_permissions()),)"},{"line_number":25,"context_line":"    policy_rules \u003d ((\"identity\", \"cloud_admin\"),)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"5a18252c_76b5e5cb","line":24,"updated":"2016-04-12 16:19:53.000000000","message":"This isn\u0027t quite right, but currently we don\u0027t have a better option. Being an admin in keystone may or may not have any impact on whether you should have access to this dashboard. It really only works because that is the legacy assumption. And yes, the next line has the same issue.","commit_id":"e3f4f94aad9d13beb3abb1fa39f91889069d64be"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2460bc50ddd603eeacd3aaceeca75f49dc25ada9","unresolved":false,"context_lines":[{"line_number":15,"context_line":"from django.utils.translation import ugettext_lazy as _"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import horizon"},{"line_number":18,"context_line":"from openstack_auth import utils"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class Admin(horizon.Dashboard):"}],"source_content_type":"text/x-python","patch_set":11,"id":"bab6814e_ffe63942","line":18,"updated":"2016-05-23 08:05:34.000000000","message":"nit: openstack_auth is third-party import. Could you move it to another import group?","commit_id":"377fe103f6bbef7f3324608ef44894889575692a"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"c3f4255ad335bbbda334e11782130dda40618113","unresolved":false,"context_lines":[{"line_number":15,"context_line":"from django.utils.translation import ugettext_lazy as _"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import horizon"},{"line_number":18,"context_line":"from openstack_auth import utils"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class Admin(horizon.Dashboard):"}],"source_content_type":"text/x-python","patch_set":11,"id":"bab6814e_28d5f1b8","line":18,"in_reply_to":"bab6814e_ffe63942","updated":"2016-05-24 06:55:10.000000000","message":"Done","commit_id":"377fe103f6bbef7f3324608ef44894889575692a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"830fe99204c40294a99e9e6c53dfb006fb029ecc","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import horizon"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from openstack_auth import utils"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from openstack_dashboard import settings"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"7aa08908_c8627e3d","line":19,"updated":"2016-06-09 08:32:27.000000000","message":"Generally speaking, this line should be placed before L.17 because django and openstack_auth are third party imports and horizon and openstack_dashboard are project imports.","commit_id":"ecd1e0eac91ff2914a5a86729f67a237428df80c"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"bcfb5fd9be153768ecca3f6b7c5e950bffde70db","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import horizon"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from openstack_auth import utils"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from openstack_dashboard import settings"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"7aa08908_de732614","line":19,"in_reply_to":"7aa08908_c8627e3d","updated":"2016-06-10 00:24:23.000000000","message":"Thanks for information! done","commit_id":"ecd1e0eac91ff2914a5a86729f67a237428df80c"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"1646267854ff98fa66863b59377469870eadb0f9","unresolved":false,"context_lines":[{"line_number":34,"context_line":"                        (\u0027orchestration\u0027, \u0027context_is_admin\u0027),"},{"line_number":35,"context_line":"                        (\u0027telemetry\u0027, \u0027context_is_admin\u0027),)"},{"line_number":36,"context_line":"    else:"},{"line_number":37,"context_line":"        permissions \u003d (tuple(utils.get_admin_permissions()),)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"horizon.register(Admin)"}],"source_content_type":"text/x-python","patch_set":14,"id":"7aa08908_0ecacb6e","line":37,"range":{"start_line":37,"start_character":22,"end_line":37,"end_character":61},"updated":"2016-06-09 09:57:18.000000000","message":"Given the (tuple(...),) syntax, for default admin role we\u0027re going to get ((\u0027openstack.roles.admin\u0027,),) double tuple. Since the inner tuple items are ORed and outer tuples are ANDed, this results in \u0027show admin dashboard to a user that has at least one of admin roles specified inside horizon settings, which seems fine to me\u0027.\n\nWaiting a bit with +2+A so Akihiro\u0027s comments would have a chance to get addressed.","commit_id":"ecd1e0eac91ff2914a5a86729f67a237428df80c"}],"openstack_dashboard/dashboards/identity/domains/workflows.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2460bc50ddd603eeacd3aaceeca75f49dc25ada9","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from openstack_dashboard.dashboards.identity.domains import constants"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from openstack_auth import utils"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"bab6814e_5fcca5ba","line":30,"range":{"start_line":30,"start_character":0,"end_line":30,"end_character":32},"updated":"2016-05-23 08:05:34.000000000","message":"this is third-party import. It is better to move before horizon and openstack_dashboard.","commit_id":"377fe103f6bbef7f3324608ef44894889575692a"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"c3f4255ad335bbbda334e11782130dda40618113","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from openstack_dashboard.dashboards.identity.domains import constants"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from openstack_auth import utils"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"bab6814e_68fed939","line":30,"range":{"start_line":30,"start_character":0,"end_line":30,"end_character":32},"in_reply_to":"bab6814e_5fcca5ba","updated":"2016-05-24 06:55:10.000000000","message":"Done","commit_id":"377fe103f6bbef7f3324608ef44894889575692a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"830fe99204c40294a99e9e6c53dfb006fb029ecc","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from openstack_dashboard.dashboards.identity.domains import constants"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from openstack_auth import utils"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"7aa08908_a8cc5235","line":30,"updated":"2016-06-09 08:32:27.000000000","message":"Same comment as for admin/dashboard.py","commit_id":"ecd1e0eac91ff2914a5a86729f67a237428df80c"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"bcfb5fd9be153768ecca3f6b7c5e950bffde70db","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from openstack_dashboard.dashboards.identity.domains import constants"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from openstack_auth import utils"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"7aa08908_9e507e60","line":30,"in_reply_to":"7aa08908_a8cc5235","updated":"2016-06-10 00:24:23.000000000","message":"Done","commit_id":"ecd1e0eac91ff2914a5a86729f67a237428df80c"}],"openstack_dashboard/dashboards/identity/projects/workflows.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2460bc50ddd603eeacd3aaceeca75f49dc25ada9","unresolved":false,"context_lines":[{"line_number":34,"context_line":"from openstack_dashboard.api import nova"},{"line_number":35,"context_line":"from openstack_dashboard.usage import quotas"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"from openstack_auth import utils"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"bab6814e_bffcb1b8","line":37,"updated":"2016-05-23 08:05:34.000000000","message":"See my comment for domain/workflows.py.","commit_id":"377fe103f6bbef7f3324608ef44894889575692a"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"c3f4255ad335bbbda334e11782130dda40618113","unresolved":false,"context_lines":[{"line_number":34,"context_line":"from openstack_dashboard.api import nova"},{"line_number":35,"context_line":"from openstack_dashboard.usage import quotas"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"from openstack_auth import utils"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"bab6814e_e8bf695e","line":37,"in_reply_to":"bab6814e_bffcb1b8","updated":"2016-05-24 06:55:10.000000000","message":"Done","commit_id":"377fe103f6bbef7f3324608ef44894889575692a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"830fe99204c40294a99e9e6c53dfb006fb029ecc","unresolved":false,"context_lines":[{"line_number":34,"context_line":"from openstack_dashboard.api import nova"},{"line_number":35,"context_line":"from openstack_dashboard.usage import quotas"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"from openstack_auth import utils"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"7aa08908_e8e93a80","line":37,"updated":"2016-06-09 08:32:27.000000000","message":"ditto","commit_id":"ecd1e0eac91ff2914a5a86729f67a237428df80c"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"bcfb5fd9be153768ecca3f6b7c5e950bffde70db","unresolved":false,"context_lines":[{"line_number":34,"context_line":"from openstack_dashboard.api import nova"},{"line_number":35,"context_line":"from openstack_dashboard.usage import quotas"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"from openstack_auth import utils"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"7aa08908_fe4d42c5","line":37,"in_reply_to":"7aa08908_e8e93a80","updated":"2016-06-10 00:24:23.000000000","message":"Done","commit_id":"ecd1e0eac91ff2914a5a86729f67a237428df80c"}],"openstack_dashboard/utils/identity.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c627a1cc9b7ae717b253ad20b4855bf89b2b29e5","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"from horizon.utils.memoized import memoized  # noqa"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"class IdentityMixIn(object):"},{"line_number":19,"context_line":"    @memoized"},{"line_number":20,"context_line":"    def get_admin_roles(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_6f45a9b1","line":17,"updated":"2016-01-21 11:20:40.000000000","message":"Both of methods in this mix-in class are copy of django_openstack_auth methods. \n\n- The logic of get_admin_roles is found at [1].\n- \u0027openstack.roles.%s\u0027 is defined in openstack_auth.\n\nThe format of \"openstack.roles.xxxx\" is defined in openstack_auth, so I think it is better that we add convenient methods to openstack_auth and openstack_dashboard consumes them.\n\n[1] https://github.com/openstack/django_openstack_auth/blob/master/openstack_auth/user.py#L300-L303\n[2] https://github.com/openstack/django_openstack_auth/blob/master/openstack_auth/user.py#L300-L303","commit_id":"aed4ad22c5910cc4499f11a700f411b84c53881b"}]}
