Bug 1209381

Summary: When named search is opened for edit, it does not expand sections that have content
Product: [Community] Bugzilla Reporter: Jan Pazdziora <jpazdziora>
Component: User InterfaceAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED NEXTRELEASE QA Contact: Jeff Fearn 🐞 <jfearn>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: mtahir, qgong
Target Milestone: 5.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.0.4-rh2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-18 10:15:05 UTC Type: Bug
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: 1211440    

Description Jan Pazdziora 2015-04-07 08:49:52 UTC
Description of problem:

I have named search which has some rules in the Custom Search section. However, when I click Edit Search and https://bugzilla.redhat.com/query.cgi?... is opened, the section "Custom Search" is collapsed and you have to click it to view the definition of my saved query.

It'd be good if the sections that contain some content got expanded by default.

Version-Release number of selected component (if applicable):

bugzilla.redhat.com as of today.

How reproducible:

Deterministic.

Steps to Reproduce:
1. Have named search with content on "Custom Search" section.
2. Execute the search and click "Edit Search" at the bottom of the page.

Actual results:

Custom Search section collapsed.

Expected results:

Custom Search section expanded.

Additional info:

Comment 1 Jeff Fearn 🐞 2018-04-03 03:50:53 UTC
It turns out that this is deliberate and controlled by a cookie. Instead of changing this functionality I will change it so it has a visual indication that a section has values selected. This way people who want to hide sections can do so, even if they contain selections.

Comment 2 Jeff Fearn 🐞 2018-04-11 07:00:35 UTC
When a named search is edited then a hollow triangle is shown for collapsed sections that had one or more values set when the form was loaded.

Comment 3 Jeff Fearn 🐞 2018-04-18 10:15:05 UTC
This bug has been resolved in Red Hat Bugzilla 5 and can be tested on https://beta-bugzilla.redhat.com

If there are any issues, do not reopen this bug. Instead, you should create a new bug and reference this bug.