Bug 701983

Summary: Double posts to getExplicitGlobalPermissions navigating groups in left-nav
Product: [Other] RHQ Project Reporter: Mike Foley <mfoley>
Component: Core ServerAssignee: Ian Springer <ian.springer>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: urgent    
Version: 4.0.0.Beta2CC: ccrouch, hrupp, ian.springer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 19:47:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 625146, 729848, 730796    
Attachments:
Description Flags
2 posts to getexplicitpermissions none

Description Mike Foley 2011-05-04 13:20:32 UTC
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:
5|0|4|http://localhost:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/|F1F6D738F3DE07FD8AF83458D7413F92|org.rhq.enterprise.gui.coregui.client.gwt.AuthorizationGWTService|getExplicitGlobalPermissions|1|2|3|4|0|

Comment 1 Charles Crouch 2011-08-12 02:52:53 UTC
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 19:47:49 UTC
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.