Bug 810540 - [gui] logging out should clear the ResourceType cache
Summary: [gui] logging out should clear the ResourceType cache
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ian Springer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-06 15:17 UTC by Ian Springer
Modified: 2013-08-06 00:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-26 21:17:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2012-04-06 15:17:39 UTC
Currently if existing ResourceTypes are updated as part of a plugin update, the updates do not get picked up by the GUI, because the GUI's cache contains the old types. This is fine, except the only way for the user to get the types updated in the GUI except is to do a hard browser refresh. This is not very intuitive and causes the user to have to wait several seconds for the page to load. Logging out should also clear the type cache. Then we can say in the documentation, "if you update any Agent plugins, to pick up the changes in the GUI, log out and then log back in.

Comment 1 Charles Crouch 2012-04-09 14:28:34 UTC
Not sure I agree that the cache should be cleared on log out, since changes to 
ResourceTypes should in general be pretty rare in production deployments, e.g. 
upgrading to new JON versions, patches, new customer developed plugins. It 
seems a waste to have people download that extra data (presumably is a lot?) on 
every login. I agree its not great that it requires a hard refresh right now, 
this is less good because not every user is going to know that they need to do 
that.

I would say we need a way to invalidate the ResourceType cache in the browser 
when it needs to be updated, rather than a blanket cache eviction policy.

Comment 2 Jay Shaughnessy 2013-02-26 21:17:11 UTC
Closing this.  If and when we get server2gui notification we'll take care of this as part of that work.


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