Red Hat Bugzilla – Bug 536205
[gui config editor] support allowCustomValue option for enum simple properties
Last modified: 2013-09-01 06:12:33 EDT
In the <configuration> section of a plugin descriptor, you can specify <property-options>
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:
This allowCustomValues isn't implemented. To implement it, it requires the config UI to be coded up to support that value.
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. ; )
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-580
It's also already supported by the domain model - PropertyDefinitionSimple contains:
@Column(name = "ALLOW_CUSTOM_ENUM_VALUE")
private boolean allowCustomEnumeratedValue = false;
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.
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).
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.