Fixes bad performance when editing project members
The bug is caused by consecutive client calls when
fetching users' roles in a project.
The fix was to use the /v3/role_assignments endpoint.
Which retrieves all roles in a single client call
(dashboards/admin/projects/workflows.py:
UpdateProjectGroupsAction and UpdateProjectUsersAction).
The compatibility to the previous keystoneclient version
is maintained.
In a scenario with 1000 users with a role in a project
(using devstack), the time to render the Modify Users
page dropped from 45s to 2.5s
Reviewed: https:/ /review. openstack. org/92412 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=ed43be0a0f4 0c4b065472da27e 6ef6e59a6789ca
Committed: https:/
Submitter: Jenkins
Branch: master
commit ed43be0a0f40c4b 065472da27e6ef6 e59a6789ca
Author: Rodrigo Duarte Sousa <email address hidden>
Date: Tue Jun 10 10:22:51 2014 -0300
Fixes bad performance when editing project members
The bug is caused by consecutive client calls when
fetching users' roles in a project.
The fix was to use the /v3/role_ assignments endpoint. /admin/ projects/ workflows. py: ctGroupsAction and UpdateProjectUs ersAction) .
Which retrieves all roles in a single client call
(dashboards
UpdateProje
The compatibility to the previous keystoneclient version
is maintained.
In a scenario with 1000 users with a role in a project
(using devstack), the time to render the Modify Users
page dropped from 45s to 2.5s
Change-Id: Ic72ebea0db226f af98c5e04d00d76 dedd1fb01c1
Closes-bug: #1278920