Bug 749801 - Resource selector: once a resourcetype is selected in the type filter, there is no way to clear the type filter (i.e. specify no type)
Summary: Resource selector: once a resourcetype is selected in the type filter, there ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: John Sanda
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: jon3 rhq-uxd
TreeView+ depends on / blocked
 
Reported: 2011-10-28 13:28 UTC by Ian Springer
Modified: 2013-09-04 07:49 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-04 07:49:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2011-10-28 13:28:43 UTC

Comment 1 Mike Foley 2011-10-31 15:28:13 UTC
please add some details .... per BZ triage meeting 10/31/2011

Comment 2 Ian Springer 2011-10-31 16:11:12 UTC
1) Select a ResourceType (e.g. RHQ Agent) from the type filter pulldown menu.

2) Now try to deselect that type (i.e. clear the type filter). This does not appear to be possible without selecting some other type.

Comment 3 John Sanda 2012-02-27 20:05:48 UTC
I have committed and pushed a fix.

master commit hash: 5b2151eeda854460260df8a4e195fb34167c9edc

What is seemingly an easy issue to fix, it turns out not be the case. The widget involved is IPickTreeItem, and it has the following behavior. Data is loaded lazily when you click on the widget. Initially the widget shows a single value which defaults to the string, "Choose a value". When you click the drop down, the plugin and resource type data is fetched from the server. Once you select a value, the initial, default value goes away, forcing you to select a plugin or resource type. After trying numerous approaches, I have not been successful in keeping the initial value in the list of possible selections. The solution I went with is to insert a blank row which facilitates allowing you to undo a previous selection. Selecting the blank row has the effect of undoing the previous selection in the type filter. 

This solution is somewhat consistent with the category filter because it also displays a blank row; however, the category filter does not display an initial prompt value like the type filter. I am not sure how much if at all this is a concern.

Comment 5 Heiko W. Rupp 2013-09-04 07:49:15 UTC
Bulk closing of some old issues


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