Created attachment 496788 [details]
2 posts to getexplicitpermissions
Description of problem:
Double posts to getExplicitGlobalPermissions navigating groups in left-nav. Possible performance impact with both server and UI doing twice the work unneccessarily.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. FF, with Firebug plugin
2. Navigate Groups in left-nav
3. Observe double posts to getExplicitGlobalPermissions. Contents of posts requests are identical.
Double posts. Muda.
see attached image. Also, documenting the contents of the post below:
setting this to urgent, to see if addressing it will improve overall UI
stability any. Its not on its own a serious issue, so priority can be dropped
if fixing doesn't help the effort.
This is because there are two action buttons on the groups list views which extend AuthorizedTableAction - the Delete button and the New button. Each AuthorizedTableAction will make an RPC call to retrieve the global permissions. We could optimize this so that a single call to load the global perms is made by the Table itself and all AuthorizedTableActions share the results, but since getExplicitGlobalPermissions is a very inexpensive call and there will never be more than a handful of AuthorizedTableActions for a given Table, it's really not worth the effort.