Bug 536205 (RHQ-580)

Summary: [gui config editor] support allowCustomValue option for enum simple properties
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: Core UIAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0.1CC: asantos, ccrouch, hrupp
Target Milestone: ---Keywords: FutureFeature, Improvement
Target Release: RHQ 4.4.0   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-580
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-01 10:12:33 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: 640268    

Description John Mazzitelli 2008-06-16 00:55:00 UTC
In the <configuration> section of a plugin descriptor, you can specify <property-options>

<simple-property name="databaseType">
<property-options>
    <c:option value="mysql"/>
    <c:option value="oracle"/>
    <c:option value="postgres"/>
</property-options>
</simple-property>

The schema for <property-options> also defines an "allowCustomValues" attribute. If true, this is supposed to render a text box above the hard-coded selections to allow the user to enter a text value for a custom value (in the example above, in order for me to allow the user to select "sybase", I would need to do this:

<property-options allowCustomValue="true">
...

This allowCustomValues isn't implemented. To implement it, it requires the config UI to be coded up to support that value.

Comment 1 Joseph Marques 2008-06-16 01:08:45 UTC
fair enough.  hopefully, in your case, if you only have a single option you need to add, you'll be able to just extend this and just hard-code <c:opton value="sybase" /> for now...which I'm sure you've already done by now.  ; )

Comment 2 Red Hat Bugzilla 2009-11-10 21:12:19 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-580


Comment 3 Ian Springer 2012-04-12 14:30:02 UTC
It's also already supported by the domain model - PropertyDefinitionSimple contains:

    @Column(name = "ALLOW_CUSTOM_ENUM_VALUE")
    private boolean allowCustomEnumeratedValue = false;

Comment 4 John Mazzitelli 2012-04-12 16:10:49 UTC
This might be a simple enhancement.

I see the agent plugin already uses this flag in some of the security settings it has and I see in the database that column ips mentioned IS marked as "true" - so we already support this at the data layer. I think this means we only need to get this in the GUI.

I'll give this a quick stab to see if its a simple fix.

Comment 5 John Mazzitelli 2012-04-12 20:45:16 UTC
git commit to master: 472e72f

the RHQ Agent plugin defines some of these "allow-custom-values" properties. See the resource configuration group "Communication Security". There are about 10 of them, one of which is "Incoming: Secure Socket Protocol".

We need to make sure we test both individual resource config as well as the group editor (the Config tab for a group that has agents in them) and the group member editor (that is, click the pencil icon on the group config view to popup the group member editor).

Comment 6 Heiko W. Rupp 2013-09-01 10:12:33 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.