Bug 734034

Summary: Saved search name should be removed from search bar after user deletes it
Product: [Other] RHQ Project Reporter: Sunil Kondkar <skondkar>
Component: Core UIAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.1CC: hrupp, jshaughn
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4,1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:21:26 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: 730796    
Attachments:
Description Flags
Screenshot none

Description Sunil Kondkar 2011-08-29 09:34:42 UTC
Description of problem:

If user deletes a saved search using the trash icon, a message appears that the saved search is deleted. The search bar still displays the saved search name and user can click in the editable text field to edit the saved search name which results in a NullPointerException.

Version-Release number of selected component (if applicable):
Build#356 (Version: 4.1.0-SNAPSHOT Build Number: a98c893)
Browser: Firefox 3.6.3

How reproducible:

Always

Steps to Reproduce:

1. Login to RHQ
2. Navigate to 'Inventory->Servers'
3. Enter in the search bar: type=cron
4. Press Enter.
5. Click on the on the star in the search box.
6. Enter the name for saved search in the editable text field.
7. Press Enter.
8. Click on the down arrow on the right in the search box.
9. Click on the trash icon for the saved search row item.
((We need to click on the trash icon by selecting the saved search row twice due to the existing Bug#733487)
10. It displays the message 'Successfully deleted saved search'.
11. Observe that the search bar still displays the saved search name.

(Please refer the screenshot)

12. Click on the saved search name in the editable text field and rename it.
13. It displays the message 'Failed to rename saved search with name' in the UI and displays a 'NullPointerException'

Actual results:

Saved search name is displayed in the search bar after user deletes it.

Expected results:

Saved search name should be removed from search bar after user deletes it.

Additional info:

Comment 1 Sunil Kondkar 2011-08-29 09:35:23 UTC
Created attachment 520327 [details]
Screenshot

Comment 2 Jay Shaughnessy 2011-08-29 19:38:25 UTC
master commit 5d9aa72083fc7e364735f26cf22c8995293b2838

Comment 3 Sunil Kondkar 2011-08-30 09:18:27 UTC
Verified on build#364 (Version: 4.1.1-BETA1 Build Number: 6db75f8)

Saved search name is removed from search bar after user deletes it. 

Marking as verified.

Comment 4 Mike Foley 2012-02-07 19:21:26 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE