Bug 701983 - Double posts to getExplicitGlobalPermissions navigating groups in left-nav
Double posts to getExplicitGlobalPermissions navigating groups in left-nav
Product: RHQ Project
Classification: Other
Component: Core Server (Show other bugs)
All All
urgent Severity medium (vote)
: ---
: ---
Assigned To: Ian Springer
Mike Foley
Depends On:
Blocks: jon30-bugs rhq41 rhq41-ui
  Show dependency treegraph
Reported: 2011-05-04 09:20 EDT by Mike Foley
Modified: 2013-08-05 20:39 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-08-16 15:47:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
2 posts to getexplicitpermissions (46.06 KB, image/png)
2011-05-04 09:20 EDT, Mike Foley
no flags Details

  None (edit)
Description Mike Foley 2011-05-04 09:20:32 EDT
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):

How reproducible:

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.
Actual results:

Double posts.  Muda.

Expected results:

Single posts.

Additional info:

see attached image.  Also, documenting the contents of the post below:
Comment 1 Charles Crouch 2011-08-11 22:52:53 EDT
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.
Comment 2 Ian Springer 2011-08-16 15:47:49 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.