Bug 1076126

Summary: RFE: Canned dynaGroup expressions provided by plugin
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: Core Server, PluginsAssignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.10CC: fbrychta, hrupp, theute
Target Milestone: ---   
Target Release: RHQ 4.11   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-21 10:13:24 UTC Type: Bug
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: 1069544    

Description Libor Zoubek 2014-03-13 15:42:01 UTC
Description of problem:
Based on  https://docs.jboss.org/author/display/RHQ/Canned+DynaGroup+expressions design document, create a way so plugin can provide predefined dyna-group expressions. 


Version-Release number of selected component (if applicable):
RHQ 4.10

Thinks taken into account (but may change after further discussion)

1. additional plugin descriptor will be introduced - optional for plugin. This descriptor is not touched on agent side at all. 
2. canned expressions are not stored to RHQ database. They're available in server's memory as part of plugin metadata
3. as there is an option for 'createByDefault=true', we're auto-creating dyna-groups based on such expressions.
3.a - dynaGroups are updated as plugin updates expression
3.b - dynaGroups are removed in case plugin no longer provides expression for such dynaGroup
3.c - dynaGroups are removed in case plugin is deleted
3.d - if user edit's such dynaGroup's properties - it will be overwriten on plugin update
3.e - if user deletes such dynaGroup, it will appear again on plugin update
4. All expressions from all loaded plugin are presented in dropDown on UI page, when creating new dynaGroup. Now, there is hardcoded list of expressions - this will be replaced by expressions comming from plugin.
5. When user sees/edits dynaGroup which was auto-created because of 'createByDefault=true', he's notified with consequences (3.d,e)

Comment 1 Heiko W. Rupp 2014-04-22 12:57:13 UTC
Merged to master as 414a2a69691055be0466b18962dbdec698f57d05 - see https://github.com/rhq-project/rhq/commit/414a2a69691055be0466b18962dbdec698f57d05

Comment 3 Heiko W. Rupp 2014-07-21 10:13:24 UTC
Bulk closing of RHQ 4.11 issues, now that RHQ 4.12 is out.

If you find an issue with those, please open a new BZ, linking to the old one.