Bug 1172389

Summary: [RFE] Add the "last saved query per main tab" functionality to the UI
Product: [Retired] oVirt Reporter: Einav Cohen <ecohen>
Component: ovirt-engine-webadminAssignee: Alexander Wels <awels>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: high    
Version: 3.5CC: bugs, djasa, ecohen, gklein, gshereme, iheim, lpeer, lsurette, mgoldboi, nbarcet, pmatyas, rbalakri, rnelson, talayan, vszocs, wduffee, yeylon, ykaul
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: 3.6.0   
Hardware: All   
OS: Linux   
Whiteboard: ux
Fixed In Version: ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 878129 Environment:
Last Closed: 2015-11-04 11:41:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 878129    
Bug Blocks:    

Description Einav Cohen 2014-12-10 01:06:31 UTC
+++ This bug was initially created as a clone of Bug #878129 +++

today, when moving between one main tab to another, the search query is being "reset" to the "default" search-query associated with each main tab. 
e.g. when selecting the Hosts main tab, search query will be "reset" to the Hosts' main-tab default search query, i.e. "Hosts:". 

the request here is: upon selection of main tab "x", update the search query to the last search query that was applied while on main tab "x". 

example:

- login to the application
- [VMs main tab is displayed by default, search query is "VMs:"]
- change search query to: "VMs: name = a". apply search. 
- [VMs main grid is filtered based on the newly-applied search query]
- select the Hosts main tab
- [Hosts main tab is displayed, search query is changed to "Hosts:"]
- change search query to: "Hosts: cluster = Default or cluster = b*". apply search. 
- [Hosts main grid is filtered based on the newly applied search query]
- select the VMs main grid
- [VMs main tab is displayed]
  - [** current results: search query is changed to "VMs:"]
  - [** expected results: search query is changed to the last VMs query: "VMs: name = a"]
- select the Hosts main grid
- [Hosts main tab is displayed]
  - [** current results: search query is changed to "Hosts:"]
  - [** expected results: search query is changed to: "Hosts: cluster = Default or cluster = b*"]

note:

only query texts in the System context (i.e. when the 'System' tree-node is selected in the System tree) need to be remembered. 
when going into the tree-context (i.e. selecting something other than System), 
need to retain the current behavior. same for the tags-tree context.

Comment 1 Vojtech Szocs 2014-12-15 17:55:20 UTC
This RFE reminds me of another (somewhat similar) RFE where users could control search query via URL -> bookmark-able WebAdmin URLs that set search query to given value: https://bugzilla.redhat.com/1081028

Comment 2 Sandro Bonazzola 2015-11-04 11:41:06 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.