)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"9a81ef625d8033d94afad6d976de4193278191b0","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-07-07 16:32:21 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"multidomain false support"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: Ic1c4eb59e2a5704beb341e53c581d820a4e99f2b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ba3cc151_bcd648ef","line":8,"updated":"2015-07-07 22:07:29.000000000","message":"please open a bug for this change","commit_id":"1ecff9218fb47702d5b02ba25620c44602df1ee3"}],"openstack_dashboard/api/keystone.py":[{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"f6012809a66fde8010dee6df306ef35f77b695d2","unresolved":false,"context_lines":[{"line_number":294,"context_line":""},{"line_number":295,"context_line":"def is_project_admin(request):"},{"line_number":296,"context_line":"    return policy.check("},{"line_number":297,"context_line":"        ((\"identity\", \"admin_and_matching_target_project_id\"),), request)"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"def is_domain_and_project_admin(request):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9a41bdd9_b73b3338","line":297,"updated":"2015-07-16 17:55:06.000000000","message":"I don\u0027t see this rule name in policy.v3cloudsample.json. Is this rule proposed or documented somewhere?","commit_id":"edab4fed3b8250e34d1b24b5e9c42a753c1e1e0d"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"f2a928878769cc6c3c973188a5f0b4c3832199e2","unresolved":false,"context_lines":[{"line_number":294,"context_line":""},{"line_number":295,"context_line":"def is_project_admin(request):"},{"line_number":296,"context_line":"    return policy.check("},{"line_number":297,"context_line":"        ((\"identity\", \"admin_and_matching_target_project_id\"),), request)"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"def is_domain_and_project_admin(request):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9a41bdd9_7a7d86e6","line":297,"in_reply_to":"9a41bdd9_b73b3338","updated":"2015-07-16 22:48:12.000000000","message":"I think this a mistake, will fix.\n\nthx Doug!","commit_id":"edab4fed3b8250e34d1b24b5e9c42a753c1e1e0d"}],"openstack_dashboard/dashboards/identity/groups/panel.py":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"a70e2528759c28d5f36e7b2f264e6c609cb9a1b8","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:list_groups\"),)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def can_access(self, context):"},{"line_number":29,"context_line":"        if (keystone.VERSIONS.active \u003c 3 or"},{"line_number":30,"context_line":"                not keystone.is_multi_domain_enabled()):"},{"line_number":31,"context_line":"            return super(Groups, self).can_access(context)"},{"line_number":32,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_d7409036","line":29,"updated":"2015-07-22 18:10:05.000000000","message":"this is not needed , the panel would not even show up if keystone is running on v2.\n\nI think you just need to make the rule in the policy file smarter rather than coding the check here.","commit_id":"711a06426ce185c8a50a8c444e52a3d9834b6bc6"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"d4e54fc8a8d6fbc617716a665931e67c364f1cb9","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:list_groups\"),)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def can_access(self, context):"},{"line_number":29,"context_line":"        if (keystone.VERSIONS.active \u003c 3 or"},{"line_number":30,"context_line":"                not keystone.is_multi_domain_enabled()):"},{"line_number":31,"context_line":"            return super(Groups, self).can_access(context)"},{"line_number":32,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_3f066a1d","line":29,"in_reply_to":"3a50d1a3_d7409036","updated":"2015-07-22 19:30:51.000000000","message":"Thanks Lin :)\n\nLooking now.","commit_id":"711a06426ce185c8a50a8c444e52a3d9834b6bc6"}],"openstack_dashboard/dashboards/identity/projects/tables.py":[{"author":{"_account_id":11798,"name":"Michael Hagedorn","email":"mike.hagedorn@hpe.com","username":"mwhagedorn"},"change_message_id":"508ba3f9a1eebd719d3fc716ef4182355e025740","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:list_groups\"),)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def allowed(self, request, project):"},{"line_number":77,"context_line":"        return api.keystone.VERSIONS.active \u003e\u003d 3"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def get_link_url(self, project):"},{"line_number":80,"context_line":"        step \u003d \u0027update_group_members\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"ba3cc151_d3c0b952","line":77,"updated":"2015-07-08 13:37:21.000000000","message":"where did all the logic go for whether or not multidomain is enabled?","commit_id":"105235de24ae817eb31938bab860656d83a79209"},{"author":{"_account_id":11798,"name":"Michael Hagedorn","email":"mike.hagedorn@hpe.com","username":"mwhagedorn"},"change_message_id":"508ba3f9a1eebd719d3fc716ef4182355e025740","unresolved":false,"context_lines":[{"line_number":103,"context_line":"    policy_rules \u003d ((\u0027identity\u0027, \u0027identity:create_project\u0027),)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def allowed(self, request, project):"},{"line_number":106,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"class UpdateProject(tables.LinkAction):"}],"source_content_type":"text/x-python","patch_set":8,"id":"ba3cc151_3397a549","line":106,"updated":"2015-07-08 13:37:21.000000000","message":"multidomain_enabled?","commit_id":"105235de24ae817eb31938bab860656d83a79209"},{"author":{"_account_id":11798,"name":"Michael Hagedorn","email":"mike.hagedorn@hpe.com","username":"mwhagedorn"},"change_message_id":"508ba3f9a1eebd719d3fc716ef4182355e025740","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    policy_rules \u003d ((\u0027identity\u0027, \u0027identity:update_project\u0027),)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    def allowed(self, request, project):"},{"line_number":118,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"class ModifyQuotas(tables.LinkAction):"}],"source_content_type":"text/x-python","patch_set":8,"id":"ba3cc151_139aa16e","line":118,"updated":"2015-07-08 13:37:21.000000000","message":"ditto","commit_id":"105235de24ae817eb31938bab860656d83a79209"},{"author":{"_account_id":11798,"name":"Michael Hagedorn","email":"mike.hagedorn@hpe.com","username":"mwhagedorn"},"change_message_id":"508ba3f9a1eebd719d3fc716ef4182355e025740","unresolved":false,"context_lines":[{"line_number":153,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:delete_project\"),)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def allowed(self, request, project):"},{"line_number":156,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"    def delete(self, request, obj_id):"},{"line_number":159,"context_line":"        api.keystone.tenant_delete(request, obj_id)"}],"source_content_type":"text/x-python","patch_set":8,"id":"ba3cc151_737f6d17","line":156,"updated":"2015-07-08 13:37:21.000000000","message":"and ditto","commit_id":"105235de24ae817eb31938bab860656d83a79209"}],"openstack_dashboard/policy_backend.py":[{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"f6012809a66fde8010dee6df306ef35f77b695d2","unresolved":false,"context_lines":[{"line_number":145,"context_line":"            if scope \u003d\u003d \u0027identity\u0027:"},{"line_number":146,"context_line":"                # Cloud Admin, Domain Admin or Mixed Domain Admin"},{"line_number":147,"context_line":"                if (_is_domain_admin(request) or"},{"line_number":148,"context_line":"                        _is_domain_and_project_admin(request)):"},{"line_number":149,"context_line":"                            return _check_credentials("},{"line_number":150,"context_line":"                                enforcer[scope], action, target, domain_creds)"},{"line_number":151,"context_line":"            # use project credentials otherwise"}],"source_content_type":"text/x-python","patch_set":16,"id":"9a41bdd9_12cf8db4","line":148,"updated":"2015-07-16 17:55:06.000000000","message":"I think the or check is redundant - _is_domain_and_project_admin can return true only if _is_domain_admin has already returned true","commit_id":"edab4fed3b8250e34d1b24b5e9c42a753c1e1e0d"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"f2a928878769cc6c3c973188a5f0b4c3832199e2","unresolved":false,"context_lines":[{"line_number":145,"context_line":"            if scope \u003d\u003d \u0027identity\u0027:"},{"line_number":146,"context_line":"                # Cloud Admin, Domain Admin or Mixed Domain Admin"},{"line_number":147,"context_line":"                if (_is_domain_admin(request) or"},{"line_number":148,"context_line":"                        _is_domain_and_project_admin(request)):"},{"line_number":149,"context_line":"                            return _check_credentials("},{"line_number":150,"context_line":"                                enforcer[scope], action, target, domain_creds)"},{"line_number":151,"context_line":"            # use project credentials otherwise"}],"source_content_type":"text/x-python","patch_set":16,"id":"9a41bdd9_3aba9e6f","line":148,"in_reply_to":"9a41bdd9_12cf8db4","updated":"2015-07-16 22:48:12.000000000","message":"good point, will check again to see if we can clean this up.","commit_id":"edab4fed3b8250e34d1b24b5e9c42a753c1e1e0d"}]}
