Bug 194693

Summary: Advanced search defaults to invalid Resolution ("---"), when searcher does not specify one
Product: Services Reporter: Mikhail T. <freebsd-2024>
Component: Bug TrackerAssignee: Bugmeister <bugmeister>
Status: Closed FIXED    
Severity: Affects Many People    
Priority: ---    
Version: unspecified   
Hardware: Any   
OS: Any   

Description Mikhail T. 2014-10-29 18:38:29 UTC
It seems, something is wrong with Bugzilla's search. For example, Bug 36237 is titled "registering _real_ dependencies in bsd.port.mk".

For some reason, putting that string -- verbatim -- into the search-field will not find the ticket. I wonder, if that's because that PR was imported into Bugzilla from Gnats -- rather than entered (or ever updated) through Bugzilla itself...


Indeed, searching for more recent tickets -- such as Bug 193422 -- by even a substring of the subject (summary) does find them.
Comment 1 Mikhail T. 2014-10-29 18:49:12 UTC
Ok, I was able to "find" the Bug 36237 by going through "Advanced Search" -- presumably, the "quick" search automatically filters out the closed tickets.

However, the "Advanced Search" is currently broken (at least for me using Firefox), because it defaults the Resolution field to "---" -- and there is no way to deselect that. One must specify a Resolution in Advanced Search, apparently -- leaving it at default leads to a search request like:

https://bugs.freebsd.org/bugzilla/buglist.cgi?f1=short_desc&list_id=30188&o1=allwordssubstr&query_format=advanced&resolution=---&v1=registering%20_real_%20dependencies

It was only after I edited the URL by hand -- removing the "resolution=---&" part -- that I was able to see the ticket in the results.
Comment 2 Marcus von Appen freebsd_committer freebsd_triage 2014-10-29 20:59:22 UTC
(In reply to Mikhail T. from comment #1)
> Ok, I was able to "find" the Bug 36237 by going through "Advanced Search" --
> presumably, the "quick" search automatically filters out the closed tickets.
> 
> However, the "Advanced Search" is currently broken (at least for me using
> Firefox), because it defaults the Resolution field to "---" -- and there is
> no way to deselect that. One must specify a Resolution in Advanced Search,
> apparently -- leaving it at default leads to a search request like:

No, it is not. Just use Ctrl+Click or something similar to deactivate the resolution selection.

The default selection is useful, since the majority of people will search for bugs that are most likely unresolved yet.

Let us know, if this solves your problem.
Comment 3 Mikhail T. 2014-10-29 21:13:18 UTC
(In reply to Marcus von Appen from comment #2)
> The default selection is useful, since the majority of people will search
> for bugs that are most likely unresolved yet.

I disagree. The resolution of "---" looks like "search regardless of the resolution", when in fact it means "search through unresolved tickets only".

It makes sense to limit the Simple search to unresolved tickets, but the Advanced search should not make any assumptions.

As you can see, it was sufficiently confusing for sufficiently long for at least one user to suspect a bug -- and even to bother reporting it...

(And I didn't even know about Ctrl-K until today -- thanks!)
Comment 4 Marcus von Appen freebsd_committer freebsd_triage 2014-11-01 18:52:18 UTC
(In reply to Mikhail T. from comment #3)

> As you can see, it was sufficiently confusing for sufficiently long for at
> least one user to suspect a bug -- and even to bother reporting it...

That's a valid argument. I changed the default advanced query and removed the resolution. Let's see, if this causes confusion for other users.

Administrative note:
'resolution=---&' was removed from the start of the 'defaultquery' setting.