History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RHQ-910
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Joseph Marques
Reporter: Ian Springer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RHQ Project

GUI allows user to attempt to delete non-deletable Resources (Child Resources section of Inventory tab)

Created: 29/Sep/08 11:28 AM   Updated: Yesterday 09:19 AM
Component/s: FX - Inventory, Core UI
Affects Version/s: 1.0.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

Issue Links:
Relation
 

Resolution Date: 17/Dec/08 10:44 PM
Date of First Response: 17/Dec/08 10:44 PM
Tester: Corey Welton
VCS Revision: 2,442


 Description  « Hide
On the Child Resources section of the Inventory tab, we list all child resources. Each Resource has a checkbox next to it to allow you to select it. There are two buttons - Uninventory and Delete - that can be clicked to uninventory or delete the selected Resources. The problem is that only certain Resources (ones whose Resource type is defined as being deletable) can be Deleted. So currently, a user could select one or more non-deletable Resources, click the Delete button, and then will get "Resource type foo does not support the DeleteResourceFacet" errors. It would be nicer if the GUI prevented the user from trying this invalid operation in the first place.

One way would be to use JavaScript to gray out the Delete button unless only deletable Resources are selected. But then I think we'd also need to somehow indicate which Resources are deletable and include a note along the lines of "Note: Only certain types of Resources are deletable. The Delete button will only be enabled if all selected Child Resources are deletable."

James, what do you think?

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Joseph Marques - 17/Dec/08 10:44 PM
rev2442 - only render the checkbox next to a child resource on the inventory tab if it is a deletable resource;
to better support RHQ-372, only allow uninventory from the resource browser;

Corey Welton - 05/Jan/09 09:19 AM
QA Verified.